mirzahat
mirzahat

Reputation: 1025

xcode project build successfully but when archiving: bitcode bundle could

My XCode project was generated by Unity so I was able to build the project without errors.

But when I try to archive it for ad hoc, I get this:

ld: bitcode bundle could not be generated because '/Users/myuser/Desktop/device3/Libraries/Plugins/iOS/AdmobPlugin.a(UnityEncoder.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

What is needed in this case?

Upvotes: 28

Views: 22128

Answers (3)

Vikrant
Vikrant

Reputation: 61

Just got this error message. Went to Target -> Settings -> Enable Bitcode = NO Works perfectly, No issues.

Upvotes: 6

SaRaVaNaN DM
SaRaVaNaN DM

Reputation: 4410

On Build Settings -> Other C flags, set Debug to -fembed-bitcode-marker, and Release to -fembed-bitcode. Make sure that is set for your project, and not the targets. More details check here.

Upvotes: 3

iOS77
iOS77

Reputation: 522

AdmobPlugin.a does not support bitcode try updating that library if its still showing this error you can disable bitcode from your Xcode project goto target setting -> Enable bitcode = NO.

Upvotes: 46

Related Questions