airdrummingfool opened a new issue #225: URL: https://github.com/apache/cordova-paramedic/issues/225
# Bug Report ## Problem ### What is expected to happen? I can run `cordova-paramedic` to test an iOS app with Xcode 13 installed on my machine. ### What does actually happen? `cordova-paramedic` [calls `instruments`](https://github.com/apache/cordova-paramedic/blob/c92a2a09eebdad92eb39948874c30f27b0d1bd52/lib/utils/utilities.js#L107) to list the available simulators, but the `instruments` command was deprecated in Xcode 12 and removed in Xcode 13. The process crashes on this call. ## Information Stack trace of the error: ``` Filtering for Targeted Emulator: /^iPhone/ running: instruments -s devices | grep ^iPhone $ instruments -s devices | grep ^iPhone instruments: error: Failed to locate 'instruments'. xcode-select: Failed to locate 'instruments', requesting installation of command line developer tools. Error: Failed to get the list of simulators Error: simulators.reduce is not a function TypeError: simulators.reduce is not a function at Object.getSimulatorData (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/utils/utilities.js:136:10) at ParamedicTargetChooser.chooseTargetForIOS (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/ParamedicTargetChooser.js:140:41) at ParamedicTargetChooser.chooseTarget (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/ParamedicTargetChooser.js:43:30) at ParamedicRunner.getCommandForStartingTests (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:425:78) at /Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:239:30 From previous event: at ParamedicRunner.runLocalTests (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:279:14) at ParamedicRunner.runTests (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:375:25) at /Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:93:29 From previous event: at ParamedicRunner.run (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:79:14) at Object.exports.run (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/lib/paramedic.js:500:19) at Object.<anonymous> (/Users/user/Documents/CordovaProject/node_modules/cordova-paramedic/main.js:184:15) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) ``` ### Command or Code <!-- What command or code is needed to reproduce the problem? --> `npx cordova-paramedic --platform ios --plugin my-plugin --verbose` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> macOS Big Sur, Xcode 13 ### Version information macOS: 11.6 Xcode: 13.0 cordova-paramedic: latest (1.0.0-dev) ios-deploy: 1.11.4 ## 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]
