Matt
Matt

Reputation: 5168

Can i still have bitcode disabled for iOS if one or more libraries has bitcode?

Can I still build and publish an iOS application which has bitcode disabled, even if I have one or more libraries which have bitcode?

Not all my libraries I depend on support bitcode yet. But I have read on certain forums that you cannot have bitcode disabled for your iOS target if some of your libraries have bitcode.

What if I am targeting both iOS and watchOS? I understand that you can selectively enable bitcode for watchOS (in fact it's required) and disable for the iOS target, but what about in the case of a mix of libraries?

Thanks

Upvotes: 3

Views: 1336

Answers (1)

Daniel Zhang
Daniel Zhang

Reputation: 5858

The answer is, yes, you can have a mix of Bitcode settings among multiple libraries that you use and have your app successfully published.

There is a master switch for enabling Bitcode under My Apps > Pricing and Availability > Bitcode Auto-Recompilation in iTunes Connect that is independent of your project settings. If this is disabled, Bitcode will not be used at all.

I have successfully published my latest iOS app having Enable Bitcode set to No in the Build Settings for my target while also having Enable Bitcode set to Yes in the Pods used in my project.

Upvotes: 7

Related Questions