xcode16.2, 打包上传Appstore报BitCode编译错误

错误信息:

Invalid Executable. The executable 'appname.app/Frameworks/hermes.framework/hermes' contains bitcode. (ID: XXXX)

image.png
image.png

解决方案:

仔细阅读报错信息,将报错的framework挑出来,然后执行类似以下的4条命令后,在clean build,然后重新 Archive,上传Appstore, 问题解决;
要注意路径关系,如果执行命令时当前路径的层级不对,执行会出错。

xcrun bitcode_strip -r NERtcCallKit.framework/NERtcCallKit -o NERtcCallKit.framework/NERtcCallKit
xcrun bitcode_strip -r NERtcSDK.framework/NERtcSDK -o NERtcSDK.framework/NERtcSDK
xcrun bitcode_strip -r NMCBasicModuleFramework.framework/NMCBasicModuleFramework -o NMCBasicModuleFramework.framework/NMCBasicModuleFramework
xcrun bitcode_strip -r YXAlog_iOS.framework/YXAlog_iOS -o YXAlog_iOS.framework/YXAlog_iOS
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容