From c66e00f4a7956c68a4b5fbbcc57c470739fadfc5 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 26 Jan 2016 13:53:58 -0800 Subject: [PATCH] iOS: Make the error message on `flutter ios --init` more descriptive --- packages/flutter_tools/lib/src/commands/ios.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/commands/ios.dart b/packages/flutter_tools/lib/src/commands/ios.dart index dfb0045271..cc6ba2b461 100644 --- a/packages/flutter_tools/lib/src/commands/ios.dart +++ b/packages/flutter_tools/lib/src/commands/ios.dart @@ -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; }