I have an issue where I'm unable to run my Flutter application on any iOS device.
I'm running my project in Xcode 11 and below is the issue I get
Showing Recent Issues
Build target Runner of project Runner with configuration Debug
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
error: /Users/jaserjsk/Development/GitHub/Middle-East-Cuisine/me_cuisine_app/ios/Flutter/Debug.xcconfig:1: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner' from project 'Runner')
warning: The use of Swift 3 #objc inference in Swift 4 mode is deprecated. Please address deprecated #objc inference warnings, test your code with “Use of deprecated Swift 3 #objc inference” logging enabled, and then disable inference by changing the "Swift 3 #objc Inference" build setting to "Default" for the "Runner" target. (in target 'Runner' from project 'Runner')
I have no ide what this mean or how to fix it.
Please help
Related
I'm creating an app on Flutter using the TensorFlowLite library and after finishing all the Flutter Code, I'm trying to debug it on a iOS Simulator and on the console I'm getting the following error:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/13/q8h3_c012wvc3mxcfpzrf6fr0000gn/T/flutter_tools.8a658a/flutter_ios_build_temp_dirNlQoAO/temporary_xcresult_bundle
/Users/chrisley/terminal-addons/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-1.1.2/ios/Classes/TflitePlugin.mm:20:9: fatal error: 'TensorFlowLiteC.h' file not found
#import "TensorFlowLiteC.h"
^~~~~~~~~~~~~~~~~~~
1 error generated.
error: the following command failed with exit code 1 but produced no further output
CompileC /Users/chrisley/Library/Developer/Xcode/DerivedData/Runner-eguofderrkwgjseuiagmsjusmxtx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/tflite.build/Objects-normal/arm64/TflitePlugin.o /Users/chrisley/terminal-addons/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-1.1.2/ios/Classes/TflitePlugin.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'tflite' from project 'Pods')
note: Building targets in dependency order
/Users/chrisley/Documents/Development/Flutter/tensorflow_test/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 'TensorFlowLiteC' 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')
Result bundle written to path:
/var/folders/13/q8h3_c012wvc3mxcfpzrf6fr0000gn/T/flutter_tools.8a658a/flutter_ios_build_temp_dirNlQoAO/temporary_xcresult_bundle
Lexical or Preprocessor Issue (Xcode): 'TensorFlowLiteC.h' file not found
/Users/chrisley/terminal-addons/flutter/.pub-cache/hosted/pub.dartlang.org/tflite-1.1.2/ios/Classes/TflitePlugin.mm:19:8
2
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
I tried to solve the error adding pod 'TensorFlowLiteObjC' in the Podfile but it didn't work.
I am trying to run the flutter project on iOS after doing its setup with firebase properly but I am getting the following duplicate errors related to GoogleService-Info.plist.
here is the full error OutPut
Error output from Xcode build:
↳
objc[24052]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b620) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b08598). One of the two will be used. Which one is undefined.
objc[24052]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b670) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b085e8). One of the two will be used. Which one is undefined.
objc[24052]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b6c0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b08638). One of the two will be used. Which one is undefined.
objc[24052]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b710) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b08688). One of the two will be used. Which one is undefined.
objc[24052]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b760) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b086d8). One of the two will be used. Which one is undefined.
objc[24052]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x215b9b7b0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x106b08728). One of the two will be used. Which one is undefined.
** BUILD FAILED **
here is xcode output
Xcode's output:
↳
Writing result bundle at path:
/var/folders/8r/j5l1hdxj23n759qd_g_kkfk40000gn/T/flutter_tools.ApPpcn/flutter_ios_build_temp_diriZfLbr/temporary_xcresult_bundle
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
error: Unexpected duplicate tasks:
1) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
2) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
Result bundle written to path:
/var/folders/8r/j5l1hdxj23n759qd_g_kkfk40000gn/T/flutter_tools.ApPpcn/flutter_ios_build_temp_diriZfLbr/temporary_xcresult_bundle
Error (Xcode): Unexpected duplicate tasks:
1) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
2) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
Could not build the application for the simulator.
Error launching application on iPhone 13.
kindly help me to resolve this
Error (Xcode): Unexpected duplicate tasks:
1) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
2) Target 'Runner' (project 'Runner') has copy command from '/Users/rashidali/Flutter_projects/lubanpoint/ios/Runner/GoogleService-Info.plist' to '/Users/rashidali/Flutter_projects/lubanpoint/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist'
In Xcode, under the Build Phases of your target, ensure that the GoogleService-Info.plist file is included in the Copy Bundle Resources phase, but is not included in the Compile Sources phase. I had it in both and after removing it from Compile Sources the error was resolved.
IMPORTANT: ensure doing all the below steps using xCode. DON'T use any other IDE or other file explorer. It has to be xCode. xCode does something under the hood when you drag and drop a file to your project which is why you would not use any other IDE to do this.
first: remove all GoogleService-Info.plist from your project.
second: drag and drop a fresh copy of GoogleService-Info.plist to the 'project runner' path
third: try running your project again and it should be working fine.
I had the same issue, xcode had a GoogleService-Info.plist file under Runner and also referencing another file (not visible in director) Hence the error. Here's what I did to resolve it
Under Targets Runner -> Build phases
Expand Compile Sources and Copy Bundle Resources and ensure you don't have a same file in both. If you see a duplicate drop the file from Copy Bundle Resources
Ref: https://github.com/Swiftify-Corp/IHProgressHUD/issues/9#issuecomment-882116029
I have a flutter projecct. First it had to work on android and its working! Everything is cool. Time to make it work on iOS but I get the following error when I try to start the project on iOS Simulator:
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 13,1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'firebase_core' imported from /Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-10.0.6/ios/Classes/FLTFirebaseMessagingPlugin.m:6:
In file included from <module-includes>:1:
In file included from /Users/ew/Dev/projects/SWIE%20-%20ink%20-%20mobil/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebaseCorePlugin.h:12:
/Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin': '/Users/ew/Dev/projects/SWIE%20-%20ink%20-%20mobil/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
--------------------------------- HERE --------------------------------
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-10.0.6/ios/Classes/FLTFirebaseMessagingPlugin.m:6:9: fatal error: could not build module 'firebase_core'
--------------------------------- HERE --------------------------------
#import <firebase_core/FLTFirebasePluginRegistry.h>
~~~~~~~^
2 errors generated.
While building module 'firebase_core' imported from /Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-10.0.6/ios/Classes/FLTFirebaseMessagingPlugin.m:6:
In file included from <module-includes>:1:
In file included from /Users/ew/Dev/projects/SWIE%20-%20ink%20-%20mobil/ios/Pods/Target Support Files/firebase_core/firebase_core-umbrella.h:13:
In file included from /Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebaseCorePlugin.h:12:
/Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.8.0/ios/Classes/FLTFirebasePlugin.h:9:9: error: include of non-modular header inside framework module 'firebase_core.FLTFirebasePlugin': '/Users/ew/Dev/projects/SWIE%20-%20ink%20-%20mobil/ios/Pods/Headers/Public/FirebaseCore/FirebaseCore.h' [-Werror,-Wnon-modular-include-in-framework-module]
#import <FirebaseCore/FirebaseCore.h>
^
1 error generated.
/Users/ew/Dev/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-10.0.6/ios/Classes/FLTFirebaseMessagingPlugin.m:6:9: fatal error: could not build module 'firebase_core'
#import <firebase_core/FLTFirebasePluginRegistry.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 'Toast' 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 'FMDB' 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 'Reachability' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
Sadly I did not find any working solution for this...
This is my pubspec.yaml (firebase dependencies):
firebase_performance: ^0.7.0+7
firebase_crashlytics: ^2.1.1
firebase_core: any
firebase_messaging: ^10.0.6
flutter_local_notifications: ^8.1.1+2
Remove ios/Pods folder.
Remove Podfile and Podfile.lock
Remove pubspec.lock
Open terminal and run these commands one after another
pod cache clean -—all
flutter clean
flutter pub get
pod install
this error is coming from .pub-cache so just flutter clean, if the error still persist delete all the .pub-cache then
Remove the package from dependencies in pubspec.yaml, run flutter
packages get. And then add the package to dependencies again and
running flutter packages get.This process has solved the problem for
me in the past.
flutter clean
and pub get
In pubspec.yaml add firebase_core:any . Then run flutter clean , flutter pub get. Then navigate to iOS folder from the project root directory in terminal cd ios. Then run pod install. Now run flutter run and it should work as expected.
What worked for me is using the precompiled version for the Firestore iOS SDK as something went wrong during compilation. See 'Improve iOS Build Times' section at https://firebase.flutter.dev/docs/overview/#initializing-flutterfire
Remove all pod installations that have to do with firebase from your
podfile (e.g. pod 'Firebase/Analytics').
Add the precompiled pod to your podfile (see link above).
I've added pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.7.0' to the runner target in the podfile (this is an older version as the newer also gave some error).
The result looks like this in your podfile:
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.7.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end```
Flutter iOS app won't build after adding Google Maps package in pubspec.yaml
The app builds fine after removing Google Maps package (https://pub.dev/packages/google_maps_flutter)
Please help!!
The error log:
Launching lib/main.dart on iPhone 8 Plus in debug mode...
Running pod install... 7.2s
Running Xcode build...
└─Compiling, linking and signing... 4.0s
Xcode build done. 49.6s
Failed to build iOS app
Error output from Xcode build:
↳
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple
groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only
the membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropView.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/TOCropViewController.h" is a member of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but membership in targets will be unaffected). If
you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-08-14 10:36:17.831 xcodebuild[5254:93706] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h" is a member of multiple
groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only
the membership in one of the groups will be preserved (but membership in targets will be unaffected).
If you want a reference to the same file in more than one group, please add another reference to the
same path.
** BUILD FAILED **
Xcode's output:
↳
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:25:5: warning: 'FLTPDFViewController' is only available on iOS 11.0 or
newer [-Wunguarded-availability-new]
FLTPDFViewController* pdfviewController = [[FLTPDFViewController alloc] initWithFrame:frame
^~~~~~~~~~~~~~~~~~~~
In file included from
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:4:
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.h:11:12: note: 'FLTPDFViewController' has been marked as being introduced in
iOS 11.0 here, but the deployment target is iOS 9.0.0
#interface FLTPDFViewController : NSObject <FlutterPlatformView, PDFViewDelegate>
^
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:25:5: note: enclose 'FLTPDFViewController' in an #available check to
silence this warning
FLTPDFViewController* pdfviewController = [[FLTPDFViewController alloc] initWithFrame:frame
^~~~~~~~~~~~~~~~~~~~
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:25:49: warning: 'FLTPDFViewController' is only available on iOS 11.0 or
newer [-Wunguarded-availability-new]
FLTPDFViewController* pdfviewController = [[FLTPDFViewController alloc] initWithFrame:frame
^~~~~~~~~~~~~~~~~~~~
In file included from
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:4:
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.h:11:12: note: 'FLTPDFViewController' has been marked as being introduced in
iOS 11.0 here, but the deployment target is iOS 9.0.0
#interface FLTPDFViewController : NSObject <FlutterPlatformView, PDFViewDelegate>
^
/Users/chrisflection/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pdfview-1.0.3+2/io
s/Classes/FlutterPDFView.m:25:49: note: enclose 'FLTPDFViewController' in an #available check to
silence this warning
FLTPDFViewController* pdfviewController = [[FLTPDFViewController alloc] initWithFrame:frame
^~~~~~~~~~~~~~~~~~~~
2 warnings generated.
ld: targeted OS version does not support use of thread local variables in
__ZN9GMSx_absl9GMSx_Cord9InlineRep10AppendTreeEPNS_13cord_internal12GMSx_CordRepE for architecture
x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid
Architectures build settings are configured correctly for the iOS Simulator platform. (in target
'flutter_pdfview' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid
Architectures build settings are configured correctly for the iOS Simulator platform. (in target
'flutter_pdfview' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in target 'TOCropViewController'
from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Views/TOCropOverlayView.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Views/TOCropScrollView.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Views/TOCropToolbar.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Views/TOCropView.h (in target 'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/TOCropViewController.h (in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/chrisflection/Desktop/Mischief.nosync/mischief_flutter_app/ios/Pods/TOCropViewController/Object
ive-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in target
'TOCropViewController' 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')
Could not build the application for the simulator.
Error launching application on iPhone 8 Plus.
This is my pubspec.yaml:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
image_cropper: ^1.2.3
table_calendar: ^2.2.3
substring_highlight: ^0.1.2
intl: ^0.16.1
shared_preferences: ^0.5.4+5
image_picker: ^0.6.7
mime_type: ^0.3.2
flutter_pdfview: ^1.0.0+10
path_provider: ^1.6.5
pdf_flutter: ^1.1.2
http: ^0.12.0+4
multi_image_picker: ^4.6.9
outline_material_icons: ^0.1.1
fading_edge_scrollview: ^1.1.4
sticky_headers: ^0.1.8+1
flutter_tindercard: ^0.1.9
google_maps_flutter: ^0.5.30
I've added google_maps_flutter: ^0.5.30 on my app, but I didn't encounter any issues running the app on iOS. I suggest running a flutter clean to clear the build cache and try running the app again. If you're still having issues, run flutter doctor to check for any errors or warnings.
This is the output when trying to build the basic application when creating a new file. Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
While building module 'Flutter' imported from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Runner/GeneratedPluginRegistrant.h:8:
In file included from :1:
In file included from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
In file included from /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
/Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
completionHandler:(nonnull void (^)())completionHandler;
^
void
1 warning generated.
1 warning generated.
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)
I have tried fixing my path flutter upgrade, flutter doctor -v everything looks right.
Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
error: /Users/davywavy/Desktop/Flutter Projects/premium/ios/Flutter/Debug.xcconfig: unable to open file (in project "Runner") (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Using build description from disk
Could not build the application for the simulator.
Error launching application on iPhone XR.
Exited (sigterm)
new output