title: How to correctly implement Amplify to Flutter
body: <p>for the last few days, I was trying to figure out how to fix the issues I was having with Amplify for Flutter: <code>error: compiling for iOS 9.0, but module 'Starscream' has a minimum deployment target of iOS 11.0</code> and <code>Target of URI doesn't exist: 'package:amplify_core/amplify_core.dart'</code></p>
  <p>Things I tried:</p>
  <ol>
  <li><p>Following the tutorial of the doc <a href="https://docs.amplify.aws/start/getting-started/setup/q/integration/flutter" rel="nofollow noreferrer">https://docs.amplify.aws/start/getting-started/setup/q/integration/flutter</a>. That resulted in: <code>project directory/ios/Pods/AppSyncRealTimeClient/AppSyncRealTimeClient/Connection/AppSyncConnection/AppSyncSubscriptionConnection+ErrorHandler.swift:9:8: error: compiling for iOS 9.0, but module 'Starscream' has a minimum deployment target of iOS 11.0: project directory/build/ios/Debug-iphonesimulator/Starscream/Starscream.framework/Modules/Starscream.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</code> and <code>Command CompileSwift failed with a nonzero exit code note: Using new build system note: Building targets in parallel note: Planning build note: Contructing build description</code>.
  I uncommented the line <code>platform :ios, '9.0'</code> on Podfile and changed it to <code>platform :ios, '11.0'</code>, while also changing the development target to 11 on the projects xcworkspace. The same error happened.</p>
  </li>
  <li><p>Following the tutorial of the doc <a href="https://aws.amazon.com/getting-started/hands-on/build-flutter-app-amplify/" rel="nofollow noreferrer">https://aws.amazon.com/getting-started/hands-on/build-flutter-app-amplify/</a>. That resulted in:<code>Target of URI doesn't exist: 'package:amplify_core/amplify_core.dart'</code> when I tried to import the core. Like that, I couldn't use the Amplify() class.</p>
  </li>
  <li><p>Restarting the computer.</p>
  </li>
  <li><p>Deleting the Amplify folder.</p>
  </li>
  <li><p>Running <code>amplify uninstall</code>, and trying from the start again.</p>
  </li>
  <li><p>Searching other posts on this and other websites.</p>
  </li>
  <li><p>Running <code>amplify clean</code>.</p>
  </li>
  </ol>
  <p>Things to note:</p>
  <ol>
  <li>The Amplify installation, init, and configure steps returned no errors.</li>
  <li>If I delete the Amplify dependencies <code>amplify_flutter: '&lt;1.0.0' amplify_auth_cognito: '&lt;1.0.0' amplify_analytics_pinpoint: '&lt;1.0.0'</code> the app runs on the simulator just fine. As soon as I put them back the errors return.</li>
  </ol>