Xcode:does not contain bitcode

1.错误描述

使用了第三方库错误提示如下:

ld: 'xxx' 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. 'xxx' for architecture arm64。

颜色加红部分已经说明要了设置Enable Bitcode。

2.问题原因

使用的第三方库不支持Bitcode ,而xcode默认是开启Bitcode的。所以要么第三方库支持Bitcode,要么修改xcode设置关闭Bitcode。

3.解决方案

通过 Project->Unity-iPhone-> BuildSettings -> Enable Bitcode,设置为 NO。

Targets->Unity-iPhone-> BuildSettings -> Enable Bitcode,设置为 NO。

两个地方都要设置Enable Bitcode为No。

相关推荐
ITKEY_1 分钟前
macOS通过命令行启动iOS模拟器
macos·ios
2501_9151063223 分钟前
不依赖 Mac 也能做 iOS 开发?跨设备开发流程
ide·vscode·macos·ios·个人开发·swift·敏捷流程
weixin_4266892033 分钟前
VSCODE CMAKE编译环境安装配置使用
ide·vscode·编辑器
2501_9159090641 分钟前
MachObfuscator全面解析:Apple平台Mach-O应用程序混淆技术指南
macos·ios·小程序·uni-app·objective-c·cocoa·iphone
知兀42 分钟前
【IDEA/基本设置】主题、字体、导包;Code Style配置(google的Java Code Stytle);git提交优化import
java·ide·intellij-idea
待续30115 小时前
OpenClaw 安装及使用教程(Windows / macOS / Linux)
linux·windows·macos
bandaostart15 小时前
VsCode+Cmake使用说明
ide·vscode·编辑器
freshman_y15 小时前
个人VSCode一些配置记录
ide·vscode·编辑器
我是人✓17 小时前
IDEA(2017.3 x64)的安装及使用
java·ide·intellij-idea
阿正的梦工坊18 小时前
在Mac电脑上如何显示点(.)开头的隐藏文件
macos