Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
October 4, 2024
The error ‘Flutter/Flutter.h’ file not found typically occurs when building a Flutter app for iOS. Here are some common steps to resolve this issue:
Run the following commands to clean the build folder and derived data:
flutter clean rm -rf ios/Pods rm -rf ios/Podfile.lock rm -rf ~/Library/Developer/Xcode/DerivedData
Then, reinstall the pods:
cd ios pod install cd ..
If CocoaPods is not installed or needs to be updated, run:
If CocoaPods is not installed or needs to be updated, run:
sudo gem install cocoapods pod repo update
Then try running your app again:
flutter run
Ensure that your ios/Podfile has the correct Flutter integration. It should include:
target 'Runner' do use_frameworks! use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end
Try opening the iOS project in Xcode and building from there to see if it provides more specific error messages:
open ios/Runner.xcworkspace
In Xcode:
If you are using an older or experimental Flutter channel, switching to a stable channel might help:
flutter channel stable flutter upgrade
After the upgrade, run:
flutter run
Make sure you are using a version of Xcode that is compatible with your Flutter and iOS SDK versions.