marforic / imagemagick_lib_iphone

Scripts and instructions to compile ImageMagick as a static library to use in any iOS project
314 stars 71 forks source link

BITCODE support #16

Open hollowaykeanho opened 8 years ago

hollowaykeanho commented 8 years ago

Existing Cocoapod installation indicates the library files are not compiled with BITCODE enabled. Temporarily, the workaround is to disable "ENABLE BITCODE" explicitly.

Build Report:

ld: '/Users/hollowaykeanho/Documents/code_development/hollowaykeanho/project/Pods/ImageMagick/libMagickCore.a(magick_libMagickCore_6_Q8_la-exception.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Step to Reproduce

  1. Start a new XCode project.
  2. Ensure the "ENABLE BITCODE" is set to YES.
  3. Install ImageMagick through Cocoapod using:
pod "ImageMagick", "6.8.8-9"
  1. Pod install
  2. Build a simple app.
  3. Compile to an iPhone 5S physical target.

    Severity

Right now bitcode is not enforced for iOS app upload but is mandatory for WatchOS and other devices. No guarantee on enforcement.

Workaround

Disable BITCODE.