Open hasonguo opened 6 years ago
it may be Cocoapods version hasn't supported. use cocoapods 1.4 version to solve this problem. @hasonguo
@Xbigfat Do you have implement disk cache for flutter:DiskLruCache. If you had implemented DiskLruCache . I wish you can share it.Thanks
@hasonguo Sorry I don't use that...
I have the same question, my Cocoapods version is 1.5.3,
@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
cd [project's directory] / ios
pod update
then ,you can build again.
https://github.com/flutter/flutter/pull/16273 resolve my problem, thanks.
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>