apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 989 forks source link

Improve --target and --list #595

Open janpio opened 5 years ago

janpio commented 5 years ago

Feature Request

Motivation Behind Feature

--target and --list are currently one of the most iffy areas of cordova-ios. They use a unexpected format, that is also ambiguous which simulator really will be used.

Feature Description

Alternatives or Workarounds

None

janpio commented 5 years ago

Stumbled over this when trying to understand how cordova-paramedic tries to get the logs from the simulator. Turns out it runs cordova run --list --emulator, then greps and selects something from it, but also has to run instruments -s devices and parse stuff out of there trying to find a matching device ID. This usually works, until it doesn't which is super hard to understand and debug. Would make much more sense to let cordova-ios do the job for paramedic as well.

airdrummingfool commented 3 years ago

Also worth noting is that the instruments command was deprecated in Xcode 12, and removed from Xcode 13. Running cordova-paramedic with Xcode 13 now crashes at "Filtering for Targeted Emulator".

Edit: xcrun xctrace list devices seems to be a good replacement, and is recommended by the deprecation warning when running instruments on Xcode 12:

`instruments` is now deprecated in favor of 'xcrun xctrace' (see `man xctrace` for more information on its replacement)