Unverified Commit f1d522d5 authored by tauu's avatar tauu Committed by GitHub

fixed flutter run for projects containing a watchOS companion (#54959)

Co-authored-by: 's avatarGeorg Wechslberger <wechslbe@ma.tum.de>
parent e092dcfa
...@@ -256,7 +256,11 @@ Future<XcodeBuildResult> buildXcodeProject({ ...@@ -256,7 +256,11 @@ Future<XcodeBuildResult> buildXcodeProject({
final String activeArchName = getNameForDarwinArch(activeArch); final String activeArchName = getNameForDarwinArch(activeArch);
if (activeArchName != null) { if (activeArchName != null) {
buildCommands.add('ONLY_ACTIVE_ARCH=YES'); buildCommands.add('ONLY_ACTIVE_ARCH=YES');
buildCommands.add('ARCHS=$activeArchName'); // Setting ARCHS to $activeArchName will break the build if a watchOS companion app exists,
// as it cannot be build for the architecture of the flutter app.
if (!hasWatchCompanion) {
buildCommands.add('ARCHS=$activeArchName');
}
} }
} }
......
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