-
Notifications
You must be signed in to change notification settings - Fork 245
'Flutter/Flutter.h' file not found on Flutter 2.0.1 #95
Comments
Hi @nizwar :) Thanks for opening the issue! You can now already use the latest wakelock version when you have not migrated to null safety yet. I would suggest bumping to the latest version and running |
I think that there is nothing to do from the wakelock side of things, hence, closing for now. Let me know if this should be reopened :) |
This happens with wakelock
dart: |
@psrcek Have you tried running I am not sure why this would suddenly appear. This code has not been touched. |
Our CI runs flutter clean before each build, so.. yes.
|
@psrcek Can you reproduce this with a newly created project? ( Otherwise, this is probably faulty Podfile configuration. |
Have the same issue and Is it suggested to recreate the ios project and podfile somehow? |
@ekuleshov I am not sure - do you think you can look into it? I bet this is a simple config change necessary, however, I have no idea to be honest. |
@creativecreatorormaybenot I'm not really sure what to look at. Downgrading Flutter to 1.x resolved issue for the time being. Quick search found things like this flutter/flutter#70895 though recommended workarounds with clean ore removing podfile.lock didn't help here. I'd have to try this again when I'll have some more time. |
@ekuleshov Thanks for investigating. I will also keep this in my mind to see if I can tackle this asap. |
Same issue. On ios not working. |
If anyone has insights on this, please let me know :) I am glad to accept any contributions! |
I was able to fix the issue with this suggestion. |
Thanks a lot @psrcek 🙏 Are you suggesting that this fix has to be done in your app or in the wakelock plugin? :) |
No idea if that should be fixed in wakelock or in the end user app, but fixing it in my app worked for me. Since this seems like a required config migration to flutter 2.0.0 I think it might be a required fix in the app. I haven't tried creating a new app, but my best guess is that line already exists in newly created apps in flutter >=2.0.0. |
thanks . Solved using this solution |
My project is not ready for nullsafety, and still use wakelock-0.2.1+1, its generate following error while running the application
1 error generated. /Library/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/wakelock-0.2.1+1/ios/Classes/messages.m:4:9: fatal error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h> ^~~~~~~~~~~~~~~~~~~
its only happened with latest flutter version (2.0.1), when i downgrade it to 1.22.6, its working really fine, is there any ways to solve this?
Flutter doctor result :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.0)
[✓] Connected device (4 available)
The text was updated successfully, but these errors were encountered: