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。

相关推荐
pe7er2 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
iOS日常2 天前
iOS设备崩溃日志获取与查看
ios·xcode
iOS日常3 天前
Xcode 垃圾清理
ios·xcode
Diligently_4 天前
idea 中vm option 配置
java·ide·intellij-idea
我命由我123454 天前
在 Android Studio 中,新建 AIDL 文件按钮是灰色
android·ide·android studio·安卓·android jetpack·android-studio·android runtime
AC赳赳老秦5 天前
云原生AI故障排查新趋势:利用DeepSeek实现高效定位部署报错与性能瓶颈
ide·人工智能·python·云原生·prometheus·ai-native·deepseek
被制作时长两年半的个人练习生5 天前
claude code for vscode 配置 qwen3.5
ide·vscode·claude code·qwen3.5
圣心5 天前
Visual Studio Code 中的 AI 智能操作
ide·人工智能·vscode
harmful_sheep5 天前
mac生效的终端查看
macos
吹牛不交税5 天前
关于vscode左侧资源管理器目录层级疑似异常的问题
ide·vscode·编辑器