Issue 1:
Steps to Reproduce

Enter command: flutter create -i swift hello

Enter command: cd hello

Add shared_preferences ^0.4.1 to pubspec.yaml

Enter command: flutter packages get

Enter command: flutter run

Logs

Launching lib/main.dart on iPhone X in debug mode...
Running pod install... 0.9s
Running Xcode clean... 0.8s
Starting Xcode build...
Xcode build done 0.9s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
=== BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
In file included from /Users/jvanderen11/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/jvanderen11/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

Note: In an attempt to resolve the issue, I followed up with issue #15099, however, SharedPreferencesPlugin.h has the correct Target Membership:

Flutter Doctor

[✓] Flutter (Channel beta, v0.2.8, on Mac OS X 10.13.4 17E199, locale en-US)

• Flutter version 0.2.8 at /Users/jvanderen11/flutter

• Framework revision b397406 (10 days ago), 2018-04-02 13:53:20 -0700

• Engine revision c903c21

• Dart version 2.0.0-dev.43.0.flutter-52afcba357

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at /Users/jvanderen11/Library/Android/sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• Java binary at: /Applications/Developer Tools/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 9.3, Build version 9E145

• ios-deploy 1.9.2

• CocoaPods version 1.5.0

[✓] Android Studio (version 3.1)

• Android Studio at /Applications/Developer Tools/Android Studio.app/Contents

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.1)

• IntelliJ at /Users/jvanderen11/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app

• Flutter plugin version 23.1.3

• Dart plugin version 181.4203.498

[✓] Connected devices (1 available)

• iPhone X • 8098B98C-0E07-4441-9F17-50A738A52A85 • ios • iOS 11.3 (simulator)

• No issues found!

Issue 2:
Steps to Reproduce

Enter command: flutter create -i swift hello

Enter command: cd hello

Add shared_preferences ^0.4.1 to pubspec.yaml

Enter command: flutter packages get

Enter command: flutter run

Logs

Launching lib/main.dart on iPhone X in debug mode...
Running pod install... 0.9s
Running Xcode clean... 0.8s
Starting Xcode build...
Xcode build done 0.9s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **

Xcode's output:
↳
=== BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
In file included from /Users/jvanderen11/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/jvanderen11/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone X.

Note: In an attempt to resolve the issue, I followed up with issue #15099, however, SharedPreferencesPlugin.h has the correct Target Membership:

Flutter Doctor

[✓] Flutter (Channel beta, v0.2.8, on Mac OS X 10.13.4 17E199, locale en-US)

• Flutter version 0.2.8 at /Users/jvanderen11/flutter

• Framework revision b397406 (10 days ago), 2018-04-02 13:53:20 -0700

• Engine revision c903c21

• Dart version 2.0.0-dev.43.0.flutter-52afcba357

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at /Users/jvanderen11/Library/Android/sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• Java binary at: /Applications/Developer Tools/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 9.3, Build version 9E145

• ios-deploy 1.9.2

• CocoaPods version 1.5.0

[✓] Android Studio (version 3.1)

• Android Studio at /Applications/Developer Tools/Android Studio.app/Contents

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.1)

• IntelliJ at /Users/jvanderen11/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app

• Flutter plugin version 23.1.3

• Dart plugin version 181.4203.498

[✓] Connected devices (1 available)

• iPhone X • 8098B98C-0E07-4441-9F17-50A738A52A85 • ios • iOS 11.3 (simulator)

• No issues found!