Open janpio opened 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.
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)
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
xcrun suimctl list
andinstruments -s devices
Alternatives or Workarounds
None