xcode 项目构建成功但存档时:bitcode bundle can
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36480665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcode project build successfully but when archiving: bitcode bundle could
提问by mirzahat
My XCode project was generated by Unity so I was able to build the project without errors.
我的 XCode 项目是由 Unity 生成的,因此我能够毫无错误地构建项目。
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
ld:无法生成位码包,因为“/Users/myuser/Desktop/device3/Libraries/Plugins/iOS/AdmobPlugin.a(UnityEncoder.o)”是在没有完整位码的情况下构建的。bitcode 的所有目标文件和库必须从 Xcode Archive 或 Install build for architecture arm64 生成
What is needed in this case?
在这种情况下需要什么?
回答by iOS77
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.
AdmobPlugin.a 不支持 bitcode 尝试更新该库,如果它仍然显示此错误,您可以从 Xcode 项目转到目标设置中禁用 bitcode -> Enable bitcode = NO。
回答by Vikrant
Just got this error message. Went to Target -> Settings -> Enable Bitcode = NO Works perfectly, No issues.
刚刚收到此错误消息。转到目标 -> 设置 -> 启用 Bitcode = NO 完美运行,没有问题。
回答by SaRaVaNaN DM
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.
在 Build Settings -> Other C flags 上,将 Debug 设置为 -fembed-bitcode-marker,将 Release 设置为 -fembed-bitcode。确保为您的项目设置,而不是为目标设置。更多详情请查看此处。