firebase / flutterfire

πŸ”₯ A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.66k stars 3.96k forks source link

πŸ› [fiebase_crashlytics] Crashlytics does not support uploading obfuscated dSYMs via the command line #10994

Closed deekshithx closed 1 year ago

deekshithx commented 1 year ago

Bug report

Dart: 3.0.0 Flutter: 3.10.0 Firebase Crashlytic: 3.3.0

Description of the bug Unable to build the ipa for ios with --obfuscate and --split-debug-info=debug tags

Steps to reproduce

Steps to reproduce the behavior:

  1. Install Firebase Crashlytics 3.3.0 with sdk: ">=2.18.0 <3.0.0"
  2. run command flutter build ipa --flavor production -t lib/main_production.dart --obfuscate --split-debug-info=debug
  3. Get the below error error: Flutter build with --obfuscate enabled. Crashlytics does not support uploading obfuscated dSYMs via the command line. Please upload dSYMs through the Firebase console web uploader at https://firebase.corp.google.com/project/_/crashlytics

Additional context

I have installed the Firebase Crashlytics as per the doc here and also uploaded the .dsym to Firebase


Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [βœ“] Flutter (Channel stable, 3.10.0, on macOS 13.1 22C65 darwin-arm64, locale en-IN) [βœ“] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [βœ“] Xcode - develop for iOS and macOS (Xcode 14.3) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2021.1) [βœ“] VS Code (version 1.78.2) [βœ“] Connected device (3 available) [βœ“] Network resources

β€’ No issues found!

