简体   繁体   中英

cordova build ios does not create ipa file

I am building cordova project for iOS, build log seems fine however I can't find any ipa file generated:

$ 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 looks fine.

However there is no ips files:

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

Xcode version is 9.4 cordova-ios@4.5.5

The build command should be run as npm run cordova -- build ios --release --device , double dashes are essential or else npm run does not pass build ios --release --device as arguments to cordova scripts. Uph, it's taken awhile for me to find it out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM