Skip to content

Commit

Permalink
[iOS] Change the min sim for watchOS. (#443)
Browse files Browse the repository at this point in the history
The min simulator that can be used in xcode12.5 and later has changed.
We need to bump it.

This is a quick fix but we should be able to support the desired version
from the API.
  • Loading branch information
mandel-macaque authored Feb 11, 2021
1 parent fb3bd17 commit 66b9a52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private async Task<bool> CreateDevicePair(ILog log, ISimulatorDevice device, ISi
TestTarget.Simulator_iOS32 => "com.apple.CoreSimulator.SimDeviceType.iPhone-5",
TestTarget.Simulator_iOS64 => "com.apple.CoreSimulator.SimDeviceType." + (minVersion ? "iPhone-6" : "iPhone-X"),
TestTarget.Simulator_tvOS => "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p",
TestTarget.Simulator_watchOS => "com.apple.CoreSimulator.SimDeviceType." + (minVersion ? "Apple-Watch-38mm" : "Apple-Watch-Series-3-38mm"),
TestTarget.Simulator_watchOS => "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm", // min version from xcode12.5 and later.
_ => throw new Exception(string.Format("Invalid simulator target: {0}", target))
};

Expand Down

0 comments on commit 66b9a52

Please sign in to comment.