Support Xcode projects with no schemes (#11750)
This commit is contained in:
committed by
GitHub
parent
9496e6dfa7
commit
32ab3dbee0
@@ -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;
|
||||
|
||||
@@ -119,6 +119,8 @@ class XcodeProjectInfo {
|
||||
}
|
||||
collector?.add(line.trim());
|
||||
}
|
||||
if (schemes.isEmpty)
|
||||
schemes.add('Runner');
|
||||
return new XcodeProjectInfo(targets, buildConfigurations, schemes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user