Closed frederikstonge closed 7 months ago
Ok so turns out my app has two targets, Runner and RunnerTests.
After specifying Runner as the target, I'm getting this :
Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Xcode build done. 16.5s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:3997705A-2B36-4C35-9251-551F8AFA0B7F, OS:17.4, name:iPhone 15 Pro Max }
{ platform:iOS Simulator, id:3997705A-2B36-4C35-9251-551F8AFA0B7F, OS:17.4, name:iPhone 15 Pro Max }
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/_5/s0fnddx52xd36pj62l8cnyhj8q41tn/T/flutter_tools.PldJBq/flutter_ios_build_temp_dirgfRLDY/temporary_xcresult_bundle
ld: warning: ignoring duplicate libraries: '-lc++'
ld: warning: ignoring duplicate libraries: '-lc++'
ld: warning: no platform load command found in '/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/MLKitBarcodeScanning/Frameworks/MLKitBarcodeScanning.framework/MLKitBarcodeScanning', assuming: iOS-simulator
error: Unable to read file at path /Users/fstonge/Development/Company/spark-mobileapp-shop/ios/firebase_app_id_file.json
Command PhaseScriptExecution failed with a nonzero exit code
note: Removed stale file '/Users/fstonge/Library/Developer/Xcode/DerivedData/Runner-dkrcmojidrmafebkkceqgnjkuayp/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-3EDA79F396D5D1323FAD1C26.sh'
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleToolboxForMac' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseSharedSwift' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'SwiftProtobuf-SwiftProtobuf' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'nanopb-nanopb_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'geolocator_apple-geolocator_apple_privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'flutter_native_splash-flutter_native_splash_privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'video_player_avfoundation-video_player_avfoundation_privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'path_provider_foundation-path_provider_foundation_privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'SwiftProtobuf' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'nanopb' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'PromisesObjC' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'PromisesSwift-Promises_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'PromisesSwift' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleDataTransport-GoogleDataTransport_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleUtilitiesComponents' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleDataTransport' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCoreInternal' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCore-FirebaseCore_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCore' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCoreExtension-FirebaseCoreExtension_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseABTesting-FirebaseABTesting_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseInstallations' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseCoreExtension' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseABTesting' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseSessions' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseRemoteConfig-FirebaseRemoteConfig_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseRemoteConfig' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseCrashlytics-FirebaseCrashlytics_Privacy' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebaseCrashlytics' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'FirebasePerformance' from project 'Pods')
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
warning: Run script build phase '[firebase_crashlytics] Crashlytics Upload Symbols' 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')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'FlutterFire: "flutterfire upload-crashlytics-symbols"' 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/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'MLKitBarcodeScanning' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'Firebase' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'MLImage' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'MLKitCommon' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'GoogleAppMeasurement' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'GoogleMLKit' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.4.99. (in target 'MLKitVision' from project 'Pods')
/Users/fstonge/Development/Company/spark-mobileapp-shop/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 12.0 to 17.4.99. (in target 'FirebaseAnalytics' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.
Exited (1).
This line is the error :
error: Unable to read file at path /Users/fstonge/Development/Company/spark-mobileapp-shop/ios/firebase_app_id_file.json
What happened to it since 0.2.0?
Turns out I needed to remove the old crashlytics upload symbols in my project.pbxproj:
4DF388FD168AB3B9AA3F6569 / [firebase_crashlytics] Crashlytics Upload Symbols /,
Is there an existing issue for this?
CLI Version
0.3.0-dev.21
Firebase Tools version
13.0.3
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.4.1 23E224 darwin-arm64, locale en-CA) • Flutter version 3.19.3 on channel stable at /Users/fstonge/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ba39319843 (3 weeks ago), 2024-03-07 15:22:21 -0600 • Engine revision 2e4ba9c6fb • Dart version 3.3.1 • DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/fstonge/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.87.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.84.0
[✓] Connected device (3 available) • iPhone 15 Pro Max (mobile) • 3997705A-2B36-4C35-9251-551F8AFA0B7F • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 123.0.6312.87
[✓] Network resources • All expected network resources are available.
• No issues found!
Description
Since upgrading to flutterfire 0.3.0-dev.21, I cannot debug iOS.
The debug console shows :
I tried to manually run
pod update
from the ios folder, and this is the output:This is the line that raised an issue for me :
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
Steps to reproduce
I guess creating a new app and running the new 0.3.0-dev.21 flutterfire configure on it?
Expected behavior
The app should be able to start in debug.
Screenshots
No response
Additional context and comments
No response