Flutter/Flutter.h not found

1,350 views
Skip to first unread message

John Straumann

unread,
Apr 21, 2021, 11:46:41 AM4/21/21
to Flutter Development (flutter-dev)
Hello:

I have a Flutter App developed on Windows in Android Studio, and all works perfectly. I need to test some IOS functions, so need to bring it over to my MAC and open in XCode. and here are the steps I followed:

Copy Directory to mac
Open project in Android Studio on Mac
Run "flutter pub get"
open terminal in IOS folder
run pod install
open .xcworkspace in XCode
try to build and run

but unfortunately I am getting an error message:

/Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-1.0.0/ios/Classes/FLTFirebaseCrashlyticsPlugin.h:8:9: 'Flutter/Flutter.h' file not found
/Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-1.0.0/ios/Classes/FLTFirebaseCrashlyticsPlugin.m:5:9: In file included from /Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-1.0.0/ios/Classes/FLTFirebaseCrashlyticsPlugin.m:5:

/Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.0.3/ios/Classes/FLTFirebaseCorePlugin.h:8:9: 'Flutter/Flutter.h' file not found
/Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-1.0.0/ios/Classes/FLTFirebaseCrashlyticsPlugin.h:12:9: While building module 'firebase_core' imported from /Users/johnstraumann/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-1.0.0/ios/Classes/FLTFirebaseCrashlyticsPlugin.h:12:

I have tried 2 different Macs, and on both Catalina and Big Sur, but no lick. Can anyone help?

Suzuki Tomohiro

unread,
Apr 21, 2021, 12:38:28 PM4/21/21
to John Straumann, Flutter Development (flutter-dev)
Here you are
Various solutions are there. Try the ones you think is best suited for you.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/08e95035-219a-4846-afce-36abbbfaaf8cn%40googlegroups.com.

John Straumann

unread,
Apr 21, 2021, 12:50:38 PM4/21/21
to Flutter Development (flutter-dev)
Thanks for the response. I have already spent HOURS trying "fixes" posted in articles, I'll have a look and see if there's anything new in that thread.

Suzuki Tomohiro

unread,
Apr 21, 2021, 1:06:29 PM4/21/21
to John Straumann, Flutter Development (flutter-dev)
In general, if you already tried something, then you want to explain what you tried and the outcome.

Reply all
Reply to author
Forward
0 new messages