Appium and Cordova 6 web apps

I had Appium tests working Android and iOS devices with Cordova 5.4.1, but since updating my web app with Cordova 6.0.0 I’m getting errors running my tests…

iOS Device fails to launch app on device - error:
Instruments exited with code 255 Instruments Usage Error : Specified target process is invalid: ...

Android Device fails to install app - error:
FATAL ERROR: invalid table size Allocation failed - process out of memory Abort trap: 6

  • The Cordova .apk filesize is 60MB

Dev profile:
Appium version: 1.5.0-beta14 (did try the normal release first but the beta version was better)
Xcode version: 7.2.1
iOS version: 9.2.1
Android version: 5.0.2

NB: I also found the ‘autoWebview: true’ didn’t work with my app after updating to Cordova 6 so I had to switch to webview context manually before running tests.

Could you provide full log

Full logs running iOS device (UDID replaced by ‘***’)

Appium log attempting to run (vanilla) Cordova 6 on iOS device:

[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platform...
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium]   app: '/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app'
[Appium]   fullReset: true
[Appium]   autoWebview: false
[Appium]   platformName: 'iOS'
[Appium]   platformVersion: '9.2.1'
[Appium]   deviceName: 'iPhone 6'
[Appium]   autoAcceptAlerts: true
[Appium]   udid: '***'
[BaseDriver] Session created with session id: 9bd87e4f-30a1-43f7-a24f-9d427c3d9343
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app'
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/instruments_sock
[iOS] Could not file localizable strings file: Localizable.strings!
[debug] [ios-app-utils] Getting bundle ID from app
[iOS] Extracted bundleID: net.deadlyfingers.Cordova6 from app: /Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app
[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/david/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/Users/david/.nvm/versions/node/v0.12.0/bin/node","commandProxyClientPath":"/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":true,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
...bug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
[debug] [UIAuto] Dynamic bootstrap path: /Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js
[debug] [iOS] Running ios real device reset flow
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [iOS] Creating iDevice object with udid ***
[debug] [iOS] App is installed.
[debug] [iOS] fullReset requested. Forcing app install.
[debug] [iOS] Starting UIAutoClient, and launching Instruments.
[debug] [UIAuto] Instruments socket server started at /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/instruments_sock
[debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
[debug] [Instruments] Attempting to launch instruments, this is try #1
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '***'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments/instrumentscli0.trace -w *** net.deadlyfingers.Cordova6 -e UIASCRIPT "/Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js" -e UIARESULTSPATH /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:02.457 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.capabilities"; channel canceled <DTXChannel: 0x7fd062ce2e80>
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:02.458 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7fd062ce3a60>
2016-02-19 14:02:02.458 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7fd062ce4790>
2016-02-19 14:02:02.459 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7fd062ce4fb0>
2016-02-19 14:02:02.459 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7fd062ce5780>
2016-02-19 14:02:02.460 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7fd062ce5d60>
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:02.461 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7fd062ce6710>
2016-02-19 14:02:02.461 instruments[5281:993336] Connection peer refused channel request for "com.apple.dt.Xcode.WatchProcessControl"; channel canceled <DTXChannel: 0x7fd06073e240>
2016-02-19 14:02:02.461 instruments[5281:993336] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fd062ce4700>
[debug] [Instruments] [INST STDERR] Instruments Usage Error : Specified target process is invalid: net.deadlyfingers.Cordova6
[debug] [Instruments] [INST STDERR] instruments, version 7.2.1 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #2
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '***'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments/instrumentscli0.trace -w *** net.deadlyfingers.Cordova6 -e UIASCRIPT "/Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js" -e UIARESULTSPATH /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:08.713 instruments[5288:993983] Failed to start Instruments daemon on 'iPhone 6 (9.2.1)' (Could not connect to the device.)
[debug] [Instruments] [INST STDERR] Instruments Usage Error : Specified target process is invalid: net.deadlyfingers.Cordova6
instruments, version 7.2.1 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #3
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '***'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments/instrumentscli0.trace -w *** net.deadlyfingers.Cordova6 -e UIASCRIPT "/Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js" -e UIARESULTSPATH /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:14.886 instruments[5295:994321] Failed to start Instruments daemon on 'iPhone 6 (9.2.1)' (Could not connect to the device.)
[debug] [Instruments] [INST STDERR] Instruments Usage Error : Specified target process is invalid: net.deadlyfingers.Cordova6
[debug] [Instruments] [INST STDERR] instruments, version 7.2.1 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:14.898 instruments[5295:994393] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #4
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '***'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments/instrumentscli0.trace -w *** net.deadlyfingers.Cordova6 -e UIASCRIPT "/Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js" -e UIARESULTSPATH /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:21.033 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.capabilities"; channel canceled <DTXChannel: 0x7ffd25d65240>
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:21.033 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.device.xpccontrol"; channel canceled <DTXChannel: 0x7ffd25e2a140>
2016-02-19 14:02:21.034 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.deviceinfo"; channel canceled <DTXChannel: 0x7ffd25e1e340>
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:21.034 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol"; channel canceled <DTXChannel: 0x7ffd25e0dcd0>
2016-02-19 14:02:21.034 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.processcontrol.posixspawn"; channel canceled <DTXChannel: 0x7ffd25e31b40>
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:21.034 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.mobilenotifications"; channel canceled <DTXChannel: 0x7ffd25e0a850>
[debug] [Instruments] [INST STDERR] Instruments Usage Error : Specified target process is invalid: net.deadlyfingers.Cordova6
instruments, version 7.2.1 (59503)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
2016-02-19 14:02:21.035 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.device.applictionListing"; channel canceled <DTXChannel: 0x7ffd25e285c0>
2016-02-19 14:02:21.035 instruments[5302:994920] Connection peer refused channel request for "com.apple.dt.Xcode.WatchProcessControl"; channel canceled <DTXChannel: 0x7ffd25e33e70>
2016-02-19 14:02:21.035 instruments[5302:994920] Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7ffd23585e60>
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #5
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '***'
[debug] [Instruments] Found Insruments-Without-Delay: /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments/instrumentscli0.trace -w *** net.deadlyfingers.Cordova6 -e UIASCRIPT "/Users/david/Library/Application Support/appium/bootstrap/bootstrap-62e4e3b1857731fe.js" -e UIARESULTSPATH /var/folders/x1/jpw2brwx4zl3bgd7753bvf8r0000gn/T/appium-instruments'
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[debug] [Instruments] [INST STDERR] 2016-02-19 14:02:27.208 instruments[5309:995693] Failed to start Instruments daemon on 'iPhone 6 (9.2.1)' (Could not connect to the device.)
[debug] [Instruments] [INST STDERR] Instruments Usage Error : Specified target process is invalid: net.deadlyfingers.Cordova6
instruments, version 7.2.1 (59503)
[debug] [Instruments] [INST STDERR] usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[Instruments] Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
    at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
    at Instruments.launch$ (lib/instruments.js:210:15)
    at tryCatch (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    at run (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
    at /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
    at flush (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
    at process._tickCallback (node.js:355:11)
 [Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch]
[MJSONWP] Encountered internal error running command: Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
    at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
    at Instruments.launch$ (lib/instruments.js:210:15)
    at tryCatch (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    at run (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
    at /Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
    at flush (/Users/david/.nvm/versions/node/v0.12.0/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
    at process._tickCallback (node.js:355:11)
[HTTP] <-- POST /wd/hub/session 500 33308.456 ms - 232

Mocha test log:

Davids-MacBook:Cordova6 david$ mocha test.js --cap=iosDevice --deviceName="iPhone 6" --udid="***" --platformVersion="9.2.1"


  cordova
cap: iosDevice platform: darwin
 > CALL init({"app":"/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"})
 > POST /session {"desiredCapabilities":{"app":"/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"}}
    1) "before all" hook
    2) "after all" hook


  0 passing (33s)
  2 failing

  1) cordova "before all" hook:
     [init({"app":"/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"})] The environment you requested was unavailable.
  Error: [init({"app":"platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"})] The environment you requested was unavailable.
      at node_modules/wd/lib/webdriver.js:129:15
      at Request._callback (node_modules/wd/lib/http-utils.js:87:7)
      at Request.self.callback (node_modules/wd/node_modules/request/request.js:368:22)
      at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1219:14)
      at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1167:12)
      at _stream_readable.js:908:16

  2) cordova "after all" hook:
     [init({"app":"/Users/david/Scripts/Cordova6/platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"})] The environment you requested was unavailable.
  Error: [init({"app":"platforms/ios/build/device/Cordova6.app","fullReset":true,"autoWebview":false,"platformName":"iOS","platformVersion":"9.2.1","deviceName":"iPhone 6","autoAcceptAlerts":true,"udid":"***"})] The environment you requested was unavailable.
      at node_modules/wd/lib/webdriver.js:129:15
      at Request._callback (node_modules/wd/lib/http-utils.js:87:7)
      at Request.self.callback (node_modules/wd/node_modules/request/request.js:368:22)
      at Request.<anonymous> (node_modules/wd/node_modules/request/request.js:1219:14)
      at IncomingMessage.<anonymous> (node_modules/wd/node_modules/request/request.js:1167:12)
      at _stream_readable.js:908:16



Davids-MacBook:Cordova6 david$

Looks like it’s reading this bundleId from a plist or something. Is that the correct bundleId? You might try setting the bundleId explicitly in your capabilities. In the previous version of Cordova you probably had this plist set correctly & the new version has overwritten or something.

This is a new / vanilla Cordova 6 project so it should be the right bundle id. Eg:

cordova create Cordova6 net.deadlyfingers.Cordova6 Cordova6

The Cordova6-Info.plist file also shows ‘net.deadlyfingers.Cordova6’ for the Bundle identifier.
I have also tried passing the ‘bundleId’ with the desired caps before.

Have you successfully submitted this app to the App Store? I ask this because you may have a mismatched bundle identifier. In case you do, here is some info on the problem: