【发布时间】:2014-02-24 17:59:24
【问题描述】:
我正在迁移我们的构建脚本以生成 xcarchive 文件,因此我们可以直接从 Xcode Organizer 上传构建,但是,我现在无法通过无线方式使构建工作。
我正在构建存档:
xcodebuild -scheme myScheme \
"CODE_SIGN_IDENTITY[sdk=iphoneos*]=$appstore_identity" \
PROVISIONING_PROFILE=$appstore_profile_id \
-archivePath $outputArchive
archive`
然后我尝试使用我的企业分发配置文件导出并重新签名:
enterprise_profile_name=`basename $enterprise_profile_file .mobileprovision` \
xcodebuild -exportArchive \
-archivePath "$outputArchive" \
-exportFormat IPA \
-exportProvisioningProfile "$enterprise_profile_name" \
-exportPath "$outputIPA"
生成的 IPA 看起来是正确的(包含正确的配置文件,codesign 表示它是有效的,等等),但是,当我们生成一个清单文件以便可以通过无线方式安装它时,事情就会停止工作。在 iOS 7 设备上,进入“正在安装...,正在等待...”循环,并且永远不会安装应用程序。
有什么建议吗?
更新 1
我也尝试过从存档中导出一个应用,然后使用 PackageApplication 将其退出:
xcodebuild -exportArchive \
-archivePath "$outputArchive" \
-exportFormat APP \
-exportWithOriginalSigningIdentity \
-exportPath "$outputApp"
xcrun PackageApplication \
"$outputApp" \
-o "$outputIPA" \
--sign "$enterprise_identity" \
--embed "$enterprise_profile_file"
但生成的 IPA 仍然无法安装 OTA 和通过 iTunes 同步。
【问题讨论】:
-
1.您确定要构建发布配置吗? 2.你试过这个:stackoverflow.com/questions/5640776/…
标签: ios xcodebuild codesign over-the-air