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 @@ ...@@ -317,7 +317,6 @@
buildSettings = { buildSettings = {
ARCHS = arm64; ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -383,7 +382,6 @@ ...@@ -383,7 +382,6 @@
buildSettings = { buildSettings = {
ARCHS = arm64; ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -498,7 +496,6 @@ ...@@ -498,7 +496,6 @@
buildSettings = { buildSettings = {
ARCHS = arm64; ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
...@@ -521,7 +518,6 @@ ...@@ -521,7 +518,6 @@
buildSettings = { buildSettings = {
ARCHS = arm64; ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = AQ7UHDBEXJ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
......
...@@ -294,7 +294,6 @@ Future<XcodeBuildResult> buildXcodeProject({ ...@@ -294,7 +294,6 @@ Future<XcodeBuildResult> buildXcodeProject({
'clean', 'clean',
'build', 'build',
'-configuration', configuration, '-configuration', configuration,
'-scheme', scheme,
'ONLY_ACTIVE_ARCH=YES', 'ONLY_ACTIVE_ARCH=YES',
]; ];
...@@ -306,6 +305,7 @@ Future<XcodeBuildResult> buildXcodeProject({ ...@@ -306,6 +305,7 @@ Future<XcodeBuildResult> buildXcodeProject({
if (fs.path.extension(entity.path) == '.xcworkspace') { if (fs.path.extension(entity.path) == '.xcworkspace') {
commands.addAll(<String>[ commands.addAll(<String>[
'-workspace', fs.path.basename(entity.path), '-workspace', fs.path.basename(entity.path),
'-scheme', scheme,
"BUILD_DIR=${fs.path.absolute(getIosBuildDirectory())}", "BUILD_DIR=${fs.path.absolute(getIosBuildDirectory())}",
]); ]);
break; break;
......
...@@ -119,6 +119,8 @@ class XcodeProjectInfo { ...@@ -119,6 +119,8 @@ class XcodeProjectInfo {
} }
collector?.add(line.trim()); collector?.add(line.trim());
} }
if (schemes.isEmpty)
schemes.add('Runner');
return new XcodeProjectInfo(targets, buildConfigurations, schemes); 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