There is my problem:
I'm using the [share package][1] from pub.dev, and when I am trying to build my app, I got the following error:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.5+4/ios/Classes/FLTSharePlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m:7:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~ ```
[1]: https://pub.dev/packages/share
Related
itry to build my app at ios device but I fount this error
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/sayed/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_ios-0.8.6+7/ios/Classes/messages.g.m:6:8
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro.
/Users/sayed/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker_ios-0.8.6+7/ios/Classes/messages.g.m:7:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/w7/k04jz9bj3ks2p5b_x3xgvpym0000gn/T/flutter_tools.sEDlgq/flutter_ios_build_temp_dir2zMQpj/temporary_xcresult_bundle
While integrating SQLCipher with cocoapods I’m getting multiple redefinition errors.
Version: 4.5.2
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:723:8: error: redefinition of 'sqlite3_file'
struct sqlite3_file {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:735:8: note: previous definition is here
struct sqlite3_file {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:822:8: error: redefinition of 'sqlite3_io_methods'
struct sqlite3_io_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:834:8: note: previous definition is here
struct sqlite3_io_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1427:8: error: redefinition of 'sqlite3_vfs'
struct sqlite3_vfs {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1439:8: note: previous definition is here
struct sqlite3_vfs {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1724:8: error: redefinition of 'sqlite3_mem_methods'
struct sqlite3_mem_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1736:8: note: previous definition is here
struct sqlite3_mem_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:6999:8: error: redefinition of 'sqlite3_module'
struct sqlite3_module {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:6885:8: note: previous definition is here
struct sqlite3_module {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7139:8: error: redefinition of 'sqlite3_index_info'
struct sqlite3_index_info {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7025:8: note: previous definition is here
struct sqlite3_index_info {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7142:10: error: redefinition of 'sqlite3_index_constraint'
struct sqlite3_index_constraint {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7028:10: note: previous definition is here
struct sqlite3_index_constraint {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7149:10: error: redefinition of 'sqlite3_index_orderby'
struct sqlite3_index_orderby {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7035:10: note: previous definition is here
struct sqlite3_index_orderby {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7154:10: error: redefinition of 'sqlite3_index_constraint_usage'
struct sqlite3_index_constraint_usage {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7040:10: note: previous definition is here
struct sqlite3_index_constraint_usage {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7285:8: error: redefinition of 'sqlite3_vtab'
struct sqlite3_vtab {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7171:8: note: previous definition is here
struct sqlite3_vtab {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7309:8: error: redefinition of 'sqlite3_vtab_cursor'
struct sqlite3_vtab_cursor {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7195:8: note: previous definition is here
struct sqlite3_vtab_cursor {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7814:8: error: redefinition of 'sqlite3_mutex_methods'
struct sqlite3_mutex_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7699:8: note: previous definition is here
struct sqlite3_mutex_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8570:8: error: redefinition of 'sqlite3_pcache_page'
struct sqlite3_pcache_page {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8445:8: note: previous definition is here
struct sqlite3_pcache_page {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8735:8: error: redefinition of 'sqlite3_pcache_methods2'
struct sqlite3_pcache_methods2 {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8610:8: note: previous definition is here
struct sqlite3_pcache_methods2 {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8758:8: error: redefinition of 'sqlite3_pcache_methods'
struct sqlite3_pcache_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8633:8: note: previous definition is here
struct sqlite3_pcache_methods {
^
<unknown>:0: error: could not build Objective-C module 'SQLite3'
I've just added SQLCipher pod in pod file
pod 'SQLCipher'
Other pods I am using are AWSS3, FirebaseAnalytics, Mixpanel etc.
There is my problem: I'm using the [share package][1] from pub.dev, and when I am trying to build my app, I got the following error:
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users//Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users//Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m:7:
/Users/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~ ```
For Mac users:
In your flutter project, try running flutter pub get on the terminal.
To fix error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
you need to remove or not use
firebase_admob
use
native_admob_flutter
OR
admob_flutter
and you get this error when you use firebase
and if you use like this code in podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
This is the error -
In file included from
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/JavaScriptChannelHandler.m:5:
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/JavaScriptChannelHandler.h:5:9:
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.m:5:
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FlutterWebView.h:5:9:
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTWebViewFlutterPlugin.m:5:
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTWebViewFlutterPlugin.h:5:9:
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~ 1 error generated.
In file included from /Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTWKNavigationDelegate.m:5:
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTWKNavigationDelegate.h:5:9:
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTCookieManager.m:5:
/Users/chetan/.pub-cache/hosted/pub.dartlang.org/webview_flutter-1.0.7/ios/Classes/FLTCookieManager.h:5:9:
fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
I get this error all the time! Usually when trying to build my iOS app.
Things that normally fix it are:
cd ~/ios/
rm -rf Pods
rm Podfile.lock
cd .. to (to get back to main flutter dir) flutter clean
If that doesn't work you can also try these afterwards
cd /ios/
pod deintegrate
pod install
If issues persist after those and this happens when trying to build your iOS app sometimes its a good idea to back up your iOS folder delete it and then run flutter create this will generate a new iOS folder so you have a fresh runner and can make a fresh pod file.
If none of my solutions worked for you can also check out this SO thread because this issue pops up a lot.
I have my prefix pch file but I don't know why its giving me this error. Please help.
clang: error: no such file or directory: '/Users/djtakeuchi/Documents/Xcode Projects/Xcode Supplied Source Code/BirthdayReminder/BirthdayReminder/user-interface/view-controllers/../../BRBirthdayEditViewController.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
prefix.pch file:
//
// Prefix header for all source files of the 'BirthdayReminder' target in the 'BirthdayReminder' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif