Reputation: 205
Spent an hour trying to debug this error with stack overflow and GitHub. Any help appreciated. I tried the deleting iOS file and doing flutter clean and stuff.
Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/ME/Desktop/fitnessapp/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/ME/Library/Developer/Xcode/DerivedData/Runner-gzhzlsjpfyzcnebymqrpzjndrlbm/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift
_10LJ9PKPTMFQI-clang_1OUD1W5Q54EHI.pch' for bridging header'/Users/ME/Desktop/fitnessapp/ios/Runner/Runner-Bridging-Header.h'
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro.
Upvotes: 8
Views: 24998
Reputation: 123
i fixed the same problem like this by removing the SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h" in buildSettings of Extension
https://github.com/AngeloAvv/flutter_flavorizr/issues/197
Upvotes: 1
Reputation: 171
After trying Edin's solution it still didn't work for me!
Make sure that for install builds only box is unchecked
for install builds only is unchecked
Upvotes: 17
Reputation: 898
You could try to do this:
flutter create .
in the flutter project folderpod deintegrate
in the ios folderpod install
also in the ios folderflutter clean
in the flutter project folderflutter pub get
Please note that if you use firebase you need to re-insert the GoogleService-Info.plist file
Hope it helps, but if it still does not make sure you are in stable channel
Upvotes: 25