-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use simctl (Xcode 6) #92
Comments
I haven't investigated this fully, but it may not replace all ios-sim features. |
simctl does not actually launch the simulator with a certain device. For that you need to use "instruments" this will list available devices$ xcrun instruments -s devices this will launch the simulator with the appropriate device$ xcrun instruments -w "iPhone 6 Plus" Plan:
|
This feature should be in a 4.x branch since it completely overhauls the existing code. |
This should just be a node.js script |
4.x branch created. |
I tried to write script but unfortunately could not get the stdout or stderr to work. Any ideas? |
I've started on the 4.x branch: https://github.com/phonegap/ios-sim/tree/4.x @gurubarancse I haven't gotten to that part yet, not sure. |
We might have to watch the log: http://stackoverflow.com/a/25822966/219684 |
tail package could be used in combination with the log path: https://www.npmjs.org/package/tail |
Changes are logged in the "Usage" in the README as development progresses: https://github.com/phonegap/ios-sim/tree/4.x#usage |
I am trying to use simctl to erase content and settings. It gives me an error saying Any idea how to fix this? |
Are you using the simctl node module or using simctl directly? If it's an issue for the node module, file an issue here instead: https://github.com/phonegap/simctl/issues |
I am using simctl directly
|
Then your issue is off-topic for this thread or phonegap/simctl. If I knew the answer I would reply but I don't unfortunately. |
$ xcrun simctl
WARNING: The simctl interface is not stable and is likely to change prior to release.
Usage: simctl [--noxpc] [--set ] ... | help [subcommand]
Command line utility to control the iOS Simulator
Subcommands:
create Create a new device.
delete Delete a device.
erase Erase a device's contents and settings.
boot Boot a device.
shutdown Shutdown a device.
rename Rename a device.
getenv Print an environment variable from a running device.
openurl Open a URL in a given SimDevice
addphoto Add photo to the photo library of a given SimDevice
launch Launch an application by identifier
spawn Spawn a process in the simulator
list List available sessions, devices, or runtimes.
help Prints the usage for a given subcommand.
The text was updated successfully, but these errors were encountered: