三尺非寒 发表于 2025-3-28 21:23:53

XCode 16 打包遇到的题目

1.bitcode
Asset validation failed,Invalid Executable. The executable 'XXX.app/Frameworks/AlivcConan.framework/AlivcConan' contains bitcode. 
https://i-blog.csdnimg.cn/direct/c33cf2aee1ea4d7bae245e0303763d52.png

解决办法:
可以通过xcrun bitcode_strip手动去除对应的framework的bitcode。如下示例中,${framework_path}是framework的二进制文件路径
xcrun bitcode_strip ${framework_path} -r -o ${framework_path}
比方:
下令行cd到alivcffmpeg在Xcode工程中的路径,执行以下下令
xcrun bitcode_strip alivcffmpeg -r -o alivcffmpeg
https://i-blog.csdnimg.cn/direct/66792af253514c69b79da5f35e219cb4.png
2.报错 Assertion failed: (aliasSectionNum == sectionNum && "alias and its target must be located in the same section"), function assignAliasAtomOffsetInSection, file Layout.cpp, line 4390.
解决办法:
other linker flags 增长-ld64



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: XCode 16 打包遇到的题目