Skip to content

Commit e7e49a6

Browse files
committed
fix: metal toolchain is not included in Xcode 26 and can be ignored
1 parent 4ce18ed commit e7e49a6

File tree

1 file changed

+5
-0
lines changed
  • project-template-ios/internal

1 file changed

+5
-0
lines changed

project-template-ios/internal/nsld.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ printf "Generating metadata..."
5959
GEN_METADATA $TARGET_ARCH
6060
DELETE_SWIFT_MODULES_DIR
6161
NS_LD="${NS_LD:-"$TOOLCHAIN_DIR/usr/bin/clang"}"
62+
# Skip linking if the resolved linker path points to a transient Metal.xctoolchain
63+
if [[ "$NS_LD" == *"Metal.xctoolchain"* ]]; then
64+
echo "NSLD: Skipping link because NS_LD resolves to a Metal.xctoolchain: $NS_LD"
65+
exit 0
66+
fi
6267
$NS_LD "$@"

0 commit comments

Comments
 (0)