【问题标题】:Export an OTA installable IPA from XCARCHIVE从 XCARCHIVE 导出可 OTA 安装的 IPA
【发布时间】: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 同步。

【问题讨论】:

标签: ios xcodebuild codesign over-the-air


【解决方案1】:

@MishieMoo 和我离线聊天,似乎我想做的事情是不可能的,因为我正在尝试跨团队工作。我有 2 个团队 A 和 B,每个团队都有自己的身份和配置文件。 A 具有 com.foo.* 的企业配置文件。 B 有 com.foo.bar 的常规配置文件。

我正在与 B 一起构建并试图与 A 辞职。但这不起作用,因为它们是具有 2 个不同团队标识符的 2 个不同帐户。

结果:我需要构建两次(每个帐户一次)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-02-27
    • 1970-01-01
    • 1970-01-01
    • 2015-11-29
    • 2014-12-26
    • 2013-04-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多