Click To Expand ``` Error output from Xcode build: ↳ 2023-05-18 17:14:19.752 xcodebuild[56821:6383759] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled) ** ARCHIVE FAILED ** Xcode's output: ↳ Writing result bundle at path: /var/folders/k8/d1_tsn895_56n1gpnrmft6n40000gn/T/flutter_tools.TKP4Ry/flutter_ios_build_temp_dirOKORwM/temporary_xcresult_bundle /Users/deekshith/.pub-cache/hosted/pub.dev/permission_handler_apple-9.0.8/ios/Classes/strategies/PhonePermissionStrategy.m:50:35: warning: 'subscriberCellularProvider' is deprecated: first deprecated in iOS 12.0 [-Wdeprecated-declarations] CTCarrier *carrier = [netInfo subscriberCellularProvider]; ^~~~~~~~~~~~~~~~~~~~~~~~~~ serviceSubscriberCellularProviders In module 'CoreTelephony' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/permission_handler_apple-9.0.8/ios/Classes/strategies/PhonePermissionStrategy.m:8: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/CoreTel ephony.framework/Headers/CTTelephonyNetworkInfo.h:114:50: note: property 'subscriberCellularProvider' is declared deprecated here @property(readonly, retain, nullable) CTCarrier *subscriberCellularProvider API_DEPRECATED_WITH_REPLACEMENT("serviceSubscriberCellularProviders", ios(4.0, 12.0)) API_UNAVAILABLE(macos); ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/CoreTel ephony.framework/Headers/CTTelephonyNetworkInfo.h:114:50: note: 'subscriberCellularProvider' has been explicitly marked deprecated here 1 warning generated. /Users/deekshith/.pub-cache/hosted/pub.dev/flutter_local_notifications-14.0.0+2/ios/Classes/FlutterLocalNotificationsPlugin.m:6:17: warning: method definition for 'setRegisterPlugins:' not found [-Wincomplete-implementation] @implementation FlutterLocalNotificationsPlugin { ^ In file included from /Users/deekshith/.pub-cache/hosted/pub.dev/flutter_local_notifications-14.0.0+2/ios/Classes/FlutterLocalNotificationsPlugin.m:1: /Users/deekshith/.pub-cache/hosted/pub.dev/flutter_local_notifications-14.0.0+2/ios/Classes/FlutterLocalNotificationsPlugin.h:5:1: note: method 'setRegisterPlugins:' declared here + (void)setRegisterPlugins:(FlutterPluginRegistrantCallback *)callback; ^ 1 warning generated. /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/Toast/Toast/UIView+Toast.m:398:118: warning: 'UIActivityIndicatorViewStyleWhiteLarge' is deprecated: first deprecated in iOS 13.0 [-Wdeprecated-declarations] UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ UIActivityIndicator ViewStyleLarge In module 'UIKit' imported from /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.f ramework/Headers/UIActivityIndicatorView.h:18:5: note: 'UIActivityIndicatorViewStyleWhiteLarge' has been explicitly marked deprecated here UIActivityIndicatorViewStyleWhiteLarge API_DEPRECATED_WITH_REPLACEMENT("UIActivityIndicatorViewStyleLarge", ios(2.0, 13.0), tvos(9.0, 13.0)) = 0, ^ 1 warning generated. 3 warnings generated. 15 warnings generated. /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:8 7:14: warning: 'automaticallyAdjustsScrollViewInsets' is deprecated: first deprecated in iOS 11.0 - Use UIScrollView's contentInsetAdjustmentBehavior instead [-Wdeprecated-declarations] self.automaticallyAdjustsScrollViewInsets = NO; ^ In module 'UIKit' imported from /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.f ramework/Headers/UIViewController.h:260:34: note: 'automaticallyAdjustsScrollViewInsets' has been explicitly marked deprecated here @property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets API_DEPRECATED("Use UIScrollView's contentInsetAdjustmentBehavior instead", ios(7.0,11.0),tvos(7.0,11.0)); // Defaults to YES ^ /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1 281:40: warning: 'UI_USER_INTERFACE_IDIOM' is deprecated: first deprecated in iOS 13.0 - Use -[UIDevice userInterfaceIdiom] directly. [-Wdeprecated-declarations] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone; ^ In module 'UIKit' imported from /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.f ramework/Headers/UIDevice.h:99:36: note: 'UI_USER_INTERFACE_IDIOM' has been explicitly marked deprecated here static inline UIUserInterfaceIdiom UI_USER_INTERFACE_IDIOM(void) API_DEPRECATED("Use -[UIDevice userInterfaceIdiom] directly.", ios(2.0, 13.0), tvos(9.0, 11.0)) { ^ /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.m:1 299:36: warning: 'topLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor [-Wdeprecated-declarations] statusBarHeight = self.topLayoutGuide.length; ^ In module 'UIKit' imported from /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/Target Support Files/TOCropViewController/TOCropViewController-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.f ramework/Headers/UIViewController.h:505:58: note: 'topLayoutGuide' has been explicitly marked deprecated here @property(nonatomic,readonly,strong) id topLayoutGuide API_DEPRECATED("Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor", ios(7.0,11.0), tvos(7.0,11.0)); ^ 3 warnings generated. /Users/deekshith/.pub-cache/hosted/pub.dev/image_cropper-4.0.1/ios/Classes/FLTImageCropperPlugin.m:87:22: warning: @available does not guard availability here; use if (@available) instead [-Wunsupported-availability-guard] if (!window && @available(iOS 13.0, *)) { ^ 1 warning generated. /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/messages.g.m:199:59: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] NSObject *FirebaseCoreHostApiGetCodec() { ^ void /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/messages.g.m:279:58: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] NSObject *FirebaseAppHostApiGetCodec() { ^ void 2 warnings generated. /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.m:64:42: warning: 'trackingID' is deprecated [-Wdeprecated-declarations] pigeonOptions.trackingId = (id)options.trackingID ?: [NSNull null]; ^ In module 'FirebaseCore' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebasePlugin.h:10: /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h:55:59: note: 'trackingID' has been explicitly marked deprecated here @property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; ^ In module 'Darwin' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.h:4: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/AvailabilityMacros.h: 186:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE' #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) ^ /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.m:66:47: warning: 'androidClientID' is deprecated [-Wdeprecated-declarations] pigeonOptions.androidClientId = (id)options.androidClientID ?: [NSNull null]; ^ In module 'FirebaseCore' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebasePlugin.h:10: /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h:71:64: note: 'androidClientID' has been explicitly marked deprecated here @property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; ^ In module 'Darwin' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.h:4: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/AvailabilityMacros.h: 186:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE' #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) ^ /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.m:142:13: warning: 'trackingID' is deprecated [-Wdeprecated-declarations] options.trackingID = initializeAppRequest.trackingId; ^ In module 'FirebaseCore' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebasePlugin.h:10: /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h:55:59: note: 'trackingID' has been explicitly marked deprecated here @property(nonatomic, copy, nullable) NSString *trackingID DEPRECATED_ATTRIBUTE; ^ In module 'Darwin' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.h:4: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/AvailabilityMacros.h: 186:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE' #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) ^ /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.m:152:13: warning: 'androidClientID' is deprecated [-Wdeprecated-declarations] options.androidClientID = initializeAppRequest.androidClientId; ^ In module 'FirebaseCore' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebasePlugin.h:10: /Users/deekshith/enercent/true_power_hostapp_new/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FirebaseCore/FIROptions.h:71:64: note: 'androidClientID' has been explicitly marked deprecated here @property(nonatomic, copy, nullable) NSString *androidClientID DEPRECATED_ATTRIBUTE; ^ In module 'Darwin' imported from /Users/deekshith/.pub-cache/hosted/pub.dev/firebase_core-2.13.0/ios/Classes/FLTFirebaseCorePlugin.h:4: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/include/AvailabilityMacros.h: 186:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE' #define DEPRECATED_ATTRIBUTE __attribute__((deprecated)) ^ 4 warnings generated. ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(firebase_core_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(firebase_core-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(FLTFirebaseCorePlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_crashlytics/firebase_crashlytics.framework/firebase_crashlytics(firebase_ crashlytics_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_crashlytics/firebase_crashlytics.framework/firebase_crashlytics(firebase_ crashlytics-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_crashlytics/firebase_crashlytics.framework/firebase_crashlytics(FLTFireba seCrashlyticsPlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_messaging/firebase_messaging.framework/firebase_messaging(firebase_messag ing_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_messaging/firebase_messaging.framework/firebase_messaging(firebase_messag ing-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_messaging/firebase_messaging.framework/firebase_messaging(FLTFirebaseMess agingPlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(FLTFirebasePlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(FLTFirebasePluginRegistry.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/firebase_core/firebase_core.framework/firebase_core(messages.g.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/freshchat_sdk/freshchat_sdk.framework/freshchat_sdk(freshchat_sdk_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/freshchat_sdk/freshchat_sdk.framework/freshchat_sdk(freshchat_sdk-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/freshchat_sdk/freshchat_sdk.framework/freshchat_sdk(FreshchatSdkPlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(permission_handler_apple_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(AppTrackingTransparencyPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(AudioVideoPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(BluetoothPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(Codec.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(ContactPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(CriticalAlertsPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/Pods_Runner.framework/Pods_Runner(Pods_Runner_vers.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/Pods_Runner.framework/Pods_Runner(Pods-Runner-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(EventPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(LocationPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(MediaLibraryPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(NotificationPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(permission_handler_apple-dummy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(PermissionHandlerPlugin.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(PermissionManager.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(PhonePermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(PhotoPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(SensorPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(SpeechPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(StoragePermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: object file (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/permission_handler_apple/permission_handler_apple.framework/permission_handler_app le(UnknownPermissionStrategy.o)) was built for newer iOS version (13.0) than being linked (10.0) ld: warning: dylib (/Users/deekshith/Library/Developer/Xcode/DerivedData/Runner-hhvixazorcifoqceipskyotuxkuv/Build/Intermediates.noindex/ArchiveIntermediat es/staging/BuildProductsPath/Release-staging-iphoneos/Flutter.framework/Flutter) was built for newer iOS version (11.0) than being linked (10.0) Running upload-symbols in Build Phase mode error: Flutter build with --obfuscate enabled. Crashlytics does not support uploading obfuscated dSYMs via the command line. Please upload dSYMs through the Firebase console web uploader at https://firebase.corp.google.com/project/_/crashlytics Command PhaseScriptExecution failed with a nonzero exit code note: Building targets in dependency order /Users/deekshith/enercent/true_power_hostapp_new/ios/Runner.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.4.99. (in target 'Runner' from project 'Runner') 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') note: Run script build phase '[CP] Copy GoogleService-info.plist to the correct location' 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') 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 '[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') 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') Result bundle written to path: /var/folders/k8/d1_tsn895_56n1gpnrmft6n40000gn/T/flutter_tools.TKP4Ry/flutter_ios_build_temp_dirOKORwM/temporary_xcresult_bundle Encountered error while archiving for device. ```

