Skip to content

fix(ios): do not provide arch on xcodebuild when running build and archive#353

Merged
lucasfernog merged 2 commits intotauri-apps:devfrom
glumn:feat/arch-option-optout
Aug 19, 2024
Merged

fix(ios): do not provide arch on xcodebuild when running build and archive#353
lucasfernog merged 2 commits intotauri-apps:devfrom
glumn:feat/arch-option-optout

Conversation

@glumn
Copy link
Contributor

@glumn glumn commented Jul 30, 2024

xcodebuild specifies that when passed, the arch option will be used for every single target rather than using the project's configuration:

 ~/code/cargo-mobile2:  xcodebuild --help 2>&1 | grep ARCH                                                                    
    -arch ARCH                                               build each target for the architecture ARCH; this will override architectures defined in the project

This can prevent more complex use cases where modifications have been made to the project's build settings.

Rather than modifying the default behavior, offer a way to fallback to project configuration for those cases

xcodebuild specifies that when passed, the arch option will be used for every single target within the project / workspace.
This can prevent more complex use cases where modifications have been made to the project's build settings.

Rather than modifying the default behavior, offer a way to fallback to project configuration for those cases
@lucasfernog lucasfernog changed the title feat(ios): add option to opt out of specifying arch on build and archive fix(ios): do not provide arch on xcodebuild when running build and archive Aug 19, 2024
@lucasfernog
Copy link
Member

Looks like we can safely remove the arch - I've been testing this on both my macbook (apple silicon) and mac mini (intel)

@lucasfernog lucasfernog merged commit b1c2313 into tauri-apps:dev Aug 19, 2024
@github-actions github-actions bot mentioned this pull request Aug 19, 2024
@glumn
Copy link
Contributor Author

glumn commented Aug 20, 2024

Great news !

@glumn glumn deleted the feat/arch-option-optout branch August 20, 2024 06:47
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