Improved error message for iOS device on a non-Mac host (#7859)
And fix some un-grammatical language below.
This commit is contained in:
parent
fb72f21cdc
commit
cce70d7069
@ -361,7 +361,7 @@ class IOSSimulator extends Device {
|
|||||||
@override
|
@override
|
||||||
bool isSupported() {
|
bool isSupported() {
|
||||||
if (!p.platform.isMacOS) {
|
if (!p.platform.isMacOS) {
|
||||||
_supportMessage = 'Not supported on a non Mac host';
|
_supportMessage = 'iOS devices require a Mac host machine.';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ class IOSSimulator extends Device {
|
|||||||
if (iPhoneMatch != null) {
|
if (iPhoneMatch != null) {
|
||||||
if (name == 'iPhone 5s')
|
if (name == 'iPhone 5s')
|
||||||
return true;
|
return true;
|
||||||
_supportMessage = 'Flutter does not support yet iPhone 5 or earlier. Select an iPhone 5s or above.';
|
_supportMessage = 'Flutter does not yet support iPhone 5 or earlier. Select an iPhone 5s or above.';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user