Flutter dependencies

Click To Expand ``` Dart SDK 3.0.0 Flutter SDK 3.10.0 true_power_admin_app 4.3.0+54 dependencies: - animated_text_kit 4.2.2 [flutter characters] - cached_network_image 3.2.3 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - carousel_slider 4.2.1 [flutter] - circular_reveal_animation 2.0.1 [flutter] - connectivity_plus 4.0.0 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - dio 5.1.2 [http_parser meta path] - firebase_core 2.13.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 3.3.1 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 14.6.1 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - fl_chart 0.62.0 [equatable flutter] - flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine] - flutter_date_pickers 0.4.2 [flutter intl flutter_localizations] - flutter_dotenv 5.0.2 [flutter] - flutter_downloader 1.10.3 [flutter] - flutter_local_notifications 14.0.0+2 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_svg 2.0.5 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_time_range 0.0.3 [flutter numberpicker toggle_switch] - fluttertoast 8.2.1 [flutter flutter_web_plugins] - font_awesome_flutter 10.4.0 [flutter] - freshchat_sdk 0.10.4 [flutter] - get 4.6.5 [flutter] - get_storage 2.1.1 [flutter get path_provider] - hive 2.2.3 [meta crypto] - hive_flutter 1.1.0 [flutter hive path_provider path] - html 0.15.3 [csslib source_span] - http 0.13.6 [async http_parser meta] - image_cropper 4.0.1 [flutter image_cropper_platform_interface image_cropper_for_web] - image_picker 0.8.7+5 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface] - in_app_update 4.0.1 [flutter] - intl 0.18.0 [clock meta path] - localstorage 4.0.1+2 [flutter path_provider] - package_info_plus 4.0.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32] - path_provider 2.0.15 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 10.2.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface] - provider 6.0.5 [collection flutter nested] - shared_preferences 2.1.1 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shimmer 2.0.0 [flutter] - sizer 2.0.15 [universal_io flutter] - syncfusion_flutter_datepicker 21.2.5 [flutter intl syncfusion_flutter_core] - syncfusion_flutter_pdfviewer 21.2.5 [flutter vector_math async http uuid device_info_plus intl syncfusion_pdfviewer_platform_interface syncfusion_pdfviewer_web syncfusion_pdfviewer_macos syncfusion_pdfviewer_windows syncfusion_flutter_core syncfusion_flutter_pdf url_launcher] - url_launcher 6.1.11 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] dev dependencies: - build_runner 2.4.4 [analyzer args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] - hive_generator 2.0.0 [build source_gen hive analyzer source_helper] transitive dependencies: - _fe_analyzer_shared 60.0.0 [meta] - _flutterfire_internals 1.3.1 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.12.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.3.7 [crypto path pointycastle] - args 2.4.1 - async 2.11.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - build 2.4.0 [analyzer async convert crypto glob logging meta package_config path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 4.0.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.2.0 [analyzer async build collection crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.8 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.5.0 [built_collection collection fixnum meta] - cached_network_image_platform_interface 2.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.0.2 [flutter flutter_cache_manager cached_network_image_platform_interface] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.4.0 [meta path] - clock 1.1.1 - code_builder 4.4.0 [built_collection built_value collection matcher meta] - collection 1.17.1 - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - convert 3.1.1 [typed_data] - cross_file 0.3.3+4 [js meta] - crypto 3.0.3 [typed_data] - csslib 0.17.2 [source_span] - dart_style 2.3.1 [analyzer args path pub_semver source_span] - dbus 0.7.8 [args ffi meta xml] - device_info_plus 8.2.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - equatable 2.0.5 [collection meta] - fake_async 1.3.1 [clock collection] - ffi 2.0.2 - file 6.1.4 [meta path] - firebase_core_platform_interface 4.8.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.5.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.6.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.5.1 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.1.0 - flutter_blurhash 0.7.0 [flutter] - flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - flutter_local_notifications_linux 4.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 7.0.0+1 [flutter plugin_platform_interface] - flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math] - flutter_plugin_android_lifecycle 2.0.14 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - frontend_server_client 3.2.0 [async path] - glob 2.1.1 [async collection file path string_scanner] - graphs 2.3.0 [collection] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.0.17 [archive meta xml] - image_cropper_for_web 2.0.0 [flutter flutter_web_plugins image_cropper_platform_interface js] - image_cropper_platform_interface 4.0.0 [flutter plugin_platform_interface http] - image_picker_android 0.8.6+14 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 2.1.12 [flutter flutter_web_plugins image_picker_platform_interface] - image_picker_ios 0.8.7+4 [flutter image_picker_platform_interface] - image_picker_platform_interface 2.6.3 [cross_file flutter http plugin_platform_interface] - infinite_listview 1.1.0 [flutter] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - json_annotation 4.8.1 [meta] - logging 1.1.1 - matcher 0.12.15 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.2.0 - meta 1.9.1 - mime 1.0.4 - nested 1.0.0 [flutter] - nm 0.5.0 [dbus] - numberpicker 2.1.2 [flutter infinite_listview] - octo_image 1.0.2 [flutter flutter_blurhash] - package_config 2.1.0 [path] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.8.3 - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.0.27 [flutter path_provider_platform_interface] - path_provider_foundation 2.2.3 [flutter path_provider_platform_interface] - path_provider_linux 2.1.10 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.0.6 [flutter platform plugin_platform_interface] - path_provider_windows 2.1.6 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - permission_handler_android 10.2.1 [flutter permission_handler_platform_interface] - permission_handler_apple 9.0.8 [flutter permission_handler_platform_interface] - permission_handler_platform_interface 3.9.0 [flutter meta plugin_platform_interface] - permission_handler_windows 0.1.2 [flutter permission_handler_platform_interface] - petitparser 5.4.0 [meta] - platform 3.1.0 - plugin_platform_interface 2.1.4 [meta] - pointycastle 3.7.3 [collection convert js] - pool 1.5.1 [async stack_trace] - process 4.2.4 [file path platform] - pub_semver 2.1.4 [collection meta] - pubspec_parse 1.2.3 [checked_yaml collection json_annotation pub_semver yaml] - rxdart 0.27.7 - shared_preferences_android 2.1.4 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.2.2 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.2.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.2.0 [flutter plugin_platform_interface] - shared_preferences_web 2.1.0 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.2.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.4.1 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 1.3.2 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.3 [analyzer collection source_gen] - source_span 1.9.1 [collection path term_glyph] - sqflite 2.2.8+4 [flutter sqflite_common path] - sqflite_common 2.4.5 [synchronized path meta] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - syncfusion_flutter_core 21.2.5 [vector_math flutter] - syncfusion_flutter_pdf 21.2.5 [flutter intl xml syncfusion_flutter_core crypto convert] - syncfusion_pdfviewer_macos 21.2.5 [flutter syncfusion_pdfviewer_platform_interface] - syncfusion_pdfviewer_platform_interface 21.2.5 [flutter plugin_platform_interface] - syncfusion_pdfviewer_web 21.2.5 [flutter flutter_web_plugins js meta syncfusion_pdfviewer_platform_interface] - syncfusion_pdfviewer_windows 21.2.5 [flutter] - synchronized 3.1.0 - term_glyph 1.2.1 - test_api 0.5.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timezone 0.9.2 [path] - timing 1.0.1 [json_annotation] - toggle_switch 0.1.9 [flutter] - typed_data 1.3.2 [collection] - universal_io 2.2.0 [collection meta typed_data] - url_launcher_android 6.0.33 [flutter url_launcher_platform_interface] - url_launcher_ios 6.1.4 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.5 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.5 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.16 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.6 [flutter url_launcher_platform_interface] - uuid 3.0.7 [crypto] - vector_graphics 1.1.5+1 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.5+1 - vector_graphics_compiler 1.1.5+1 [args meta path_parsing xml vector_graphics_codec] - vector_math 2.1.4 - watcher 1.1.0 [async path] - web_socket_channel 2.4.0 [async crypto stream_channel] - win32 4.1.4 [ffi] - xdg_directories 1.0.0 [meta path process] - xml 6.3.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```

