ios-control / ios-sim

Command-line application launcher for the iOS Simulator
Apache License 2.0
1.49k stars 253 forks source link

List empty of devices simulator with Xcode 10.2 #253

Closed shazron closed 5 years ago

shazron commented 5 years ago

See related #234

sertal70 commented 5 years ago

@Adza93 the issue about Safari debugging not in sync with iOS 12.2 has been resolved by Apple with the latest macOS update 10.14.4 which contains the Safari update to version 12.1

shazron commented 5 years ago

For global install of @next, the version should be:

$ ios-sim --version
ios-sim/9.0.0-dev.4 darwin-x64 node-v8.15.1
baotpham commented 5 years ago

I received this error:

Error: ENOENT: no such file or directory, stat '/Users/baothienpham/Library/Logs/CoreSimulator/ACD306CC-304E-47BC-8354-DC397C547C6A/system.log'

I also did install ios-sim@next.

shazron commented 5 years ago

@baotpham context? this happened after running which command

baotpham commented 5 years ago

@shazron I ran

cordova emulate ios --debug --target "iPhone-X,com.apple.CoreSimulator.SimRuntime.iOS-12-2" --buildFlag='-UseModernBuildSystem=0'

and

cordova emulate ios --target="iPhone-X"

thanks for the help!

bbb81 commented 5 years ago

Thank you for your great support @shazron !

Everything is working fine now (as before the Xcode update)

quasar dev -m cordova -T ios opens a default simulator as expected.

Thank you for your hard work @shazron! :)

shazron commented 5 years ago

One snafu -- the ios-sim CLI now requires node 8. cordova supports node 6 and above, so it might be one source of problems. There is one place where I'm using the object spread operator, I'll have to find an alternative for node 6 so it runs in cordova with node 6. The joys of backward compatibility!

shazron commented 5 years ago

Looks like ios-sim 9 will not be compatible for Cordova if you have node 6. Thus I'm also preparing a ios-sim 8.x patch release as well for Cordova.

shazron commented 5 years ago

Preparing an 8.0.1 release. Also I realize that my workaround instructions were faulty. It should be:

For the workaround, try in the root of your cordova app after each time the ios platform is added:

cd platforms/ios/cordova
npm install ios-sim

Note that only do this once I release the 8.0.1 patch

Kunj-Choksi commented 4 years ago

@shazron No success in 2020. Please check this one.

ios-sim version ios-sim/9.0.0 darwin-x64 node-v13.12.0

Cordova version 10.0.0

Cordova iOS platform version ios 5.1.1

I tried this cmd sudo cordova emulate ios --debug --target "iPhone-SE--2nd-generation-, 13.5" --buildFlag='-UseModernBuildSystem=0'

Check the attached error image also.

Screenshot 2020-08-09 at 3 11 44 PM

Any hack to get over this error. Just tired of launching the app from Xcode every time : (. Thanks in advance. Let me know if you need anything.