The app launches on Android usually even when including Firebase, However not on iOS.
my Pod file:
# Uncomment this line to outline a world platform in your mission
platform :ios, '14.0'
# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
mission 'Runner', {
'Debug' => :debug,
'Profile' => :launch,
'Launch' => :launch,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
except File.exist?(generated_xcode_build_settings_path)
increase "#{generated_xcode_build_settings_path} should exist. For those who're working pod set up manually, ensure flutter pub get is executed first"
finish
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
finish
increase "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish
require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
goal 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
$FirebaseSDKVersion='10.23.0'
finish
post_install do |installer|
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
goal.build_configurations.every do |config|
# e.g. when you do not want digicam permission, simply add 'PERMISSION_CAMERA=0'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.calendar
# 'PERMISSION_EVENTS=1',
## dart: PermissionGroup.reminders
# 'PERMISSION_REMINDERS=1',
## dart: PermissionGroup.contacts
# 'PERMISSION_CONTACTS=1',
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=1',
## dart: PermissionGroup.microphone
# 'PERMISSION_MICROPHONE=1',
## dart: PermissionGroup.speech
# 'PERMISSION_SPEECH_RECOGNIZER=1',
## dart: PermissionGroup.photos
'PERMISSION_PHOTOS=1',
## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
'PERMISSION_LOCATION=1',
## dart: PermissionGroup.notification
'PERMISSION_NOTIFICATIONS=1',
## dart: PermissionGroup.mediaLibrary
'PERMISSION_MEDIA_LIBRARY=1',
## dart: PermissionGroup.sensors
# 'PERMISSION_SENSORS=1'
]
config.build_settings['ENABLE_BITCODE'] = 'NO'
finish
finish
finish
I’ve tried a number of options however none of them labored, I additionally up to date Xcode to fifteen.3 and iOS to 17.4, however this doesn’t repair the difficulty.
Error:
Launching lib/foremost.dart on iPhone 15 Professional Max in debug mode...
Xcode construct executed. 454.1s
Didn't construct iOS app
Error output from Xcode construct:
↳
--- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
2
{ platform:iOS Simulator, id:08659800-D559-478A-8931-B251851D0BC5, OS:17.4, title:iPhone 15 Professional Max }
** BUILD FAILED **
2
Xcode's output:
↳
Writing outcome bundle at path:
/var/folders/hp/cymv76nj76s6vwvm72j96gw00000gn/T/flutter_tools.JsDFZz/flutter_ios_build_temp_dir0AdLcc/temporary_xcresult_bundle
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseAuth-FirebaseAuth_Privacy' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseMessaging-FirebaseMessaging_Privacy' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseCrashlytics-FirebaseCrashlytics_Privacy' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 10.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'gRPC-C++-grpcpp' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 10.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'gRPC-C++-gRPCCertificates-Cpp' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 10.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'gRPC-C++' from mission 'Pods')
warning: Run script construct section 'Create Symlinks to Header Folders' might be run throughout each construct as a result of it doesn't specify any outputs. To deal with this warning, both add output dependencies to the script section, or configure it to run in each construct by unchecking "Primarily based on dependency evaluation" within the script section. (in goal 'gRPC-C++' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseFirestore' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseFirestoreInternal' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseFirestoreInternal-FirebaseFirestoreInternal_Privacy' from mission 'Pods')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'FirebaseFirestore-FirebaseFirestore_Privacy' from mission 'Pods')
word: Run script construct section 'Run Script' might be run throughout each construct as a result of the choice to run the script section "Primarily based on dependency evaluation" is unchecked. (in goal 'Runner' from mission 'Runner')
word: Run script construct section 'Skinny Binary' might be run throughout each construct as a result of the choice to run the script section "Primarily based on dependency evaluation" is unchecked. (in goal 'Runner' from mission 'Runner')
warning: Run script construct section 'FlutterFire: "flutterfire upload-crashlytics-symbols"' might be run throughout each construct as a result of it doesn't specify any outputs. To deal with this warning, both add output dependencies to the script section, or configure it to run in each construct by unchecking "Primarily based on dependency evaluation" within the script section. (in goal 'Runner' from mission 'Runner')
/Customers/yassine/Paperwork/ExploreVo/Cellular app/consumer app/newest/exolorevo-user/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 11.0, however the vary of supported deployment goal variations is 12.0 to 17.4.99. (in goal 'Firebase' from mission 'Pods')
Couldn't construct the appliance for the simulator.
Error launching utility on iPhone 15 Professional Max.
I’ve tried all the answer right here
post_install do |installer|
installer.pods_project.targets.every do |goal|
goal.build_configurations.every do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '17.0'
finish
finish
finish
however that offers one other concern which is:
Launching lib/foremost.dart on iPhone 15 Professional Max in debug mode...
Xcode construct executed. 17.8s
Didn't construct iOS app
Swift Compiler Error (Xcode): 'Flutter/Flutter.h' file not discovered
/Customers/yassine/.pub-cache/hosted/pub.dev/nb_utils-7.0.2/ios/Courses/NbUtilsPlugin.h:0:8
Swift Compiler Error (Xcode): Couldn't construct Goal-C module 'nb_utils'
Swift Compiler Error (Xcode): No such module 'Flutter'
/Customers/yassine/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.5/darwin/Courses/messages.g.swift:9:9
messages.g.swift:9
Couldn't construct the appliance for the simulator.
Error launching utility on iPhone 15 Professional Max.
Any concept on tips on how to clear up it? It’s been two days on this!