get xcode sdk

This commit is contained in:
Henry Hiles 2026-07-07 18:51:27 -04:00
commit 4c90fbd7d1
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,11 @@
import "dart:io";
Future<String> getXCodeSDK() async {
final result = await Process.run("xcrun", ["--show-sdk-path"]);
if (result.exitCode != 0) {
throw Exception("Failed to get XCode SDK\n${result.stderr}");
}
return result.stdout;
}