简体   繁体   中英

Firebase mode detected. warning: unable to find GoogleService-Info.plist in app bundle, dSYMs will not be uploaded

I have setup all these steps and bundle id on Firebase Dashboard and tried crash many times but not getting any report.

  1. pod 'Fabric', '~> 1.7.6'
  2. pod 'Crashlytics', '~> 3.10.1'
  3. In Build phase added run Script : "${PODS_ROOT}/Fabric/run"
  4. Debug Inforation Format : DWARF with dSYM File
  5. running in simulator with following steps
    • (IBAction)crashButtonTapped:(id)sender { [[Crashlytics sharedInstance] crash]; }
    • Click play_arrow Build and then run the current scheme in Xcode to build your app on a device or simulator.
    • Click stop Stop running the scheme or action in Xcode to close the initial instance of your app. This initial instance includes a debugger that interferes with Crashlytics.
    • Open your app again from the simulator or device. Touch Crash to crash the app.

@Alexizamerican my app's bundle id is "com.lawcrossing.apps".

Also when i went into my pods/Fabric/ and click on "run" CLI. It clearly says

Firebase mode detected. warning: unable to find GoogleService-Info.plist in app bundle, dSYMs will not be uploaded

BUT actually plist is present. I had tried it deleting it and re-added the plist file. I also tried with the Firebase.configure (withoptions) by explicit defining the path and filename of plist.

Make sure GoogleService-Info.plist file's Target Membersip of your main target is checked

在此处输入图片说明

(Select the GoogleService-Info.plist file in the project navigator, Target Membership options will be on the far right)

To address the comments: you can test on the simulator, testing on the real device is not required for this to work

I solved this problem by adding the GoogleService-Info.plist to the Input Files section in the Run Script phase for Fabric:

Crashlytics / Fabric 的 Xcode 运行脚本阶段

Make sure that your Crashlytics Run Script is the last one in Build Phases. Build Phases Screenshot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM