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。

相关推荐
2601_9615934214 小时前
Rust 开发环境配置繁琐?RustRover 开箱即用搞定编码调试
开发语言·后端·macos·rust
在水一缸15 小时前
拒绝被打扰:深度解析 macOS 进程守护与“反自动启动”攻防战
macos·策略模式·用户体验·进程守护·自动启动·系统权限
REDcker20 小时前
macOS 挂载 Linux 远程目录详解
linux·运维·macos
2601_9615934220 小时前
Mac 上搭建Linux环境吗?VMware + CentOS Stream 9 镜像快速部署
linux·运维·ide·macos·centos
陪我去看海1 天前
受够了 AI 写完代码留下一堆端口?我做了一个端口管理App!
前端·macos·vibecoding
发光的沙子1 天前
FPGA----配置根文件系统ip和mac地址
网络协议·tcp/ip·macos
悲凉的紫菜1 天前
dariy
android·ide·android studio
love530love1 天前
CodexPro + MCP + Cloudflare 配置详解:HTTP2、QUIC 与连接排障
ide·人工智能·windows·ai agent
友人.2271 天前
补充章节:VSCode Wokwi 无法可视化连线?在线 Wokwi 网页拖拽绘图方案
ide·vscode·编辑器