sharedPreferences stoped working after upgrading to cocoapods 1.5.0

695 views
Skip to first unread message

Ted Liao

unread,
Apr 21, 2018, 11:47:11 AM4/21/18
to Flutter Dev
Launching lib/main.dart on iPhone X in debug mode...
Running Xcode clean...
Starting Xcode build...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
    ** BUILD FAILED **
    
Xcode's output:
    === BUILD TARGET nanopb OF PROJECT Pods WITH CONFIGURATION Debug ===
    In file included from /Users/tliao/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.1/ios/Classes/SharedPreferencesPlugin.m:5:
    /Users/tliao/.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.

---------------------------

✓] Flutter (Channel master, v0.2.2-pre.23, on Mac OS X 10.13.4 17E199, locale en)
    • Flutter version 0.2.2-pre.23 at /Users/tliao/Flutter/fork/flutter
    • Framework revision c8fd99fb33 (6 weeks ago), 2018-03-12 01:05:23 -0700
    • Engine revision 1d0da77995
    • Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/tliao/Library/Android/sdk
    • Android NDK at /Users/tliao/Library/Android/sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/tliao/Library/Android/sdk
    • Java binary at: /Applications/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/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.21.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.11.2

[✓] Connected devices (1 available)
    • iPhone X • 89B2CE26-6D1D-427D-BBC0-2F9E215EE051 • ios • iOS 11.3 (simulator)

• No issues found!

Kurt Nelson

unread,
Apr 21, 2018, 4:11:59 PM4/21/18
to Ted Liao, Flutter Dev
I recently made a commit in there, can you get me the exact build error? (I'm on the road)

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Kurt Nelson

Reply all
Reply to author
Forward
0 new messages