jonathanellis commented 1 year ago

I've got the same issue. This seems to be a known issue, unfortunately:

For iOS, when building with --obfuscate, the symbols table in dSYM still contains the obfuscated symbols, while the DWARF data contains the unobfuscated symbols. Since the obfuscated symbols are uploaded by the upload-symbol script, symbolicated events are still being obfuscated. We have also filed this issue (https://github.com/flutter/flutter/issues/124715) with the Flutter team. Modifying the upload-symbols scripts to upload the DWARF data is a bigger change that is on our roadmap, but a workaround for now is to use the Crashlytics web dSYM uploader to upload Flutter dSYMs when building with both --obfuscate and --split-debug-info

The fix for this is being discussed here. I don't think there's anything we can do for now, it seems we need to upload the dSYMs manually until this is fixed...

KoheiKanagu commented 1 year ago

I've been using --obfuscate and --split-debug-info in my product for a while, and I didn't get any errors, so I was able to build the iOS app successfully.

However, since Flutter 3.10.0, I've been unable to build the app due to errors. Has the build check become stricter?

techouse commented 1 year ago

Same issue here with Flutter 3.7.12 and

firebase_core: ^2.13.0
firebase_crashlytics: ^3.3.1

which installs this cocoapod version

Firebase/Crashlytics (= 10.9.0)

Downgrading to

firebase_core: 2.12.0
firebase_crashlytics: ^3.3.0

installs this cocoapod version

Firebase/Crashlytics (= 10.7.0)

and fixes it.

darshankawar commented 1 year ago

@deekshithx Check this comment and see if it helps to answer your question. Currently you'll need to follow-up in https://github.com/flutter/flutter/issues/124715 for further updates.

If ok, we can close this issue and follow-up in linked one.

jonathanellis commented 1 year ago

I can confirm that following the downgrade steps recommended by @techouse do seem to solve this issue - even on Flutter 3.10.

Thanks πŸ€—

wmfadel2 commented 1 year ago

I tried the suggested downgrade solution but it didn't work, still getting the same error on Codemagic build.

deekshithx commented 1 year ago

solution https://github.com/firebase/flutterfire/issues/10994#issuecomment-1554320808 is working. Thanks

DaemonChoejur commented 1 year ago

For sdk 3.10.1 downgrade solution does not work using codemagic.

okanulkr commented 1 year ago

Solution https://github.com/firebase/flutterfire/issues/10994#issuecomment-1554320808 is working but you need to remove caret (^) sign before the version number.

So use it like this:

firebase_core: 2.12.0
firebase_crashlytics: 3.3.0

And check if the Podfile.lock has the correct version Firebase/Crashlytics (= 10.7.0)

wonderingdev commented 1 year ago

This solution also worked for me. In case you use firebase-analytics as well, it will also need to be downgraded:

firebase_core: 2.12.0
firebase_analytics: 10.3.0
firebase_crashlytics: 3.3.0
rodolfoag commented 1 year ago

This solution also worked for me, but I also had to change the version of firebase_messaging to 14.5.0. Just in case anyone have the same issue.

wladyslawczyzewski commented 1 year ago

small workaround for those who don't want to downgrade the deps:

in yours ios/Runner.xcodeproj/project.pbxproj file find the script upload-symbols and add an exit line above it (see screenshot)

image
TatsuUkraine commented 1 year ago

I'm curious, why this ticket was closed? the issue is not solved - most up-to-date firebase-crashlitics package is not compatible with Flutter.... @darshankawar

MobiliteDev commented 1 year ago

@deekshithx I don't understand why this issue was closed. The fix is not a solution, but a workaround.

I still have the problem with Flutter 3.10.4 and the last crashlytics version.

Is it possible to re open this issue please ?

deekshithx commented 1 year ago

Sure. @MobiliteDev @TatsuUkraine thanks for your comments. I’m reopening this issue @darshankawar.

darshankawar commented 1 year ago

I tried replicating using a demo flavors app by adding firebase_crashlytics and tried running the said command:

flutter build ipa --flavor prod -t lib/main_prod.dart --obfuscate --split-debug-info=debug which didn't throw the reported error.

I tried using latest stable version.

Based on the reports, I am going ahead and labeling for team's input and attention.

/cc @Lyokone

russellwheatley commented 1 year ago

This isn't something implemented on the FlutterFire code base. From my testing, it was introduced in Firebase iOS SDK 10.9.0 which is confirmed in the release notes here.

Is there any chance we can make this a warning and safe exit, @themiswang? I can open an issue on the firebase-ios-sdk repo if you wish.

As a temporary solution, I solved the build issue by removing the Firebase Crashlytics run script in Xcode in the "Build Phases" tab, and "Run Script" dropdown. You should be able to find it there.

TatsuUkraine commented 1 year ago

As a temporary solution, I solved the build issue by removing the Firebase Crashlytics run script in Xcode in the "Build Phases" tab, and "Run Script" dropdown. You should be able to find it there

I can be wrong but I think catch there that this script is added by the flutterfire tool if this step doesn't exist. Can't remember exactly if it's done during configure command or during the pods install.

themiswang commented 1 year ago

Hi folks,

Thanks for all of the feedback. We’re making the change to unblock using the upload-symbol script for iOS apps building with --obfuscate. The change is being merged in Crashlytics iOS SDK 10.12.0 (https://firebase.google.com/support/release-notes/ios), which we expect to ship around July 11.

Related to the issue filed with Flutter (https://github.com/flutter/flutter/issues/124715), to view deobfuscated stack traces, upgrade to Flutter 3.12.0+, which is currently available on Flutter master and the beta channel. For a stable channel update we expect this will happen around August and to track the latest release please visit flutter website(https://docs.flutter.dev/release/archive).

Let us know if you have questions or run into any issues.

movaid7 commented 1 year ago

small workaround for those who don't want to downgrade the deps:

in yours ios/Runner.xcodeproj/project.pbxproj file find the script upload-symbols and add an exit line above it (see screenshot)

@vchyzhevskyi What are the implications of doing this?

gabrielginter commented 1 year ago

@movaid7 App will compile and archive successfully but Symbols won't be automatically uploaded, if you have access to the archived files you'll be able to find the symbols in there and upload them manually to Firebase. This way you won't miss Firebase reports for that version, that is what I have been doing for the time being.

Although, the new update should be ready soon according to @themiswang

techouse commented 1 year ago

Although, the new update should be ready soon according to @themiswang

FYI v10.12.0 was released yesterday

gabrielginter commented 1 year ago

After running pod update I get this:

image

and when building using the --obfuscate option I get the following error?

Error (Xcode): Flutter build with --obfuscate enabled. Crashlytics does not support uploading obfuscated dSYMs via the command line. Please
upload dSYMs through the Firebase console web uploader at https://firebase.corp.google.com/project/_/crashlytics

FirebaseCrashlytics is still 10.10.0 after running pod update.

We need to wait for a new firebase_core release, am I correct?

techouse commented 1 year ago

What am I doing wrong?

firebase_core v2.14.0 is still referencing 10.10.0. You'll have to wait for v2.15.0.

Crdzbird commented 1 year ago

small workaround for those who don't want to downgrade the deps:

in yours ios/Runner.xcodeproj/project.pbxproj file find the script upload-symbols and add an exit line above it (see screenshot)

image

The suggestion provided by @vchyzhevskyi works like a charm.

russellwheatley commented 1 year ago

We will be cutting a new release including iOS SDK 10.12.0 soon πŸ‘

techouse commented 1 year ago

Works with firebase_core v2.15.0

themiswang commented 1 year ago

Close this issue since flutterfire has also updated to the latest version for crashlytics SDK dependency. Issue should resolve now on the latest flutterfire version.

mjolnir91 commented 1 year ago

@vchyzhevskyi why don't I see those scripts in the file?