iOS cordova exit status 66

Bitrise Build Issue Report template

Description of the issue

I’m building an app based on cordova for iOS with github as source, it goes well untill the archive step in which it finishes with this error:
exit status 66

In more detail:
2021-06-05 16:07:48.568 xcodebuild[2024:16622] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 70. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.

2021-06-05 16:07:48.568 xcodebuild[2024:16622] Error Domain=NSCocoaErrorDomain Code=3840 “JSON text did not start with array or object and option to allow fragments not set.” UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}

2021-06-05 16:07:48.570 xcodebuild[2024:16622] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x7fb0a245a230: name:Midzomerfeest path:group:Midzomerfeest.xcodeproj> Failed to load container at path: /Users/vagrant/git/platforms/ios/Midzomerfeest.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "The project ‘Midzomerfeest’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.

Environment:

Where did the issue happen?

Britse.io - Xcode 12.4.x (tried other stacks as well, same issue)

Which build Step causes the issue and which version of the step?

Building project

$ cordova “compile” “–release” “–emulator” “ios” “android” “–buildConfig” “/var/folders/wp/4pf4qdmn217djs68lskdcc780000gn/T/__bitrise-cordova-build-config__217038628/build.json” “–buildFlag=-UseModernBuildSystem=0”

Reading build config file: /var/folders/wp/4pf4qdmn217djs68lskdcc780000gn/T/__bitrise-cordova-build-config__217038628/build.json

cordova-archive@2 (exit code: 1)

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • _Does a rebuild without caches help? not succeeded to do this, no cache step present though.
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : from the beginning

Build log

Config:
- Platform: ios,android
- Configuration: release
- Target: emulator
- BuildConfig: /var/folders/wp/4pf4qdmn217djs68lskdcc780000gn/T/__bitrise-cordova-build-config__217038628/build.json
- RunPrepare: true
- CordovaVersion: 
- WorkDir: /Users/vagrant/git
- Options: --buildFlag="-UseModernBuildSystem=0"
- DeployDir: /Users/vagrant/deploy
- UseCache: false
Using cordova version:
9.0.0 (cordova-lib@9.0.1)
Preparing project
$ cordova "prepare" "ios" "android"
Overwriting existing resource file at platforms/ios/Midzomerfeest/Resources/push/GoogleService-Info.plist
Building project
$ cordova "compile" "--release" "--emulator" "ios" "android" "--buildConfig" "/var/folders/wp/4pf4qdmn217djs68lskdcc780000gn/T/__bitrise-cordova-build-config__217038628/build.json" "--buildFlag=-UseModernBuildSystem=0"
Reading build config file: /var/folders/wp/4pf4qdmn217djs68lskdcc780000gn/T/__bitrise-cordova-build-config__217038628/build.json
List simulator targets
Running command: xcrun simctl list --json
Select last emulator from list as default.
List simulator targets
Running command: xcrun simctl list --json
No simulator found for ". Falling back to the default target.
Building for "iPhone 12 Pro Max" Simulator (com.apple.CoreSimulator.SimDeviceType.iPhone-12-Pro-Max, iPhone-12-Pro-Max).
Building project: /Users/vagrant/git/platforms/ios/Midzomerfeest.xcworkspace
	Configuration: Release
	Platform: emulator
	Target: iPhone 12 Pro Max
Adding xcodebuildArg: [ '-UseModernBuildSystem=0' ]
Running command: xcodebuild -workspace Midzomerfeest.xcworkspace -scheme Midzomerfeest -configuration Release -sdk iphonesimulator -destination platform=iOS Simulator,name=iPhone 12 Pro Max build CONFIGURATION_BUILD_DIR=/Users/vagrant/git/platforms/ios/build/emulator SHARED_PRECOMPS_DIR=/Users/vagrant/git/platforms/ios/build/sharedpch -UseModernBuildSystem=0
Command line invocation:
    /Applications/Xcode-12.5.app/Contents/Developer/usr/bin/xcodebuild -workspace Midzomerfeest.xcworkspace -scheme Midzomerfeest -configuration Release -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 12 Pro Max" build CONFIGURATION_BUILD_DIR=/Users/vagrant/git/platforms/ios/build/emulator SHARED_PRECOMPS_DIR=/Users/vagrant/git/platforms/ios/build/sharedpch -UseModernBuildSystem=0
