尝试使用xcrun导出存档
xcrun -sdk iphoneos PackageApplication \ -v $BUILD_PATH/$PRODUCT_NAME.xcarchive/Products/Applications/$PROJECT_NAME.app \ -o $BUILD_PATH/$PRODUCT_NAME.ipa
失败,出现以下错误:
+ /usr/bin/zip --symlinks --verbose --recurse-paths ../xx/xx.ipa . Program /usr/bin/zip returned 15 : [zip I/O error: No such file or directory zip error: Could not create output file (../xx/xx.ipa) ]
解决方法
xcrun需要绝对路径. (即/ User / you / …).你可以做$PWD / build / release-iphoneos / etc.