Phonegap iOS Signing with build.json

I originally used the Phonegap build service to create my debugging applications, which require a .p12 file and an initialization file, but now that they are almost ready for production, I use a script in conjunction with hooks to create my “release” application locally with using Phonegap cli 6.4

phonegap build --release --buildConfig build.json

I meet this error on the command line

Error: Error code 65 for command: xcodebuild with args: 
-xcconfig,/Users/cuesta/workspace/mobile/platforms/ios/cordova/build-release.xcconfig,-workspace,myappname.xcworkspace,-scheme,myappname,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/cuesta/workspace/mobile/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/cuesta/workspace/mobile/platforms/ios/build/sharedpch

After executing this command

CompileAssetCatalog build/emulator/myappname.app myappanem/Images.xcassets

I assume that I have the wrong build.json configuration for IOS build. So my questions are:

- Where can I find "codeSignIdentity" or explain the following.

Identification of the code signature to use. It can be created using Xcode and added to your keychain. https://cordova.apache.org/docs/en/latest/guide/platforms/ios/

- , teamId?

- , "teamId" , id ?

prod ( .p12) prod. ( )

"ios": {
    "debug": {
        "codeSignIdentity": "iPhone Development",
        "provisioningProfile": "confirmedcorrect",
        "developmentTeam": "10or12",
        "packageType": "development"
    },
    "release": {
        "codeSignIdentity": "iPhone Distribution",
        "provisioningProfile": "confirmedcoorect",
        "developmentTeam": "10or12",
        "packageType": "app-store"
    }
}
+4
1

, , , ...

"codeSignIdentity"?.

- ?

security find-identity -v -p codesigning

.

, teamId?

. ID, https://developer.apple.com/account/#/membership

, "teamId" , id ?

.

, (dev) build.json . :

{
    "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\""
            ]
        }
    }
}

, , , , .

+6

Source: https://habr.com/ru/post/1664337/


All Articles