Merge pull request #1396 from chinmaygarde/master

iOS: Make the error message on `flutter ios --init` more descriptive
This commit is contained in:
Chinmay Garde
2016-01-26 14:08:23 -08:00

View File

@@ -122,7 +122,9 @@ class IOSCommand extends FlutterCommand {
// Step 2: Inflate the archive into the user project directory
bool result = await _inflateXcodeArchive(xcodeprojPath, archiveBytes);
if (!result) {
print("Could not fetch the Xcode project from the cloud...");
print("Error: Could not init the Xcode project: the 'ios' directory already exists.");
print("To proceed, remove the 'ios' directory and try again.");
print("Warning: You may have made manual changes to files in the 'ios' directory.");
return -1;
}