如何正确签署Cordova应用程序?

时间:2018-08-24 18:31:53

标签: ios xcode cordova signing

ERROR ITMS-90174: "Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision."

在过去的3-4天里,这个问题一直困扰着我,我尝试过辞职,并且我使用的构建配置看起来像这样:

{
    "ios": {
        "debug": {
            "codeSignIdentity": "iPhone Developer",
            "provisioningProfile":"ID found in myapp.mobileprovision",
            "developmentTeam": "VKUC8843LP",
            "packageType": "development"
        },
        "release": {
            "codeSignIdentity": "iPhone Developer",
            "provisioningProfile":"ID found in myapp.mobileprovision",
            "developmentTeam": "VKUC8843LP",
            "packageType": "app-store"
        }
    }
}

我正在使用cordova,这是我正在运行的用于构建应用程序的命令:

cordova build ios --release --buildConfig
cd platforms/ios
pushd "build"
mkdir ./Payload
cp -R "emulator/myapp.app" ./Payload
zip -qyr MyApp.ipa ./Payload
rm -r ./Payload
popd

然后将其放在ApplicationLoader中,每次将其发送出去时,都会收到上述消息。我在/ App(www之前的目录)中有一个build.json。当我打开XCode文件并检查签名时说:

Provisioning profile "myapp" doesn't include signing certificate "iPhone Distribution: DEv Name(MYID1234)".

1 个答案:

答案 0 :(得分:6)

这是新的XCode 10构建系统的问题,Cordova目前尚未与之兼容。先前版本的XCode已选择加入新的构建系统,但从XCode 10开始,已选择退出。

如果您使用XCode进行构建,则只需转到“文件”>“工作区设置”,然后选择“旧版构建”。

以下是Cordova团队的更多详细信息:https://github.com/apache/cordova-ios/issues/407