Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run on ios error,help me #8

Open
hasonguo opened this issue Jul 4, 2018 · 6 comments
Open

run on ios error,help me #8

hasonguo opened this issue Jul 4, 2018 · 6 comments

Comments

@hasonguo
Copy link

hasonguo commented Jul 4, 2018

Xcode's output:

In file included from /Users/guohaisheng/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/guohaisheng/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>

@Xbigfat
Copy link

Xbigfat commented Jul 17, 2018

it may be Cocoapods version hasn't supported. use cocoapods 1.4 version to solve this problem. @hasonguo

@hasonguo
Copy link
Author

@Xbigfat Do you have implement disk cache for flutter:DiskLruCache. If you had implemented DiskLruCache . I wish you can share it.Thanks

@Xbigfat
Copy link

Xbigfat commented Jul 17, 2018

@hasonguo Sorry I don't use that...

@lyxia
Copy link

lyxia commented Aug 7, 2018

I have the same question, my Cocoapods version is 1.5.3,

@Xbigfat
Copy link

Xbigfat commented Aug 7, 2018

@lyxia just uninstall the current Cocoapods 1.5 and re-install the 1.4 version.here is the command

1.Uninstall the current version using this command

sudo gem uninstall cocoapods (macOS below 10.10)
sudo gem uninstall -n/usr/local/bin cocoapods (macOS after 10.11)

2.Reinstall the 1.4 version

sudo gem install cocoapods -v 1.4

  1. Go to your project's path

cd [project's directory] / ios

  1. Update cocoaspod

pod update

then ,you can build again.

@lyxia
Copy link

lyxia commented Aug 7, 2018

flutter/flutter#16273 resolve my problem, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants