问题
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
回答1:
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
回答2:
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.
来源:https://stackoverflow.com/questions/32651222/dont-run-app-with-open-cv-in-xcode-7