User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES
    UseModernBuildSystem = 0
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/vagrant/git/platforms/ios/build/emulator
    SDKROOT = iphonesimulator14.5
    SHARED_PRECOMPS_DIR = /Users/vagrant/git/platforms/ios/build/sharedpch
2021-06-05 16:07:48.568 xcodebuild[2024:16622] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 70. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug.
2021-06-05 16:07:48.568 xcodebuild[2024:16622] Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
2021-06-05 16:07:48.570 xcodebuild[2024:16622] [MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x7fb0a245a230: name:Midzomerfeest path:group:Midzomerfeest.xcodeproj> Failed to load container at path: /Users/vagrant/git/platforms/ios/Midzomerfeest.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "The project ‘Midzomerfeest’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
Path: /Users/vagrant/git/platforms/ios/Midzomerfeest.xcodeproj" UserInfo={NSLocalizedDescription=The project ‘Midzomerfeest’ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
Path: /Users/vagrant/git/platforms/ios/Midzomerfeest.xcodeproj}
--- xcodebuild: WARNING: Unable to open project file '/Users/vagrant/git/platforms/ios/Midzomerfeest.xcodeproj' in workspace 'Midzomerfeest.xcworkspace'.
xcodebuild: error: Scheme Midzomerfeest is not currently configured for the build action.
xcodebuild: Command failed with exit code 66
cordova build failed, error: exit status 66
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | cordova-archive@2 (exit code: 1)                              | 27.30 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: .../github.com/bitrise-community/steps-cordova-archive/issues |
| Source: https://github.com/bitrise-community/steps-cordova-archive           |
+---+---------------------------------------------------------------+----------+
                                          ▼
+------------------------------------------------------------------------------+

| (7) deploy-to-bitrise-io@1                                                   |
+---+---------------------------------------------------------------+----------+
+---+---------------------------------------------------------------+----------+
| ✓ | deploy-to-bitrise-io@1                                        | 8.99 sec |
+---+---------------------------------------------------------------+----------+
+------------------------------------------------------------------------------+
|                               bitrise summary                                |
+---+---------------------------------------------------------------+----------+
|   | title                                                         | time (s) |
+---+---------------------------------------------------------------+----------+
| ✓ | activate-ssh-key@4                                            | 11.17 sec|
+---+---------------------------------------------------------------+----------+
| ✓ | git-clone@6                                                   | 9.43 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | Do anything with Script step                                  | 2.34 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | certificate-and-profile-installer@1                           | 6.62 sec |
+---+---------------------------------------------------------------+----------+
| ✓ | npm@1                                                         | 10.94 sec|
+---+---------------------------------------------------------------+----------+
| ✓ | generate-cordova-build-configuration@0                        | 4.46 sec |
+---+---------------------------------------------------------------+----------+
| x | cordova-archive@2 (exit code: 1)                              | 27.30 sec|
+---+---------------------------------------------------------------+----------+
| Issue tracker: .../github.com/bitrise-community/steps-cordova-archive/issues |
| Source: https://github.com/bitrise-community/steps-cordova-archive           |
+---+---------------------------------------------------------------+----------+
| ✓ | deploy-to-bitrise-io@1                                        | 8.99 sec |
+---+---------------------------------------------------------------+----------+
| Total runtime: 1.4 min                                                       |
+------------------------------------------------------------------------------+

Hi @marthaarman,

Thanks for reaching out! It seems you also submitted a ticket to our Support team and @Roland-Bak is on it! :muscle: We will reply via email so make sure to check your inbox. Thanks for your patience!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.