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。

相关推荐
️学习的小王6 小时前
Anaconda国内镜像配置与conda常用命令
ide·经验分享·python·conda
weixin_531670897 小时前
Interlude起来:Swift原生Mac软件有什么优势?原生Mac应用和Electron应用有什么区别?
人工智能·macos·mac·swift
k4m7v2pz8 小时前
Swift Package Manager 在 macOS 26 上的三个编译错误排查指南
macos·spm·ai编程·xcode·swift·命令行工具
雾沉川9 小时前
Rust IDE 选型:除 VS Code 之外,RustRover 非商业场景可免费使用
ide·vscode·rust
zhonyu鱼11 小时前
Pot 翻译:开源免费的跨平台划词翻译与 OCR 工具
windows·macos·开源·ocr·开源软件
杜子麟12 小时前
Android studio模拟器离线安装
android·macos·android studio
守城小轩1 天前
Chromium 148 编译指南 macOS篇:环境配置要求(一)
macos
Codeking__1 天前
iOS 动画:core Animation 底层原理
macos·objective-c·cocoa
SatanII1 天前
读懂 SELinux:强制访问控制 MAC,解决 httpd 服务权限报错实战
linux·运维·服务器·网络·macos
2501_915918411 天前
iOS 真机调试工具推荐,安装运行、性能分析有哪些工具
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程