404 Not Found


nginx/1.18.0 (Ubuntu)
'Flutter/Flutter.h' file not found - School of Applied STEM - Universitas Prasetiya Mulya

I got these errors when running flutter project that created in Windows environment. I am using flutter 1.22.5. (stable channel)

/Users/softwareengineeringprasmul/Documents/PermataNMR/mobileapp/flutter_basic1/udm_basic/ios/Runner/GeneratedPluginRegistrant.h:8:9: error:
    'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^
    1 error generated.
    <unknown>:0: error: failed to emit precompiled header
    '/Users/softwareengineeringprasmul/Library/Developer/Xcode/DerivedData/Runner-ahhvjokaefqbueeaihlobbhzvguv/Build/Intermediates.noindex/PrecompiledHeaders/Runne
    r-Bridging-Header-swift_PTEJIKSKZSO5-clang_11XRQZ0XK64JK.pch' for bridging header
    '/Users/softwareengineeringprasmul/Documents/PermataNMR/mobileapp/flutter_basic1/udm_basic/ios/Runner/Runner-Bridging-Header.h'
    /Users/softwareengineeringprasmul/Documents/PermataNMR/mobileapp/flutter_basic1/udm_basic/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file included from
    /Users/softwareengineeringprasmul/Documents/PermataNMR/mobileapp/flutter_basic1/udm_basic/ios/Runner/Runner-Bridging-Header.h:1:
    #import "GeneratedPluginRegistrant.h"

The solution for this is moving to beta channel,

flutter channel beta
flutter upgrade 

Then, go to XCode and do cleanup : Product –> Clean Build Folder.

After all, click on Product –> Build in your project

Leave a Reply