Remove -sdk for watchOS simulator in tool (#152992)
Fix the xcodebuild flags mixing up the iOS and watchOS simulators. Confirmed this passed in CI on Xcode 16 beta 5: https://github.com/flutter/flutter/pull/152408 Fixes https://github.com/flutter/flutter/issues/152983 See also https://github.com/flutter/flutter/pull/152347
This commit is contained in:
parent
e66ce1591f
commit
6c3677c6e9
@ -211,7 +211,7 @@ class XcodeProjectInterpreter {
|
|||||||
...<String>['-configuration', configuration],
|
...<String>['-configuration', configuration],
|
||||||
if (target != null)
|
if (target != null)
|
||||||
...<String>['-target', target],
|
...<String>['-target', target],
|
||||||
if (buildContext.sdk == XcodeSdk.IPhoneSimulator || buildContext.sdk == XcodeSdk.WatchSimulator)
|
if (buildContext.sdk == XcodeSdk.IPhoneSimulator)
|
||||||
...<String>['-sdk', 'iphonesimulator'],
|
...<String>['-sdk', 'iphonesimulator'],
|
||||||
'-destination',
|
'-destination',
|
||||||
if (deviceId != null)
|
if (deviceId != null)
|
||||||
|
@ -190,7 +190,7 @@ abstract class XcodeBasedProject extends FlutterProjectPlatform {
|
|||||||
(EnvironmentType.physical, _) when isWatch => XcodeSdk.WatchOS,
|
(EnvironmentType.physical, _) when isWatch => XcodeSdk.WatchOS,
|
||||||
(EnvironmentType.simulator, _) when isWatch => XcodeSdk.WatchSimulator,
|
(EnvironmentType.simulator, _) when isWatch => XcodeSdk.WatchSimulator,
|
||||||
(EnvironmentType.physical, IosProject _) => XcodeSdk.IPhoneOS,
|
(EnvironmentType.physical, IosProject _) => XcodeSdk.IPhoneOS,
|
||||||
(EnvironmentType.simulator, IosProject _) => XcodeSdk.WatchSimulator,
|
(EnvironmentType.simulator, IosProject _) => XcodeSdk.IPhoneSimulator,
|
||||||
(EnvironmentType.physical, MacOSProject _) => XcodeSdk.MacOSX,
|
(EnvironmentType.physical, MacOSProject _) => XcodeSdk.MacOSX,
|
||||||
(_, _) => throw ArgumentError('Unsupported SDK')
|
(_, _) => throw ArgumentError('Unsupported SDK')
|
||||||
};
|
};
|
||||||
|
@ -448,8 +448,6 @@ void main() {
|
|||||||
'xcodebuild',
|
'xcodebuild',
|
||||||
'-project',
|
'-project',
|
||||||
'/',
|
'/',
|
||||||
'-sdk',
|
|
||||||
'iphonesimulator',
|
|
||||||
'-destination',
|
'-destination',
|
||||||
'generic/platform=watchOS Simulator',
|
'generic/platform=watchOS Simulator',
|
||||||
'-showBuildSettings',
|
'-showBuildSettings',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user