Error Launching Application - Flutter - iOS - ios

I'm working first time on iOS app with a flutter project which is complete and its android app is already on play store. The problem is I'm unable to run the application in Emulator or Physical device iPhone 6s. I've tried every possible solution in the past three days, none of which have worked so far.
The commands I've tried in terminal as seen in one of the answers:
flutter pub get
cd ios && pod update
flutter clean && flutter run
Although, I've tried other various commands/steps to resolve the problem like flutter upgrade but nothing has helped so far.
The error I get :
Running Xcode build...
Xcode build done. 21.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
1 warning generated.
1 warning generated.
In file included from /Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.1+3/ios/Classes/FLTFirebaseFirestoreUtils.m:5:
In file included from /Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.1+3/ios/Classes/Private/FLTFirebaseFirestoreUtils.h:11:
/Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:75:10: warning: "FirebaseAnalytics.framework is not included in your target. Please add `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure Firebase Messaging works as intended." [-W#warnings]
#warning "FirebaseAnalytics.framework is not included in your target. Please add \
^
1 warning generated.
In file included from /Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:9:
/Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:75:10: warning: "FirebaseAnalytics.framework is not included in your target. Please add `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure Firebase Messaging works as intended." [-W#warnings]
#warning "FirebaseAnalytics.framework is not included in your target. Please add \
^
/Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:190:43: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/user/Downloads/app_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:290:24: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/user/Downloads/app_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:136:30: warning: 'shouldEstablishDirectChannel' is deprecated: FCM direct channel is deprecated, please use APNs channel for downstream message delivery. [-Wdeprecated-declarations]
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
In module 'FirebaseMessaging' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/user/Downloads/app_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:283:56: note: 'shouldEstablishDirectChannel' has been explicitly marked deprecated here
#property(nonatomic) BOOL shouldEstablishDirectChannel DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/AvailabilityMacros.h:181:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/ajay/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:191:52: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[self didReceiveRemoteNotification:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/user/Downloads/app_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
#property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/AvailabilityMacros.h:179:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/ajay/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:289:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)messaging:(FIRMessaging *)messaging
^
In module 'FirebaseMessaging' imported from /Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/user/Downloads/app_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:253:1: note: method 'messaging:didReceiveMessage:' declared here
- (void)messaging:(FIRMessaging *)messaging
^
/Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:291:63: warning: 'appData' is deprecated [-Wdeprecated-declarations]
[_channel invokeMethod:#"onMessage" arguments:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/ajay/Downloads/aatmanirbhar_pledge_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/ajay/Downloads/aatmanirbhar_pledge_flutter-master/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
#property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/ajay/Downloads/aatmanirbhar_pledge_flutter-master/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/usr/include/AvailabilityMacros.h:179:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
7 warnings generated.
1 warning generated.
In file included from /Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.1+3/ios/Classes/FLTFirebaseFirestorePlugin.m:5:
/Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:75:10: warning: "FirebaseAnalytics.framework is not included in your target. Please add `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure Firebase Messaging works as intended." [-W#warnings]
#warning "FirebaseAnalytics.framework is not included in your target. Please add \
^
1 warning generated.
In file included from /Users/user/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.14.1+3/ios/Classes/FLTFirebaseFirestoreReader.m:5:
/Users/user/Downloads/app_flutter-master/ios/Pods/Headers/Public/Firebase/Firebase.h:75:10: warning: "FirebaseAnalytics.framework is not included in your target. Please add `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure Firebase Messaging works as intended." [-W#warnings]
#warning "FirebaseAnalytics.framework is not included in your target. Please add \
^
1 warning generated.
error: Build input file cannot be found: '/Users/user/Downloads/app_flutter-master/ios/OptimizationProfiles/Runner.profdata' (in target 'Runner' from project 'Runner')
error: Build input file cannot be found: '/Users/user/Downloads/app_flutter-master/ios/OptimizationProfiles/Runner.profdata' (in target 'Runner' from project 'Runner')
error: the following command failed with exit code 1 but produced no further output
CompileC /Users/user/Library/Developer/Xcode/DerivedData/Runner-dkyjnbdvtzuxypcuezsioswyksyu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/arm64/Runner_vers.o /Users/ajay/Library/Developer/Xcode/DerivedData/Runner-dkyjnbdvtzuxypcuezsioswyksyu/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/DerivedSources/Runner_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'abseil' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Toast' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Protobuf' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'AppAuth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'url_launcher' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'shared_preferences' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'share' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'permissions_plugin' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'permission' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'path_provider' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'nanopb' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'leveldb-library' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'image_picker' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'fluttertoast' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GTMAppAuth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'google_sign_in' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'gRPC-Core' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseStorage' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseInstallations' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseFirestore' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'gRPC-C++' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseInstanceID' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseMessaging' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'firebase_core' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'firebase_auth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'firebase_storage' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'cloud_firestore' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'firebase_messaging' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseCoreDiagnosticsInterop' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseAuthInterop' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Firebase' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'FirebaseAnalyticsInterop' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleSignIn' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Flutter' from project 'Pods')
Could not build the precompiled application for the device.
Error launching application on Ajay’s iPhone.
I've configured the Devices and Siginings & Capability section already, I just want to test the application before uploading on app store. I've found a similar unanswered question - why flutter has stopped to launch my app on ios
As User Atif told me, the error output of flutter run --verbose is
[ +3 ms] "flutter run" took 40,800ms.
[ +3 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:607:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:977:18)
#3 _rootRunUnary (dart:async/zone.dart:1198:47)
#4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#5 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#7 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#8 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#11 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#19 _rootRun (dart:async/zone.dart:1190:13)
#20 _CustomZone.run (dart:async/zone.dart:1093:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

try to do this steps
Clear all pods and relations to it:
in terminal: cd ios
flutter clean
rm -Rf Pods
rm -Rf .symlinks
rm -Rf Flutter/Flutter.framework
rm -Rf Flutter/Flutter.podspec
rm Podfile
Then
flutter run
it will install pods automatically (it may take some time at first run, depending on your dependencies).

I was also getting this error when trying to run the project on my iPhone from Android Studio or Terminal with flutter run
This solution worked for me:
On the /ios folder, I opened the .xcworkspace project in Xcode, where I cleaned and then run the project with my device as target. It worked on first try and successfully installed the app on my phone.
After the project was build on Xcode and running on my iPhone, I could now run the app again straight from Android Studio without the error.

Firstly, re-install packages and pods:
Execute those commands :
cd /ios/
flutter clean
pod deintegrate
rm Podfile.lock
flutter pub get
pod install --repo-update
and run the app again
Secondly, upgrade your flutter SDK :
Run those commands:
flutter upgrade
For me, the upgrade fixed this issue.

Related

Flutter does not build the project on real iOS device: PhaseScriptExecution

When I want to run my flutter application on the real iOS device, I get this error. I know, 2 weeks ago it worked nicely, but in this 2 weeks I developed lots of feature, and lastly permission handler future, and now I can not run the project on my real device. It's working on iOS simulator excellent.
So, let me tell you what I tried:
flutter pub cache repair
flutter clean
flutter run
pod install
pod install --repo-update
arch -x86_64 pod install
Also, in the Xcode, I tried to build the app. What I get from there?
error build: Command PhaseScriptExecution failed with a nonzero exit code
Launching lib/main.dart on Alper Efe iPhone’u in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: ***
Running pod install... 15.9s
Running Xcode build...
Xcode build done. 128.9s
Failed to build iOS app
Error output from Xcode build:
↳
2022-12-14 22:35:10.858 xcodebuild[27821:520269] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21157/DTDeviceKitBase/DTDKRemoteDeviceData.m:382
Details: (null) deviceType from 00008030-001629E10185402E was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x149f17050>
Method: -platform
Thread: <NSThread: 0x139f05830>{number = 3, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/fp/t7xmc4k101g4g1p4nnr63skh0000gn/T/flutter_tools.suJrEq/flutter_ios_build_temp_dirIzfHDH/temporary_xcresult_bundle
1 warning generated.
1 warning generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:38: warning: variable 'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1426:3: note: variable 'sum_left' is declared here
uint16x8_t sum_left;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1461:48: warning: variable 'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1425:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:38: warning: variable 'sum_left' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1509:3: note: variable 'sum_left' is declared here
uint16x8_t sum_left;
^
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1550:48: warning: variable 'sum_top' may be uninitialized when used here [-Wconditional-uninitialized]
const uint16x8_t sum = vaddq_u16(sum_left, sum_top);
^~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/dsp/dec_neon.c:1508:3: note: variable 'sum_top' is declared here
uint16x8_t sum_top;
^
4 warnings generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/enc/backward_references_enc.c:725:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/libwebp/src/enc/backward_references_enc.c:657:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:39:52: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDataSource: class {
^~~~~
AnyObject
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/DKPhotoGallery/DKPhotoGallery/DKPhotoGalleryContentVC.swift:55:50: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
internal protocol DKPhotoGalleryContentDelegate: class {
^~~~~
AnyObject
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/file_picker-4.6.1/ios/Classes/FilePickerPlugin.m:357:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url{
^
In module 'UIKit' imported from /Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Target Support Files/file_picker/file_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h:27:1: note: method 'documentPicker:didPickDocumentAtURL:' declared here
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url API_DEPRECATED_WITH_REPLACEMENT("documentPicker:didPickDocumentsAtURLs:", ios(8.0, 11.0));
^
1 warning generated.
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_auth-4.2.0/ios/Classes/FLTFirebaseAuthPlugin.m:103:72: warning: sending 'FLTFirebaseAuthPlugin *__strong' to parameter of incompatible type 'id<FLTFirebasePlugin> _Nonnull'
[[FLTFirebasePluginRegistry sharedInstance] registerFirebasePlugin:self];
^~~~
In module 'firebase_core' imported from /Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_auth-4.2.0/ios/Classes/FLTFirebaseAuthPlugin.m:7:
/Users/sahinefe/.pub-cache/hosted/pub.dartlang.org/firebase_core-2.4.0/ios/Classes/FLTFirebasePluginRegistry.h:23:64: note: passing argument to parameter 'firebasePlugin' here
- (void)registerFirebasePlugin:(id<FLTFirebasePlugin> _Nonnull)firebasePlugin;
^
1 warning generated.
1 warning generated.
Failed to package /Users/sahinefe/Documents/Github/flutter_production_app.
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'nanopb' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'libwebp' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'libPhoneNumber-iOS' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'leveldb-library' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-Core' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-Core' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'abseil' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'abseil' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'SwiftyGif' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'SDWebImage' from project 'Pods')
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')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'ReachabilitySwift' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'PromisesObjC' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'Libuv-gRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'Libuv-gRPC' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCoreInternal' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCoreExtension' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseCore' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FirebaseAppCheckInterop' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'FMDB' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKPhotoGallery-DKPhotoGallery' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKPhotoGallery' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKImagePickerController-DKImagePickerController' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'DKImagePickerController' from project 'Pods')
/Users/sahinefe/Documents/Github/flutter_production_app/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'BoringSSL-GRPC' from project 'Pods')
Result bundle written to path:
/var/folders/fp/t7xmc4k101g4g1p4nnr63skh0000gn/T/flutter_tools.suJrEq/flutter_ios_build_temp_dirIzfHDH/temporary_xcresult_bundle
Could not build the precompiled application for the device.
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Error launching application on Alper Efe iPhone’u.
First things first, to see more details of the problem I run the following code line:
flutter run -v
then I realize that I have problem that related to "codesign".
Next, I did lots of research about the problem, and I saw almost everywhere the "certificate" problem.
Especially this link helped me a lot: "Warning: unable to build chain to self-signed root for signer" warning in Xcode 9.2
Apart from that, I remove my certificates from the system and login sections, but when I remove from the login, it recreated again IDK why. Then, I disable auto sign in section in the Xcode, and again re-enable it. After I click the build button in Xcode it built the app successfully. Then I opened the vscode and it's also built as well.
By the way, lastly, I also did 9.3 to 11.0 compatibilityVersion property.

Flutter.h file not found while running on iOS

I am trying to run my project in ios simulator but this error comes. I tried all methods of pod install,upgrade, cache repair but still this error comes.
flutter run
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Running Xcode build...
Xcode build done. 24.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/1y/xfyy4w9117qf36tz3pykqjc40000gn/T/flutter_tools.d5EOkm/flutter_ios_build_temp_dirJpnZlP/temporary_xc
result_bundle
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file included from
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/GeneratedPluginRegistrant.h:10:9: error: 'Flutter/Flutter.h'
file not found
#import <Flutter/Flutter.h>
^
1 error generated.
<unknown>:0: error: failed to emit precompiled header
'/Users/hanish/Library/Developer/Xcode/DerivedData/Runner-hlbnjxqvkiahufarpfxgzkipcqlr/Build/Intermediates.noindex/P
recompiledHeaders/Runner-Bridging-Header-swift_IKXG2TX2ZINE-clang_20Z0KHQ3WLHE0.pch' for bridging header
'/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h'
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h:1:9: note: in file included from
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
2 errors generated.
note: Building targets in dependency order
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'PhoneNumberKit' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'nanopb' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'libPhoneNumber-iOS' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'leveldb-library' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'abseil' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'abseil' from
project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'Toast' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'PromisesObjC' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'OrderedSet' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FMDB' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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
'BoringSSL-GRPC' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'AppAuth' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'razorpay-pod' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GTMAppAuth' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GoogleDataTransport' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseCore' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseStorage' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseAuth' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseInstallations' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'gRPC-Core' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-Core'
from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseMessaging' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseCrashlytics' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GoogleAppMeasurement' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' 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 'gRPC-C++'
from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseFirestore' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'FirebaseAnalytics' from project 'Pods')
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')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'GoogleSignIn' from project 'Pods')
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to
16.0.99. (in target 'Firebase' from project 'Pods')
Result bundle written to path:
/var/folders/1y/xfyy4w9117qf36tz3pykqjc40000gn/T/flutter_tools.d5EOkm/flutter_ios_build_temp_dirJpnZlP/temporary_xc
result_bundle
Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/hanish/Library/Developer/Xcode/DerivedData/Runner-hlbnjxqvkiahufarpfxgzkipcqlr/Build/Intermediates.noindex/Preco
mpiledHeaders/Runner-Bridging-Header-swift_IKXG2TX2ZINE-clang_20Z0KHQ3WLHE0.pch' for bridging header
'/Users/hanish/FlutterDev/fitelo-mobile-app/ios/Runner/Runner-Bridging-Header.h'
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro.

Could not build the application for the simulator. Error launching application on iPhone 8 Plus [duplicate]

This question already has answers here:
The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, in Flutter How can I change the minimum IOS Deploying Target
(18 answers)
Closed 11 months ago.
macbookpro#MacBooks-MacBook-Pro regnum_toll_update % flutter run
Launching lib/main.dart on iPhone 8 Plus in debug mode...
Running pod install... 22.4s
Running Xcode build...
Xcode build done. 214.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRFirebaseUserAgent.m:95:53: warning: 'hasSwiftRuntime' is deprecated
[-Wdeprecated-declarations]
NSString *swiftFlagValue = [GULAppEnvironmentUtil hasSwiftRuntime] ? #"true" : #"false";
^
In file included from /Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRFirebaseUserAgent.m:19:
/Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/Headers/Public/GoogleUtilities/GULAppEnvironmentUtil.h:50:25: note: 'hasSwiftRuntime' has been explicitly marked deprecated
here
+ (BOOL)hasSwiftRuntime __deprecated;
^
In module 'Foundation' imported from /Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/FirebaseCore/FirebaseCore/Sources/FIRFirebaseUserAgent.h:17:
In module 'CoreFoundation' imported from
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundati
on.h:16:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:196:40: note: expanded from macro
'__deprecated'
#define __deprecated attribute((deprecated))
^
1 warning generated.
While building module 'firebase_core' imported from /Users/macbookpro/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-6.0.0/ios/Classes/FLTFirebaseDatabasePlugin.m:8:
In file included from :1:
In file included from /Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/macbookpro/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ios/Classes/FLTFirebaseCorePlugin.h:11:
/Users/macbookpro/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module
'firebase_core.FLTFirebasePlugin': '/Users/macbookpro/AndroidStudioProjects/regnum_toll_update/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h'
[-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/macbookpro/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-6.0.0/ios/Classes/FLTFirebaseDatabasePlugin.m:8:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePlugin.h>
~~~~~~~^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'Reachability' from
project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'leveldb-library'
from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'gRPC-Core' from
project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'gRPC-C++' from
project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'abseil' from
project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'BoringSSL-GRPC'
from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'Flutter' from
project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 8 Plus.
Check the error message clearly. See the last line:
warning: The iOS Simulator deployment target
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.3.99. (in target 'Flutter'
from project 'Pods')
So basically, upgrade the iPhone deployment target which is required for Firebase integration. How to do that, please check this SO thread

Firebase won't run with iOS simulator. Flutter

as I said in the title I'm not able to run iOS simulator with Firecloud.
If I only add Firebase_core package to pubspec.yaml all works fine, but when I add cloud_firestore: ^3.1.5 I got this error:
P.s. With Android simulator all works fine.
Launching lib/main.dart on iPhone 13 in debug mode...
Running Xcode build...
Xcode build done. 9.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/luca/Desktop/prova/ios/Pods/gRPC-Core/third_party/upb/upb/port.c:2:10: fatal error: 'upb/port_def.inc' file not found
#include "upb/port_def.inc"
^~~~~~~~~~~~~~~~~~
1 error generated.
/Users/luca/Desktop/prova/ios/Pods/gRPC-Core/third_party/upb/upb/msg.c:2:10: fatal error: 'upb/msg.h' file not found
#include "upb/msg.h"
^~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'BoringSSL-GRPC' from project 'Pods')
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'abseil' from project 'Pods')
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'gRPC-Core' from project 'Pods')
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'leveldb-library' from project 'Pods')
/Users/luca/Desktop/prova/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'gRPC-C++' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 13.
Can anyone help me? I am stuck with this error since 2 weeks ago :S
thanks to all.
Add this line in your pod file
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
end

Flutter Could not build the application for the simulator. Error launching application on iPhone 8

I'm trying to run flutter app on Apple Simulator but I can't able to run it, I got errors as below. this project woking in another Apple Mac book pro. What went wrong here?
I tried flutter clean then flutter run this wasn't works
Prasaths-MacBook-Pro:Foodom_ios prasathsivanathan$ flutter run
Launching lib/main.dart on iPhone 8 in debug mode...
Running Xcode build...
Xcode build done. 2.3s
Failed to build iOS app
Error output from Xcode build:
↳
objc[12138]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eec8c188) and ??
(0x115c482b8). One of the two will be used. Which one is undefined.
objc[12138]: Class AMSupportURLSession is implemented in both ?? (0x1eec8c1d8) and ?? (0x115c48308). One
of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
In file included from
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/U
tilities/FIRAuthURLPresenter.m:24:
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/U
tilities/FIRAuthDefaultUIDelegate.h:18:24: error: 'TARGET_OS_WATCHOS' is not defined, evaluates to 0
[-Werror,-Wundef-prefix=TARGET_OS_]
#if !TARGET_OS_OSX && !TARGET_OS_WATCHOS
^
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'nanopb' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'Toast' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'geolocator' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'google_maps_flutter' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'location_permissions' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'fluttertoast' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'GoogleDataTransport' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'FirebaseCore' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'FirebaseDatabase' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'FirebaseAuth' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'firebase_auth' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'firebase_core' from project 'Pods')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use
a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target
'Runner' from project 'Runner')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'Flutter' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'firebase_database' from project 'Pods')
/Users/prasathsivanathan/Desktop/Projects/Flutter/Foodom_ios/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 14.5.99. (in target 'Firebase' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 8.

Resources