Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: 1.9.0
ios-sim version: 5.0.12
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
ionic emulate ios --target="iPhone-7-Plus"
i tested. [email protected] working.
[email protected] not working.
error message
Device type "com.apple.CoreSimulator.SimDeviceType."iPhone-7-Plus"" could not be found.
[cdf2ed3] cross-spawn-async -> cross-spawn
cross-spawn is not working?
+1
Same problem with ionic 2.1.17. Here is my info:
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.2.0
Xcode version: Xcode 8.2 Build version 8C38
I use the following command:
ionic run ios --target="iPhone-6s"
Whatever target argument I pass it always says "not found". I used cordova emulate ios --list for the list of available target names as suggested somewhere on Stack Overflow (is this correct?).
Even using iPhone-SE (which seems to be the default target) is not working.
I believe that this issue is resolved with the following commit: 42fda29a48c8d92375e6fe521b2d61f51ceb301a. Please try installing our latest nightly and let me know if you still have the issue.
npm install -g [email protected]
Installing [email protected] worked for me, thanks!
Perfect! Thanks for checking. We should release 2.1.18 next few days with this fix.
I'm on Ionic CLI 1.2.17 and i could resolve this by ionic run ios --target "iPhone-6s" without '='
@tamerbak is that a typo in the cli version. I can confirm this working on 2.1.17 using command:
ionic emulate -lsc --debug --target "iPhone-7-Plus, 10.2"
Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.
Thank you for using Ionic!