Xcode 7: -weak_library and -bitcode_bundle cannot be used together
Asked Answered
G

2

6

When deploying to iPhone & Apple Watch with Xcode7, I got this error:

ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

Would like to ask how best to resolve this issue ?

Follow-ups: Apple Watch requires bitcode-enabled libraries, based on this New warnings in iOS 9 -> we may have to enable bitcode for all libraries ..

Georgia answered 10/7, 2015 at 1:38 Comment(0)
G
2

According to Apple's [App Thinning and Bitcode]

Quote: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

So I can turn off the Bitcode in Build Settings for iPhone app, and enable Bitcode for Watch app only.

Georgia answered 10/7, 2015 at 5:28 Comment(0)
U
0

Also if you are developing for apple tv bitcode is also enabled.

It is quite annoying since many third party ad frameworks and analytics have not yet compiled their binaries for tvOS but it wil come soon hopefully.

Unimposing answered 14/10, 2015 at 6:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.