Support Xcode projects with no schemes (#11750)

This commit is contained in:
Mikkel Nygaard Ravn
2017-08-23 11:58:21 +02:00
committed by GitHub
parent 9496e6dfa7
commit 32ab3dbee0
3 changed files with 3 additions and 5 deletions

View File

@@ -294,7 +294,6 @@ Future<XcodeBuildResult> buildXcodeProject({
'clean',
'build',
'-configuration', configuration,
'-scheme', scheme,
'ONLY_ACTIVE_ARCH=YES',
];
@@ -306,6 +305,7 @@ Future<XcodeBuildResult> buildXcodeProject({
if (fs.path.extension(entity.path) == '.xcworkspace') {
commands.addAll(<String>[
'-workspace', fs.path.basename(entity.path),
'-scheme', scheme,
"BUILD_DIR=${fs.path.absolute(getIosBuildDirectory())}",
]);
break;

View File

@@ -119,6 +119,8 @@ class XcodeProjectInfo {
}
collector?.add(line.trim());
}
if (schemes.isEmpty)
schemes.add('Runner');
return new XcodeProjectInfo(targets, buildConfigurations, schemes);
}