ginowu7 / CustomSimulatorsExample

28 stars 4 forks source link

Xcode 10 wont see Custom Simulators #3

Open obozhdi opened 6 years ago

obozhdi commented 6 years ago

Tried doing everything according to your article. Didn't succeed while using Xcode 10 GM.

eivindml commented 5 years ago

Same here. It only launches one simulator, and it's the wrong one. This is the result of running sample code in this repo (where iPads are specified in config file).

skjermbilde 2018-11-06 kl 19 57 35
iliaskarim commented 5 years ago

Ditto

eivindml commented 5 years ago

Figured it out. If you look at the result of instruments -s devices, there are now entries which makes how things are specified in MultiSimConfig.txt ambigous.

For instance:

iPhone XS (12.1) [76662943-D86F-4F7D-9BE9-4AE538B85851] (Simulator)
iPhone XS (12.1) + Apple Watch Series 4 - 40mm (5.1) [6EF7F32A-937A-4723-B2B4-2D781632B8A6] (Simulator)

If you add a [ to the end, you will get the first result only.

It works if you specify your file like this:

skjermbilde 2018-11-08 kl 16 39 11
iliaskarim commented 5 years ago

Cheers for that @eivindml, I opened a pull request addressing the issue.

chenweigh commented 5 years ago

after react-native run-ios --simulator "Custom Simulators" there are some wrong.

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/CxyClassroom_phone.app
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
Unable to lookup in current state: Shutdown
Launching com.cxy61.liveclassroom-phone
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
Unable to lookup in current state: Shutdown
chenweigh commented 5 years ago

only one simulator. not two