当我尝试使用 bitcode 导出 adhoc 时出错
Error when I try to export adhoc with bitcode
我在存档项目后从 xcode 执行临时导出时出现此错误:
导出时出错
Failed to verify bitcode in Someframework.framework/Someframework
Cannot extract bundle from /var/folders/rg/8ydk5h297ng50z_3dpkr5jx00000gn/T/XcodeDistPipeline.5rb/Root/Payload/...
但是当我为应用程序商店导出时它按预期完成
确保您的所有框架仅针对设备构建。请在导出框架构建之前剥离模拟器架构。
如果您使用 Jekins 创建构建,以下脚本可能适合您
if [ -d ./${BUILD_DIR}/YOURFramework.framework ] && lipo ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -verify_arch x86_64; then
lipo -remove i386 ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -output ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework
lipo -remove x86_64 ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -output ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework
我能够通过添加魔术编译标志来解决它:
BITCODE_GENERATION_MODE 位码
我在存档项目后从 xcode 执行临时导出时出现此错误:
导出时出错
Failed to verify bitcode in Someframework.framework/Someframework
Cannot extract bundle from /var/folders/rg/8ydk5h297ng50z_3dpkr5jx00000gn/T/XcodeDistPipeline.5rb/Root/Payload/...
但是当我为应用程序商店导出时它按预期完成
确保您的所有框架仅针对设备构建。请在导出框架构建之前剥离模拟器架构。
如果您使用 Jekins 创建构建,以下脚本可能适合您
if [ -d ./${BUILD_DIR}/YOURFramework.framework ] && lipo ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -verify_arch x86_64; then
lipo -remove i386 ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -output ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework
lipo -remove x86_64 ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework -output ./${BUILD_DIR}/YOURFramework.framework/YOURFramework.framework
我能够通过添加魔术编译标志来解决它:
BITCODE_GENERATION_MODE 位码