Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: ImageMagick compiler warnings in Xcode

I am using ImageMagick in an iOS project, however the library is outdated because the previous developer used the source code for this. I am using Xcode 6.3.2 and I want to use Cocoapods to integrate ImageMagick in the project instead of copying the source files. However when I integrate ImageMagick with Cocoapods I get four compiler warnings.

This is the content of my pods file:

target 'MyProject' do
    pod 'ImageMagick', '6.8.8-9'
end

These are the 4 warnings:

enter image description here

If I try to change the file I get this warning popup

enter image description here

And I can't unlock the file, I get this other error

enter image description here

I am not that familiar with ImageMagick.

Are these warnings important? Should I change the .h file and configure it properly? How can I unlock this file? Any ideas on what I should configure to eliminate these warnings?

Is this the way to go? It doesn't feel right to modify a file inside a Cocoapod.

like image 496
yf526 Avatar asked Mar 01 '26 21:03

yf526


1 Answers

In CocoaPods there is already compiled version of ImageMagick. So you need to define these macros only for your target to hide the warnings. As I understood, they won't change anything in ImageMagick, because it was already compiled.

So, open Preprocessor Macros settings for your target or if you have several targets, for your whole project:

settings

And add 2 variables for both "Debug" and "Release":

MAGICKCORE_HDRI_ENABLE=0 MAGICKCORE_QUANTUM_DEPTH=16

variables

like image 92
Gleb Tarasov Avatar answered Mar 03 '26 13:03

Gleb Tarasov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!