Skip to content
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

isimulator - add various other options #118

Open
4 of 12 tasks
IGPenguin opened this issue Jun 23, 2019 · 0 comments
Open
4 of 12 tasks

isimulator - add various other options #118

IGPenguin opened this issue Jun 23, 2019 · 0 comments
Labels
help wanted unknown solution or major effort inevitable new feature idea for new feature

Comments

@IGPenguin
Copy link
Owner

IGPenguin commented Jun 23, 2019

Pull Request #137
Credits to Ankit Kumar Gupta's blogpost

  • xcrun simctl io booted recordVideo — type=mp4 ./test.mp4
  • xcrun simctl io booted screenshot ./screen.png
  • xcrun simctl addmedia booted ./test.mp4
  • `xcrun simctl spawn booted log stream > test.log&`; open test.log;
  • xcrun simctl terminate <pkg> (or terminate foreground app 🤞)

Some other ideas

  • xcrun simctl appinfo booted <bundle-id>
  • add simulator type and iOS version into screenshot/video filename
  • add build - build and run iOS project
  • add layout bounds enabled build
  • enhance launch - add app chooser
  • enhance uninstall - add app chooser
  • and something from the following:
xcrun simctl <command>
	getenv              Print an environment variable from a running device.
	addmedia            Add photos, live photos, videos, or contacts to the library of a device.
	install             Install an app on a device.
	uninstall           Uninstall an app from a device.
	get_app_container   Print the path of the installed app's container
	terminate           Terminate an application by identifier on a device.
	spawn               Spawn a process by executing a given executable on a device.
	pbpaste             Print the contents of the device's pasteboard to standard output.
	io                  Set up a device IO operation.
	diagnose            Collect diagnostic information and logs.
	logverbose          enable or disable verbose logging for a device

Other sources:
https://medium.com/@tci/launch-apps-in-ios-simulator-using-terminal-5f21d60b7151
https://littlebitesofcocoa.com/313-interacting-with-the-ios-simulator-using-simctl
https://nshipster.com/simctl/
https://medium.com/the-traveled-ios-developers-guide/ios-simulator-power-ups-407060863b3c
https://www.iosdev.recipes/simctl/

@IGPenguin IGPenguin added the enhancement existing functionality extension label Jun 23, 2019
@IGPenguin IGPenguin added new feature idea for new feature and removed enhancement existing functionality extension labels Jun 23, 2019
@IGPenguin IGPenguin added the hacktoberfest claim your Pull Requests for yearly Github event label Oct 19, 2019
@IGPenguin IGPenguin removed the hacktoberfest claim your Pull Requests for yearly Github event label Nov 2, 2019
@IGPenguin IGPenguin added the help wanted unknown solution or major effort inevitable label Jan 18, 2020
@radimvaculik radimvaculik mentioned this issue Dec 29, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted unknown solution or major effort inevitable new feature idea for new feature
Projects
None yet
Development

No branches or pull requests

1 participant