mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
fixed flutter run for projects containing a watchOS companion (#54959)
Co-authored-by: Georg Wechslberger <wechslbe@ma.tum.de>
This commit is contained in:
parent
e092dcfa22
commit
f1d522d503
@ -256,7 +256,11 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
final String activeArchName = getNameForDarwinArch(activeArch);
|
||||
if (activeArchName != null) {
|
||||
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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user