简体   繁体   English

Flutter 应用程序在模拟器(Iphone 12 mini)上完美运行,但在设备上崩溃(Iphone 8 plus)

[英]Flutter App works perfectly on simulator (Iphone 12 mini) but crashes on device (Iphone 8 plus)

I am running my app on the simulator, and it runs well, but when I try running it on my device I get a bunch of errors:我在模拟器上运行我的应用程序,它运行良好,但是当我尝试在我的设备上运行它时,我得到了一堆错误:

(lldb) 2021-05-02 00:01:22.562844-0700 Runner[27185:7965723] 7.3.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
7.3.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.                                           
-[__NSSingleEntryDictionaryI setObject:forKeyedSubscript:]: unrecognized selector sent to instance 0x28014d880
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSingleEntryDictionaryI setObject:forKeyedSubscript:]: unrecognized selector sent to instance 0x28014d880'
*** First throw call stack:                                             
(0x1a2c85114 0x1b64abcb4 0x1a2b959b8 0x1a2c87758 0x1a2c896cc 0x10793b9a8 0x1a3e5d6e0 0x1a3fc5344 0x1a3fc69fc 0x1a3e5d944 0x1a3e64b28 0x1a3e64740 0x10793b82c 0x105626470 0x105626164 0x1a28bd298 0x1a28be280 0x1a289a4fc 0x1a289afe8 0x1a28a4808 0x1e85685a4 0x1e856b874)
libc++abi.dylib: terminating with uncaught exception of type NSException
* thread #3, queue = 'com.google.FIRCoreDiagnostics', stop reason = signal SIGABRT
    frame #0: 0x00000001cd5fb95c libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:                                  
->  0x1cd5fb95c <+8>:  b.lo   0x1cd5fb978               ; <+36>         
    0x1cd5fb960 <+12>: stp    x29, x30, [sp, #-0x10]!                   
    0x1cd5fb964 <+16>: mov    x29, sp                                   
    0x1cd5fb968 <+20>: bl     0x1cd5d91dc               ; cerror_nocancel
Target 0: (Runner) stopped.

Here are the dependencies for my app:以下是我的应用程序的依赖项:

version: 1.0.0+1

environment:
  sdk: ">=2.2.2 <3.0.0"

dependencies:
  flutter:
    sdk: flutter



  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  firebase_core: ^1.0.4
  cupertino_icons: ^1.0.2
  firebase_auth: ^1.1.1
  firebase_database: ^6.0.0
  cloud_firestore: ^1.0.6
  google_maps_flutter: ^2.0.3
  geolocator: ^7.0.3
  intl: ^0.17.0
  firebase_storage: ^8.0.0-1.0.nullsafety.1
  firebase_messaging: ^9.1.2
  cloud_functions: ^1.0.4
  image_cropper: 1.2.1
  image_picker: ^0.7.4
  geoflutterfire: ^3.0.0-nullsafety.2
  location: ^4.1.1
  flutter_cache_manager: ^3.0.1
  bordered_text: ^1.0.1
  maps_launcher: ^2.0.0
  wechat_assets_picker: ^5.1.3
  flutter_google_places: ^0.3.0
  uuid: ^3.0.4

I have tried flutter clean, but no luck.我试过 flutter 干净,但没有运气。 Any help or advice would be great!任何帮助或建议都会很棒!

Delete Podfile.lock then flutter run删除 Podfile.lock 然后flutter run

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone应用程序在设备上崩溃但在模拟器上没有崩溃 - iPhone app crashes on device but not on simulator UICollectionView-iOS 10-在iPhone 6 Plus模拟器上崩溃但可在真实设备上运行 - UICollectionView - iOS 10 - crash on iPhone 6 Plus simulator but works on real device 应用程序在设备上崩溃 - 在Simulator上完美运行 - Application crashes on device - works perfectly on Simulator ReactNative - 模拟器工作,iPhone崩溃 - ReactNative - Simulator works, iPhone crashes 在iPhone模拟器中工作正常,但在iPhone设备中锁定 - Works fine in iphone simulator but lockup in an iphone device Facebook登录可在iPhone模拟器上使用,但不能在iPhone设备上使用 - facebook login works on iphone simulator but not on iphone device iOS App在手机上崩溃,在iPhone模拟器中完美运行 - iOS App crashes on phone, works flawlessly in iPhone simulator 应用程序在iPhone上崩溃,但在模拟器或iPad上没有崩溃? - App crashes on iPhone but not simulator or iPad? iPhone 6 Plus使用GLView(设备不是模拟器)的问题 - iPhone 6 Plus issues with using a GLView (device not simulator) Iphone 6加模拟器工作正常除了设备 - Iphone 6 plus Simulator work OK Except for Device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM