flutter-osc icon indicating copy to clipboard operation
flutter-osc copied to clipboard

run on ios error,help me

Open hasonguo opened this issue 6 years ago • 6 comments

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>

hasonguo avatar Jul 04 '18 06:07 hasonguo

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

Xbigfat avatar Jul 17 '18 02:07 Xbigfat

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

hasonguo avatar Jul 17 '18 04:07 hasonguo

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

Xbigfat avatar Jul 17 '18 13:07 Xbigfat

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

lyxia avatar Aug 07 '18 03:08 lyxia

@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.

Xbigfat avatar Aug 07 '18 03:08 Xbigfat

https://github.com/flutter/flutter/pull/16273 resolve my problem, thanks.

lyxia avatar Aug 07 '18 03:08 lyxia