简体   繁体   中英

Is bitcode a must for apple watch extension in Xcode 7 beta 3?

I have a cocoa pods as a dependency manager for libraries used in my app. And I have an Apple Watch support - so after installing Xcode 7 beta 3 I received an error during compilation:

ld: '/Users/**************/********/**************/Pods/FlurrySDK/Flurry/libFlurry_6.6.0.a(libFlurry.a-armv7-master.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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

In my extension target I didn't find option to set ENABLE_BITCODE = NO .

As I understand, For Apple Watch I have to provide all the libraries build with bitcode option.

I tried to add pods only for main main app target to prevent linking of libraries with the app extension, but anyway I still get this linking error.

How can I build my app in the latest Xcode beta?

As seen in this question , you have to enable bitcode, or simply disable it. Xcode tells you, that you can simply disable bitcode for this target .

EDIT:

After the comment from the author, I have to say that there isn't a thing you can do, besides of to wait for the new Flurry SDK to be released, as the new version should support Bitcode. Bitcode is a powerful technology, so just turn it back on and possibly email the developer.

Hope that helps, Julian

Xcode设置

The quick-fix is to turn off Bitcode in your Xcode settings. See the attached image for the exact location under your Target App's Build Settings.

You library was compiled without bitcode but the bitcode option is enabled in your project settings. Say NO to Enable Bitcode in your target Build Settings and the Library Build Settings to remove the warnings.

Please check this article. I think it is helpful for you. New warnings in iOS 9

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM