xcode – fatal error: ‘Flutter/Flutter.h’ file not found in flutter IOS Build

0
400


Launching lib/main.dart on iPhone 14 Pro in debug mode…
Running pod install…
Running Xcode build…
Xcode build done. 14.5s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode’s output:

Writing result bundle at path:
/var/folders/d7/k5tgg8zx1fb1hlrnhzbg4l_40000gn/T/flutter_tools.FBHN8u/flutter_ios_build_temp_dirQbWTC1/temporary_xcresult_bundle

In file included from /usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/ios/Classes/FLTURLLauncherPlugin.m:7:
/usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
        ^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
        ^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Building targets in dependency order
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')

Result bundle written to path:
    /var/folders/d7/k5tgg8zx1fb1hlrnhzbg4l_40000gn/T/flutter_tools.FBHN8u/flutter_ios_build_temp_dirQbWTC1/temporary_xcresult_bundle

Lexical or Preprocessor Issue (Xcode): ‘Flutter/Flutter.h’ file not found
/usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/ios/Classes/FLTURLLauncherPlugin.h:4:8

Lexical or Preprocessor Issue (Xcode): ‘Flutter/Flutter.h’ file not found
/usr/local/Caskroom/flutter/3.3.3/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_ios-2.1.1/ios/Classes/FLTSharedPreferencesPlugin.h:4:8

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.