CodeWithOz opened a new issue #1221:
URL: https://github.com/apache/cordova-ios/issues/1221


   # Bug Report
   I'm no longer able to use `cordova run` to start my app with the iphone 
simulator. This was working on Saturday and it's no longer working today. The 
error message is:
   ```
   Error: Unhandled error. ('[ios-sim] SyntaxError: Unexpected token u in JSON 
at position 0\n' +
     '    at JSON.parse (<anonymous>)\n' +
     '    at Object.list 
(/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/simctl/simctl.js:173:33)\n'
 +
     '    at getDeviceFromDeviceTypeId 
(/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/src/lib.js:155:21)\n'
 +
     '    at 
/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/src/lib.js:460:22\n'
 +
     '    at withInjectedEnvironmentVariablesToProcess 
(/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/src/lib.js:269:3)\n'
 +
     '    at 
/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/src/lib.js:457:7\n'
 +
     '    at tryParseBuffer 
(/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/node_modules/bplist-parser/bplistParser.js:25:5)\n'
 +
     '    at 
/Users/paultomkinson/Documents/textras/repos/textrasnow/node_modules/ios-sim/node_modules/bplist-parser/bplistParser.js:33:7\n'
 +
     '    at FSReqCallback.readFileAfterClose [as oncomplete] 
(internal/fs/read_file_context.js:63:3)\n')
   ```
   
   ## Problem
   `simctl` now throws an error when trying to get the details of the specified 
target device, as shown in that error message. The problem appears related to 
the changes [discussed in this `simctl` 
issue](https://github.com/ios-control/simctl/issues/27) which led to updating 
`shelljs` to fix a security vulnerability.
   
   ### What is expected to happen?
   `cordova run` completes without errors, which was happening as recently as 2 
days ago.
   
   
   ### What does actually happen?
   See explanation above.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   cordova-ios 6.2.0 on m1 mac
   xcode 13
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   Try `cordova run --emulator --noprepare --nobuild --target="iPhone-13, 15.2" 
--debug` in a project.
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   m1 mac with xcode 13, trying to run my app on any simulator device
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   cordova 11
   cordova-ios 6.2.0
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to