2

I install opencv how pods, and when i run app in my ios devise i have this issue.

opencv2.framework/opencv2(cap_ios_photo_camera.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 armv7

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Zept
  • 1,158
  • 1
  • 10
  • 14

2 Answers2

3

In the build settings for your App Target, search for "Bitcode" and set Bitcode Enabled to NO.


Although I recommend you get the framework vendor to supply a Bitcode enabled version

liamnichols
  • 12,419
  • 2
  • 43
  • 62
  • Maybe someone should be, that it helped: [here](https://github.com/Itseez/opencv/issues/4877) – Zept Sep 18 '15 at 15:22
0

You can disable the "Bitcode" as answered by @liamnichols.

But it is strongly recommended that you must use the frameworks with bitcode enabled. I suggest you to re-create the Opencv framework with bitcode enabled.

Please check this post, It'll help you creating opencv framework.

Community
  • 1
  • 1
Himanshu Garg
  • 599
  • 9
  • 21