Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
iOS
Description
Update .travis.yml with osx_image: xcode8.3 and you will see this jasmine failure:
Failures: 1) end-to-end list validation Test#008 : handles list parameter Message: Expected 'Available iOS Devices: TypeError: Cannot read property 'replace' of undefined at remove (/Users/travis/build/apache/cordova-ios/node_modules/ios-sim/src/lib.js:282:70) at Array.forEach (native) at Object.getdevicetypes (/Users/travis/build/apache/cordova-ios/node_modules/ios-sim/src/lib.js:292:22) at Object.listEmulatorImages [as run] (/Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/list-emulator-images:34:29) at listEmulators (/Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/run.js:208:46) at /Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/run.js:47:20 at _fulfilled (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:796:13) at /Users/travis/build/apache/cordova-ios/node_modules/q/q.js:604:44 ' to match /Available iOS Simulators/. Stack: Error: Expected 'Available iOS Devices: TypeError: Cannot read property 'replace' of undefined at remove (/Users/travis/build/apache/cordova-ios/node_modules/ios-sim/src/lib.js:282:70) at Array.forEach (native) at Object.getdevicetypes (/Users/travis/build/apache/cordova-ios/node_modules/ios-sim/src/lib.js:292:22) at Object.listEmulatorImages [as run] (/Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/list-emulator-images:34:29) at listEmulators (/Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/run.js:208:46) at /Users/travis/build/apache/cordova-ios/bin/templates/scripts/cordova/lib/run.js:47:20 at _fulfilled (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/Users/travis/build/apache/cordova-ios/node_modules/q/q.js:796:13) at /Users/travis/build/apache/cordova-ios/node_modules/q/q.js:604:44 ' to match /Available iOS Simulators/. at Object.<anonymous> (/Users/travis/build/apache/cordova-ios/tests/spec/create.spec.js:124:24) Ran 1 of 9 specs 1 spec, 1 failure
The same code passes on Xcode 8.3.2 when testing locally.