Commit 32ab3dbe authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Support Xcode projects with no schemes (#11750)

parent 9496e6df
......@@ -317,7 +317,6 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -383,7 +382,6 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -498,7 +496,6 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......@@ -521,7 +518,6 @@
buildSettings = {
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment