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(cli): let xcode handle building for ios build --open #12406

Merged
merged 3 commits into from
Jan 25, 2025

Conversation

bradleat
Copy link
Contributor

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
Copy link
Contributor

github-actions bot commented Jan 15, 2025

Package Changes Through e06ff7b

There are 5 changes which include tauri-bundler with patch, tauri-driver with patch, @tauri-apps/cli with patch, tauri-cli with patch, tauri with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-bundler 2.2.2 2.2.3
tauri 2.2.3 2.2.4
@tauri-apps/cli 2.2.5 2.2.6
tauri-cli 2.2.5 2.2.6
tauri-driver 2.0.2 2.0.3

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars
Copy link
Member

kinda weirded out by slowly becomming our macos maintainer ngl 😂 I'm not too familiar with building directly in xcode but from what i understand this is working as desired.

@FabianLars
Copy link
Member

btw, for your next contributions (if any) we'll require all commits to be signed. will make a one time exception here :)

@FabianLars FabianLars changed the title Fix(ios): let xcode handle building for ios build --open fix(cli): let xcode handle building for ios build --open Jan 25, 2025
@FabianLars FabianLars merged commit 1a86974 into tauri-apps:dev Jan 25, 2025
14 checks passed
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.

2 participants