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,9 +256,13 @@ Future<XcodeBuildResult> buildXcodeProject({
final String activeArchName = getNameForDarwinArch(activeArch);
if (activeArchName != null) {
buildCommands.add('ONLY_ACTIVE_ARCH=YES');
// 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');
}
}
}
if (!codesign) {
buildCommands.addAll(
......
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