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

Interest in install and launching bundled app for iOS? #89

Open
simlay opened this issue Jun 13, 2020 · 1 comment
Open

Interest in install and launching bundled app for iOS? #89

simlay opened this issue Jun 13, 2020 · 1 comment

Comments

@simlay
Copy link
Contributor

simlay commented Jun 13, 2020

I use cargo-bundle pretty regularly for testing out some rust integration with iOS frameworks on the iOS simulator. While building the bundle isn't all that difficult, I've come to realize that installing it on the simulator and running it can be annoying due to all the iOS specific crap there is.

For example, I'm currently playing around with iOS support for iced (the GUI library) and this is how I rebuild, install and launch the example:
cargo bundle --format ios --target x86_64-apple-ios && xcrun simctl install booted $PWD/../../target/x86_64-apple-ios/debug/bundle/ios/ios-example.app && xcrun simctl launch booted com.github.iced.simple

To describe what's going on, after the bundle is built xcrun simctl install booted $PATH_TO_BUNDLE installs the bundled iOS app on a booted simulator. One can also specify the ios simulator ID. The xcrun simctl launch booted $BUNDLE_ID launches the bundled iOS app. In my case, it's the bundled identifier used in the package.metadata.bundle from the Cargo.toml.

Anyway, if there's interest in accepting a PR adding something like --install and --launch as parameters to cargo-bundle, I'd be to do it.

@mdsteele
Copy link
Collaborator

Sounds like a great idea to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants