I originally was using Phonegap build service to create my "debug" apps which requires a .p12 file and a provisioning file but now that they are almost ready for production I'm using a script combined with hooks to build my "release" apps locally using Phonegap cli 6.4
phonegap build --release --buildConfig build.json
I'm encountering this error in 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 this command failed
CompileAssetCatalog build/emulator/myappname.app myappanem/Images.xcassets
My guess is that I have my build.json config wrong for IOS build. So my questions are:
-- Where do I find the "codeSignIdentity" or please explain the following.
Code signing identity to use for signing. It can be created with Xcode and added to your keychain. https://cordova.apache.org/docs/en/latest/guide/platforms/ios/
-- Is development team where I put the "teamId"?
-- Is it possible that my "teamId" was generated exactly the same as my app id prefix?
I do have a prod certificate(exported to .p12) and prod provisining file ready. (Template Below)
"ios": {
"debug": {
"codeSignIdentity": "iPhone Development",
"provisioningProfile": "confirmedcorrect",
"developmentTeam": "10or12",
"packageType": "development"
},
"release": {
"codeSignIdentity": "iPhone Distribution",
"provisioningProfile": "confirmedcoorect",
"developmentTeam": "10or12",
"packageType": "app-store"
}
}