Cordova构建发布cli

时间:2017-07-11 07:10:29

标签: cordova ionic-framework phonegap cordova-cli

根据Cordova文档,为什么使用iPhone Developer作为codeSignIdentity进行调试和发布?这是正确的还是文档中的错误?

我想要的是使用CLI生成.ipa文件,我可以将其提交给iTunes Connect进行分发。

参考:https://cordova.apache.org/docs/en/latest/guide/platforms/ios/

{
"ios": {
    "debug": {
        "codeSignIdentity": "iPhone Developer",
        "developmentTeam": "FG35JLLMXX4A",
        "packageType": "development",
        "buildFlag": [
            "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
            "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
            "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
        ]
    },
    "release": {
        "codeSignIdentity": "iPhone Developer",
        "developmentTeam": "FG35JLLMXX4A",
        "packageType": "app-store",
        "buildFlag": [
            "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
            "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
            "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
        ]
    }
}

}

我的build.json看起来像这样

{
    "ios": {
        "debug": {
            "codeSignIdentity": "iPhone Developer",
            "packageType": "development",
            "developmentTeam": "MY-DEV-TEAM-ID"
        },
        "release": {
            "codeSignIdentity": "iPhone Developer",
            "packageType": "app-store",
            "developmentTeam": "MY-DIST-TEAM-ID"
        }
    }
}

我正在使用此命令进行构建:

cordova build ios --device --release

该分发准备好的.ipa文件将在何处生成?

0 个答案:

没有答案