fix(ios): fix build when Metal Toolchain exist in the system#14921
Conversation
Package Changes Through 12f1658There are 6 changes which include tauri-macos-sign with patch, tauri with minor, tauri-bundler with patch, tauri-cli with patch, @tauri-apps/cli with patch, tauri-utils with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Hi @lucasfernog — friendly bump on this one 🙂. The issue (#14864) is still easily reproducible on any Mac with the Metal Toolchain installed, and it completely blocks iOS builds. The fix is minimal (swapping
|
|
it would be awesome if you could sign your commits and force push since we technically have branch protections set up enforcing this. also, if you add a changefile i'll just merge this :) |
51587d4 to
cc2376d
Compare
cc2376d to
e962320
Compare
|
@FabianLars done :) |

Fixes #14864
This pull request updates the way Swift library search paths are specified for iOS builds, ensuring they reference the correct Xcode toolchain location. The change replaces usage of the
TOOLCHAIN_DIRvariable with the explicit$(DEVELOPER_DIR)/Toolchains/XcodeDefault.xctoolchainpath for botharm64andx86_64architectures. This adjustment fixes compatibility and reliability of iOS builds especially whenMetalToolchainexisted in the system.Changes
Build configuration updates:
LIBRARY_SEARCH_PATHSforarm64andx86_64architectures incrates/tauri-cli/templates/mobile/ios/project.ymlto use$(DEVELOPER_DIR)/Toolchains/XcodeDefault.xctoolchaininstead of$(TOOLCHAIN_DIR)for Swift libraries.Test fixture alignment:
LIBRARY_SEARCH_PATHSforarm64andx86_64incrates/tauri-cli/tests/fixtures/pbxproj/project.pbxprojto match the new toolchain path. [1] [2]crates/tauri-cli/tests/fixtures/pbxproj/snapshots/tauri_cli__helpers__pbxproj__tests__project-modified.pbxproj.snapandproject.pbxproj.snapto reflect the new library search paths. [1] [2] [3] [4]