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:

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

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

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.
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:

And add 2 variables for both "Debug" and "Release":
MAGICKCORE_HDRI_ENABLE=0
MAGICKCORE_QUANTUM_DEPTH=16

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