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

Fix(ios): let xcode handle building for ios build --open #12406

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

bradleat
Copy link

This pull request includes a small change so that ios build --open does not build before launching xcode.
This is done because xcode will bulid the entire project and some users who are using the ios build --open flow may be using some specific xcode setup that call_for_targets_with_fallback will fail to build. For instance, building a project with a Apple Watch Companion app will not work otherwise.

Changes in fn run_build in crates/tauri-cli/src/mobile/ios/build.rs:

  • Addedd a conditional return statement to handle the options.open case early in the run_build function. This ensures that the function exits immediately if options.open is true, returning the handle object.

- Added a debug print statement to log the command options being used.
- Cleaned up commented-out code related to CLI options and build process for clarity.
- Ensured the `open_and_wait` function is called consistently after processing build options.

This change improves the visibility of the build command's execution details, aiding in debugging and development.
@bradleat bradleat requested a review from a team as a code owner January 15, 2025 03:48
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

Successfully merging this pull request may close these issues.

1 participant