Flutter app that runs perfectly fine in debug mode on both iOS and Android devices. However, when I deploy the app to TestFlight for iOS testing, it crashes immediately upon launch. The app is built using Flutter with Firebase integration for analytics and messaging.
Build and run the app in debug mode on an iOS device using Flutter CLI (flutter run).
Deploy the app to TestFlight for beta testing.
Install the app from TestFlight on an iOS device.
Launch the app.
This the crash message
These are my dependencies
_fe_analyzer_shared 22.0.0 (68.0.0 available)
_flutterfire_internals 1.3.16 (1.3.32 available)
analyzer 1.7.2 (6.5.0 available)
ansicolor 2.0.2
archive 3.5.1
args 2.5.0
async 2.11.0
boolean_selector 2.1.1
build 2.4.1
build_config 1.0.0 (1.1.1 available)
characters 1.3.0
checked_yaml 2.0.1 (2.0.3 available)
chopper 6.1.4 (7.4.0 available)
chucker_flutter 1.4.2 (1.7.0 available)
cli_util 0.3.5 (0.4.1 available)
clock 1.1.1
collection 1.17.2 (1.18.0 available)
connectivity_plus 4.0.2 (6.0.3 available)
connectivity_plus_platform_interface 1.2.4 (2.0.0 available)
convert 3.1.1
cross_file 0.3.3+7 (0.3.4+1 available)
crypto 3.0.3
csslib 1.0.0
cupertino_icons 1.0.8
dart_style 2.1.1 (2.3.6 available)
dbus 0.7.10
device_info_plus 8.2.2 (10.1.0 available)
device_info_plus_platform_interface 7.0.0
dio 4.0.6 (5.4.3+1 available)
dio_http_cache 0.3.0
equatable 2.0.5
fading_edge_scrollview 3.0.0 (4.1.1 available)
fake_async 1.3.1
ffi 2.1.0 (2.1.2 available)
file 6.1.4 (7.0.0 available)
file_selector_linux 0.9.2+1
file_selector_macos 0.9.4
file_selector_platform_interface 2.6.2
file_selector_windows 0.9.3+1
firebase_analytics 10.8.0 (10.10.4 available)
firebase_analytics_platform_interface 3.9.0 (3.10.5 available)
firebase_analytics_web 0.5.5+12 (0.5.7+4 available)
firebase_core 2.24.2 (2.30.1 available)
firebase_core_platform_interface 5.0.0
firebase_core_web 2.10.0 (2.16.0 available)
firebase_crashlytics 3.4.9 (3.5.4 available)
firebase_crashlytics_platform_interface 3.6.16 (3.6.32 available)
firebase_messaging 14.7.10 (14.9.1 available)
firebase_messaging_platform_interface 4.5.18 (4.5.34 available)
firebase_messaging_web 3.5.18 (3.8.4 available)
fixnum 1.1.0
flutter 0.0.0 from sdk flutter
flutter_easyloading 3.0.5
flutter_lints 2.0.3 (3.0.2 available)
flutter_local_notifications 15.1.3 (17.1.2 available)
flutter_local_notifications_linux 4.0.0+1
flutter_local_notifications_platform_interface 7.1.0
flutter_localizations 0.0.0 from sdk flutter
flutter_map 4.0.0 (6.1.0 available)
flutter_native_splash 2.3.7 (2.4.0 available)
flutter_otp_text_field 1.1.3+2
flutter_plugin_android_lifecycle 2.0.18 (2.0.19 available)
flutter_spinkit 5.2.1
flutter_test 0.0.0 from sdk flutter
flutter_web_plugins 0.0.0 from sdk flutter
fluttertoast 8.2.5
font_awesome_flutter 10.7.0
get 4.6.6
glob 2.1.2
google_fonts 4.0.4 (6.2.1 available)
hive 2.2.3
hive_flutter 1.1.0
html 0.15.4
http 0.13.6 (1.2.1 available)
http_mock_adapter 0.3.3 (0.6.1 available)
http_parser 4.0.2
image 4.1.7
image_picker 1.0.8 (1.1.1 available)
image_picker_android 0.8.9+5 (0.8.11 available)
image_picker_for_web 3.0.2 (3.0.4 available)
image_picker_ios 0.8.9+1 (0.8.10+1 available)
image_picker_linux 0.2.1+1
image_picker_macos 0.2.1+1
image_picker_platform_interface 2.9.3 (2.10.0 available)
image_picker_windows 0.2.1+1
intl 0.18.1 (0.19.0 available)
intro_slider 4.2.1
js 0.6.7 (0.7.1 available)
json_annotation 4.1.0 (4.9.0 available)
json_serializable 4.1.4 (6.8.0 available)
latlong2 0.8.2 (0.9.1 available)
lints 2.1.1 (3.0.0 available)
lists 1.0.1
location 5.0.3 (6.0.2 available)
location_platform_interface 3.1.2 (4.0.0 available)
location_web 4.2.0 (5.0.1 available)
logging 1.2.0
lottie 2.7.0 (3.1.0 available)
marquee 2.2.3
matcher 0.12.16 (0.12.16+1 available)
material_color_utilities 0.5.0 (0.11.1 available)
meta 1.9.1 (1.14.0 available)
mgrs_dart 2.0.0
mime 1.0.4 (1.0.5 available)
nested 1.0.0
nm 0.5.0
os_detect 2.0.1
package_config 2.1.0
package_info_plus 3.1.2 (8.0.0 available)
package_info_plus_platform_interface 2.0.1 (3.0.0 available)
path 1.8.3 (1.9.0 available)
path_provider 2.1.3
path_provider_android 2.2.3 (2.2.4 available)
path_provider_foundation 2.3.2
path_provider_linux 2.2.1
path_provider_platform_interface 2.1.2
path_provider_windows 2.2.1
pedantic 1.11.1
petitparser 5.4.0 (6.0.2 available)
platform 3.1.4
plugin_platform_interface 2.1.8
polylabel 1.0.1
polyline_codec 0.1.6
proj4dart 2.1.0
provider 6.1.2
pub_semver 2.1.4
pubspec_parse 1.1.0 (1.2.3 available)
quiver 3.2.1
screenshot 2.3.0
share_plus 6.3.4 (9.0.0 available)
share_plus_platform_interface 3.4.0 (4.0.0 available)
shared_preferences 2.2.3
shared_preferences_android 2.2.1 (2.2.2 available)
shared_preferences_foundation 2.3.5 (2.4.0 available)
shared_preferences_linux 2.3.2
shared_preferences_platform_interface 2.3.2
shared_preferences_web 2.2.1 (2.3.0 available)
shared_preferences_windows 2.3.2
sky_engine 0.0.99 from sdk flutter
source_gen 1.0.3 (1.5.0 available)
source_span 1.10.0
sprintf 7.0.0
sqflite 2.3.2 (2.3.3+1 available)
sqflite_common 2.5.3 (2.5.4 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
string_scanner 1.2.0
synchronized 3.1.0+1
term_glyph 1.2.1
test_api 0.6.0 (0.7.1 available)
timelines 0.1.0
timezone 0.9.3
tuple 2.0.2
typed_data 1.3.2
unicode 0.3.1
universal_io 2.2.2
upgrader 6.5.0 (10.3.0 available)
url_launcher 6.2.4 (6.2.6 available)
url_launcher_android 6.3.0 (6.3.1 available)
url_launcher_ios 6.2.4 (6.2.5 available)
url_launcher_linux 3.1.1
url_launcher_macos 3.1.0
url_launcher_platform_interface 2.3.2
url_launcher_web 2.2.0 (2.3.1 available)
url_launcher_windows 3.1.1
uuid 4.2.2 (4.4.0 available)
vector_math 2.1.4
version 3.0.2
watcher 1.1.0
web 0.1.4-beta (0.5.1 available)
win32 3.1.4 (5.5.0 available)
wkt_parser 2.0.0
xdg_directories 1.0.4
xml 6.3.0 (6.5.0 available)
yaml 3.1.2
Flutter doctor summary
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.4.1 23E224
darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version
33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.89.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for Sarthak’s iPhone.
Ensure the device is unlocked and attached with a cable or
associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect
wirelessly. (code -27)
[✓] Network resources
• No issues found!