cordova build ios 不创建 ipa 文件

cordova build ios does not create ipa file

我正在为 iOS 构建 cordova 项目,构建日志看起来不错,但是我找不到生成的任何 ipa 文件:

$ npm run cordova platform add ios
$ cat Build.json
{
    "ios": {
        "debug": {
            "codeSignIdentity": "iPhone Developer",
            "developmentTeam": "**************",
            "packageType": "development",
            "automaticProvisioning": true,
            "buildFlag": [
                "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
                "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO"
            ]
        },
        "release": {
            "codeSignIdentity": "iPhone Developer",
            "developmentTeam": "****************",
            "packageType": "app-store",
            "automaticProvisioning": true,
            "buildFlag": [
                "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
                "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO"
            ]
        }
    }
}

$ npm run cordova build ios --release --device

Build log 看起来不错。

但是没有ips文件:

$ find . type f -name "*.ipa" | wc -l
0

Xcode版本为9.4 科尔多瓦-ios@4.5.5

构建命令应该是 运行 作为 npm run cordova -- build ios --release --device ,双破折号是必不可少的,否则 npm run 不会传递 build ios --release --device 作为参数cordova 脚本。呃,我花了一段时间才找到它。