Closed danReynolds closed 3 months ago
Seems like it could be related to the GRPC bump from 0.24->0.32. The RN community is having a similar issue resulting from that: https://github.com/invertase/react-native-firebase/issues/7695
Hello @danReynolds, we are currently holding on releasing 10.23.1 that could fix this issue (we are waiting for precompiled binaries). Can you try to override the native dependency version manually in your Podfile to see if it resolves your issue?
target 'Runner' do
use_frameworks!
use_modular_headers!
$FirebaseSDKVersion = '10.23.1'
it work with me, try it `target 'Runner' do use_frameworks! use_modular_headers!
pod 'BoringSSL-GRPC', '0.0.24'`
From: https://github.com/invertase/react-native-firebase/issues/7695#issuecomment-2021790254
Hello @danReynolds, we are currently holding on releasing 10.23.1 that could fix this issue (we are waiting for precompiled binaries). Can you try to override the native dependency version manually in your Podfile to see if it resolves your issue?
target 'Runner' do use_frameworks! use_modular_headers! $FirebaseSDKVersion = '10.23.1'
pinning 10.23.1 alone didn't solve it, same crash. Needed to downgrade Boring SSL to 0.0.24 as well.
Yeah, I would say downgrading Boring SSL in your Podfile:
target 'Runner' do
use_frameworks!
use_modular_headers!
#Β Add this line
pod 'BoringSSL-GRPC', '0.0.24'
# Other configuration...
end
Not sure what is happening as I haven't been able to reproduce. We should be updating the firebase-ios-sdk soon, hopefully this will resolve the issue, but I will let you know when it is released π
This still happens to our build project. With the following firebase packages:
firebase_core: ^2.30.0 firebase_crashlytics: ^3.4.18 firebase_analytics: ^10.8.9 firebase_messaging: ^14.7.19 firebase_core_platform_interface: ^5.0.0 firebase_auth: ^4.19.2 firebase_storage: ^11.7.1 firebase_dynamic_links: ^5.4.3
Only happens in release mode. I get this error:
Assertion failed: (borrow == 0), function GRPC_ec_felem_neg, file felem.c, line 66.
__pthread_kill + 8 libsystem_kernel.dylib
:
-> 0x1e7edb674 <+8>: b.lo 0x1e7edb694 ; <+40>
0x1e7edb678 <+12>: pacibsp
0x1e7edb67c <+16>: stp x29, x30, [sp, #-0x10]!
0x1e7edb680 <+20>: mov x29, sp
Target 0: (Runner) stopped.Flutter Version 3.19.5. Adding just:
pod 'BoringSSL-GRPC', '0.0.24'
Does not fix the issue. It give me problems with dependencies of other packages that have gone to the 0.0.32 version.
Anyone still experiencing this error for Flutter iOS?
@Mamba-Software - clean out your Pods/ & Podfile.lock. That exception is from firestore and you aren't using cloud_firestore plugin.
@danReynolds - have you tried the latest plugin version which user firebase-ios-sdk v10.24.0
? Remember to remove this from your Podfile:
pod 'BoringSSL-GRPC', '0.0.24'
Thanks for the answer @russellwheatley .
I am using Cloud Firestore indeed:
firebase_core: ^2.30.0 firebase_crashlytics: ^3.4.18 firebase_analytics: ^10.8.9 firebase_messaging: ^14.7.19 firebase_core_platform_interface: ^5.0.0 firebase_auth: ^4.19.2 firebase_storage: ^11.7.1 firebase_dynamic_links: ^5.4.3 flutter_firebase_chat_core: ^1.6.7 cloud_firestore: ^4.12.2 cloud_functions: ^4.5.3
These are all my Google/Firebase packages on my project. After this command:
flutter clean && rm -Rf ios/Pods && rm -Rf ios/.symlinks && rm -Rf ios/Flutter/Flutter.framework && rm -Rf ios/Flutter/Flutter.podspec && rm ios/Podfile
I still get the SIGABRT error. Any recommendation?
I would not run this command:
flutter clean && rm -Rf ios/Pods && rm -Rf ios/.symlinks && rm -Rf ios/Flutter/Flutter.framework && rm -Rf ios/Flutter/Flutter.podspec && rm ios/Podfile
Try:
flutter clean
cd ios && rm -rf Pods && rm Podfile.lock
The above will be enough for the vast majority of iOS Pod issues on Flutter.
Thanks for the answer @russellwheatley. Will take this into account.
I have updated the cloud_firestore version. These are now my versions:
firebase_core: ^2.30.0 firebase_crashlytics: ^3.4.18 firebase_analytics: ^10.8.9 firebase_messaging: ^14.7.19 firebase_core_platform_interface: ^5.0.0 firebase_auth: ^4.19.2 firebase_storage: ^11.7.1 firebase_dynamic_links: ^5.4.3 flutter_firebase_chat_core: ^1.6.7 cloud_firestore: ^4.17.0 cloud_functions: ^4.5.3
When I run pod install, I see that v10.24.0 is being installed for firebase-ios-sdk.
Here is my standard Pod File:
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
#target 'RunnerTests' do
# inherit! :search_paths
# end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
And here is the flutter doctor -v result:
[β] Flutter (Channel stable, 3.19.5, on macOS 13.3.1 22E772610a darwin-arm64, locale es-ES) β’ Flutter version 3.19.5 on channel stable at /Users/joelbolwijnpinell/Documents/MAMBA/flutter β’ Upstream repository https://github.com/flutter/flutter.git β’ Framework revision 300451adae (3 weeks ago), 2024-03-27 21:54:07 -0500 β’ Engine revision e76c956498 β’ Dart version 3.3.3 β’ DevTools version 2.31.1
[β] Android toolchain - develop for Android devices (Android SDK version 31.0.0) β’ Android SDK at /Users/joelbolwijnpinell/Library/Android/sdk β’ Platform android-34, build-tools 31.0.0 β’ Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java β’ Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 14.3) β’ Xcode at /Applications/Xcode.app/Contents/Developer β’ Build 14E222b β’ CocoaPods version 1.15.2
[β] Chrome - develop for the web β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[β] Android Studio (version 2023.1) β’ 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.7+0-17.0.7b1000.6-10550314)
[β] VS Code (version 1.88.1) β’ VS Code at /Applications/Visual Studio Code.app/Contents β’ Flutter extension version 3.86.0
[β] Connected device (4 available) β’ iPhone (mobile) β’ 00008020-001D28343C88003A β’ ios β’ iOS 16.3.1 20D67 β’ iPhone 14 Pro (mobile) β’ D1B70366-1487-4DE3-BAE1-1C54A2C14E38 β’ ios β’ com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator) β’ macOS (desktop) β’ macos β’ darwin-arm64 β’ macOS 13.3.1 22E772610a darwin-arm64 β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 123.0.6312.124
[β] Network resources β’ All expected network resources are available.
β’ No issues found!
Still get the same app SIGABRT crash once the app is deployed in Release mode.
EDIT: It does not work on Debug mode either:
Assertion failed: (borrow == 0), function GRPC_ec_felem_neg, file felem.c, line 66.
__pthread_kill + 8 libsystem_kernel.dylib
:
-> 0x1e7edb674 <+8>: b.lo 0x1e7edb694 ; <+40>
0x1e7edb678 <+12>: pacibsp
0x1e7edb67c <+16>: stp x29, x30, [sp, #-0x10]!
0x1e7edb680 <+20>: mov x29, sp
Target 0: (Runner) stopped.Could you please confirm if this is something that should have already been resolved from your side?
Hey @danReynolds. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@danReynolds if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Is there an existing issue for this?
Which plugins are affected?
Core, Auth
Which platforms are affected?
iOS
Description
I recently updated to iOS SDK 10.22.0 and started seeing this startup crash.
I really don't know a lot about what's going on here but I've confirmed that dropping back down to 10.18.0 fixes it. I had to move to 10.22.0 to fix an issue with firebase_storage: https://github.com/firebase/flutterfire/issues/12429.
This is preventing us from building our app right now, since it just crashes on startup in release mode. Dev mode runs fine so not sure about the difference there.
Reproducing the issue
N/A
Firebase Core version
2.24.2
Flutter Version
3.19.0
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml Dart SDK 3.3.2 Flutter SDK 3.19.4 dependencies: - animated_text_kit 4.2.2 [flutter characters] - avatar_glow 2.0.2 [flutter] - cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - cloud_firestore 4.14.0 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_functions 4.6.0 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - computables 3.0.0 [flutter] - countup 0.1.4 [flutter] - crypto 3.0.3 [typed_data] - cupertino_icons 1.0.5 - data_batcher 0.0.2 [flutter] - date_tools 0.0.4 [flutter intl] - firebase_auth 4.16.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 2.24.2 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_messaging 14.7.10 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_storage 11.5.6 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - fl_chart 0.63.0 [equatable flutter] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] - flutter_animate 4.4.1 [flutter] - flutter_keyboard_visibility 6.0.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_linux flutter_keyboard_visibility_macos flutter_keyboard_visibility_web flutter_keyboard_visibility_windows flutter] - flutter_multi_formatter 2.12.4 [flutter collection base58check bech32] - fuzzywuzzy 1.1.6 [collection] - google_fonts 6.1.0 [flutter http path_provider crypto] - google_mlkit_entity_extraction 0.11.0 [flutter google_mlkit_commons] - google_sign_in 6.1.3 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - http 1.1.0 [async http_parser meta] - intl 0.19.0 [clock meta path] - loon 1.0.1 [uuid encrypt flutter flutter_secure_storage path path_provider] - lottie 3.0.0 [archive flutter path vector_math] - modal_bottom_sheet 3.0.0-pre [flutter] - page_transition 2.1.0 [flutter] - palette_generator 0.3.3+3 [collection flutter] - path 1.9.0 - path_provider 2.1.2 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - plaid_flutter 3.1.4 [flutter flutter_web_plugins plugin_platform_interface js] - platform_builder 3.0.0 [flutter] - readmore 2.2.0 [flutter] - rich_text_composer 0.0.1 [flutter] - rich_text_writer 0.0.3 [flutter] - route_builder 0.0.6 [flutter] - rxdart 0.27.7 - shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - sign_in_with_apple 5.0.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - stack_router 2.0.1 [flutter] - syncfusion_flutter_charts 24.2.9 [flutter intl vector_math syncfusion_flutter_core] - timeago 3.6.1 [intl] - toasted 1.0.0 [flutter] - universal_html 2.2.3 [async csslib charcode collection html meta source_span typed_data universal_io] - url_launcher 6.1.12 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 4.3.3 [crypto sprintf meta fixnum] - validators 3.0.0 - visibility_detector 0.4.0+2 [flutter] dev dependencies: - flutter_lints 3.0.1 [lints] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service] dependency overrides: - computables 3.0.0 [flutter] - loon 1.0.1 [uuid encrypt flutter flutter_secure_storage path path_provider] transitive dependencies: - _flutterfire_internals 1.3.16 [collection firebase_core firebase_core_platform_interface flutter meta] - archive 3.4.10 [crypto path pointycastle] - args 2.4.2 - asn1lib 1.4.0 - async 2.11.0 [collection meta] - base58check 2.0.0 [crypto collection] - bech32 0.2.2 [convert] - boolean_selector 2.1.1 [source_span string_scanner] - cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.1.1 [cached_network_image_platform_interface flutter flutter_cache_manager] - characters 1.3.0 - charcode 1.3.1 - clock 1.1.1 - cloud_firestore_platform_interface 6.1.0 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 3.9.0 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js] - cloud_functions_platform_interface 5.5.11 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.6.11 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - collection 1.18.0 - convert 3.1.1 [typed_data] - csslib 0.17.3 [source_span] - encrypt 5.0.1 [args asn1lib clock collection crypto pointycastle] - equatable 2.0.5 [collection meta] - fake_async 1.3.1 [clock collection] - ffi 2.0.2 - file 6.1.4 [meta path] - firebase_auth_platform_interface 7.0.9 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.8.13 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta] - firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.13.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta web] - firebase_messaging_platform_interface 4.5.18 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.5.18 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - firebase_storage_platform_interface 5.1.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_storage_web 3.6.17 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta] - fixnum 1.1.0 - flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_keyboard_visibility_linux 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_macos 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface] - flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter] - flutter_keyboard_visibility_windows 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_secure_storage 8.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta] - flutter_secure_storage_linux 1.1.3 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.0.1 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.1.1 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 2.0.0 [flutter flutter_secure_storage_platform_interface] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - google_identity_services_web 0.2.2 [js meta] - google_mlkit_commons 0.6.1 [flutter] - google_sign_in_android 6.1.14 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.6.2 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.1 [flutter plugin_platform_interface quiver] - google_sign_in_web 0.12.2+1 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js] - html 0.15.3 [csslib source_span] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - js 0.6.7 [meta] - leak_tracker 10.0.0 [clock collection meta path vm_service] - leak_tracker_flutter_testing 2.0.1 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 2.0.1 [leak_tracker matcher meta] - lints 3.0.0 - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.8.0 [collection] - meta 1.11.0 - octo_image 2.0.0 [flutter] - path_provider_android 2.2.2 [flutter path_provider_platform_interface] - path_provider_foundation 2.3.2 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - platform 3.1.0 - plugin_platform_interface 2.1.4 [meta] - pointycastle 3.7.3 [collection convert js] - process 4.2.4 [file path platform] - quiver 3.2.1 [matcher] - 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.3.1 [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] - sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js] - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - sqflite 2.2.8+4 [flutter sqflite_common path] - sqflite_common 2.4.5+1 [synchronized path meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - syncfusion_flutter_core 24.2.9 [vector_math flutter] - synchronized 3.1.0 - term_glyph 1.2.1 - test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - url_launcher_android 6.0.38 [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.6 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.1.3 [flutter plugin_platform_interface] - url_launcher_web 2.0.18 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.7 [flutter url_launcher_platform_interface] - vector_math 2.1.4 - vm_service 13.0.0 - web 0.5.1 - win32 4.1.4 [ffi] - xdg_directories 1.0.0 [meta path process] ```
Additional context and comments
No response