Skip to content

Commit a37b19d

Browse files
authored
Fix xcrun flag to find platform path
There has been a change in XCrun and running `xcrun --show-sdk-platform-path`. I'm not sure when it started. I found another project with similar observations at rust-lang/cc-rs#1001 It's failing on CI as well and our PRs just go red because of it like https://github.com/square/wire/actions/runs/9160562085/job/25183490538?pr=2952 ``` ~/workspace/wire on master* $ xcrun --show-sdk-platform-path 2024-05-20 17:06:21.697 xcodebuild[74850:2022059] Writing error result bundle to /var/folders/v5/_408d47s3sqf9__x4y6v2p_40000gn/T/ResultBundle_2024-20-05_17-06-0021.xcresult ^[[Axcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" cannot be located. xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' ~/workspace/wire on master* $ xcrun --show-sdk-path /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk ``` That'd be great to fix it. Signed-off-by: Benoît Quenaudon <[email protected]>
1 parent 053fb38 commit a37b19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/xcode/MacOSSdkPlatformPathLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public MacOSSdkPlatformPathLocator(ExecActionFactory execActionFactory) {
3030

3131
@Override
3232
protected List<String> getXcrunFlags() {
33-
return ImmutableList.of("--show-sdk-platform-path");
33+
return ImmutableList.of("--show-sdk-path");
3434
}
3535
}

0 commit comments

Comments
 (0)