get xcode sdk
This commit is contained in:
parent
8e76da4ac2
commit
4c90fbd7d1
3 changed files with 18 additions and 1 deletions
11
lib/helpers/extensions/get_xcode_sdk.dart
Normal file
11
lib/helpers/extensions/get_xcode_sdk.dart
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue