Correct capitalisation of Xcode (#7796)

Ref: https://developer.apple.com/xcode/
This commit is contained in:
Chris Bracken
2017-02-01 16:16:33 -08:00
committed by GitHub
parent 18fcb91e88
commit 5d2a460fdd
9 changed files with 28 additions and 28 deletions

View File

@@ -156,7 +156,7 @@ class RunCommand extends RunCommandBase {
void printNoConnectedDevices() {
super.printNoConnectedDevices();
if (getCurrentHostPlatform() == HostPlatform.darwin_x64 &&
XCode.instance.isInstalledAndMeetsVersionCheck) {
Xcode.instance.isInstalledAndMeetsVersionCheck) {
printStatus('');
printStatus('To run on a simulator, launch it first: open -a Simulator.app');
printStatus('');

View File

@@ -299,7 +299,7 @@ class IOSDevice extends Device {
if (installationResult != 0) {
printError('Could not install ${bundle.path} on $id.');
printError('Try launching XCode and selecting "Product > Run" to fix the problem:');
printError('Try launching Xcode and selecting "Product > Run" to fix the problem:');
printError(' open ios/Runner.xcodeproj');
printError('');
return new LaunchResult.failed();

View File

@@ -13,7 +13,7 @@ import '../base/process.dart';
import '../doctor.dart';
import 'mac.dart';
XCode get xcode => XCode.instance;
Xcode get xcode => Xcode.instance;
class IOSWorkflow extends DoctorValidator implements Workflow {
IOSWorkflow() : super('iOS toolchain - develop for iOS devices');
@@ -61,7 +61,7 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if (xcode.isInstalled) {
xcodeStatus = ValidationType.installed;
messages.add(new ValidationMessage('XCode at ${xcode.xcodeSelectPath}'));
messages.add(new ValidationMessage('Xcode at ${xcode.xcodeSelectPath}'));
xcodeVersionInfo = xcode.xcodeVersionText;
if (xcodeVersionInfo.contains(','))
@@ -71,7 +71,7 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if (!xcode.isInstalledAndMeetsVersionCheck) {
xcodeStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'Flutter requires a minimum XCode version of $kXcodeRequiredVersionMajor.$kXcodeRequiredVersionMinor.0.\n'
'Flutter requires a minimum Xcode version of $kXcodeRequiredVersionMajor.$kXcodeRequiredVersionMinor.0.\n'
'Download the latest version or update via the Mac App Store.'
));
}
@@ -79,13 +79,13 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if (!xcode.eulaSigned) {
xcodeStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'XCode end user license agreement not signed; open XCode or run the command \'sudo xcodebuild -license\'.'
'Xcode end user license agreement not signed; open Xcode or run the command \'sudo xcodebuild -license\'.'
));
}
} else {
xcodeStatus = ValidationType.missing;
messages.add(new ValidationMessage.error(
'XCode not installed; this is necessary for iOS development.\n'
'Xcode not installed; this is necessary for iOS development.\n'
'Download at https://developer.apple.com/xcode/download/.'
));
}
@@ -119,7 +119,7 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
if (result.exitCode == 0 && result.stdout.isNotEmpty && !exitsHappy(<String>['ideviceName'])) {
brewStatus = ValidationType.partial;
messages.add(new ValidationMessage.error(
'libimobiledevice is incompatible with the installed XCode version. To update, run:\n'
'libimobiledevice is incompatible with the installed Xcode version. To update, run:\n'
'brew uninstall libimobiledevice\n'
'brew install --HEAD libimobiledevice'
));

View File

@@ -23,8 +23,8 @@ import 'xcodeproj.dart';
const int kXcodeRequiredVersionMajor = 7;
const int kXcodeRequiredVersionMinor = 0;
class XCode {
XCode() {
class Xcode {
Xcode() {
_eulaSigned = false;
try {
@@ -58,8 +58,8 @@ class XCode {
}
}
/// Returns [XCode] active in the current app context.
static XCode get instance => context[XCode];
/// Returns [Xcode] active in the current app context.
static Xcode get instance => context[Xcode];
bool get isInstalledAndMeetsVersionCheck => isInstalled && xcodeVersionSatisfactory;
@@ -202,7 +202,7 @@ void diagnoseXcodeBuildFailure(XcodeBuildResult result) {
printError(' ${plistFile.absolute.path}');
printError('');
}
printError("Try launching XCode and selecting 'Product > Build' to fix the problem:");
printError("Try launching Xcode and selecting 'Product > Build' to fix the problem:");
printError(" open ios/Runner.xcodeproj");
return;
}

View File

@@ -43,7 +43,7 @@ class IOSSimulatorUtils {
static IOSSimulatorUtils get instance => context[IOSSimulatorUtils];
List<IOSSimulator> getAttachedDevices() {
if (!XCode.instance.isInstalledAndMeetsVersionCheck)
if (!Xcode.instance.isInstalledAndMeetsVersionCheck)
return <IOSSimulator>[];
return SimControl.instance.getConnectedDevices().map((SimDevice device) {