Google Fabric in Xcode 10 beta

RubberDucky4444 picture RubberDucky4444 · Aug 16, 2018 · Viewed 13.5k times · Source

I installed Xcode 10 Beta 6 and I am updating everything and in this process I have run into a small issue with Fabric. Fabric's website has special instructions for Xcode 10 that says:

Xcode 10 Instructions

When I am in Xcode 10 I go to Build Phases an on the Run Script that has my Fabric key there is a + sign under the section Input Fields

When I click the + it automatically generates $(SRCROOT)/newInputFile where newInputFile is automatically highlighted.

I'm not understanding Fabric's instructions. Do I copy the $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH) after $(SRCROOT)/ Do I replace INFOPLIST_PATH with the file path to my info.plist?

I've tried all these options but Fabric is still crashing in Xcode 10. I know it is Fabric because I've commented out Fabric.with([Crashlytics.self]) in my App Delegate's didFinishLaunchingWithOptions

Answer

Hardik Thakkar picture Hardik Thakkar · Oct 6, 2018

For Xcode 10 only, user's who face issue in final setup of fabric is your project.

From Xcode 10 you need to make one more setup in Build Phase's Input Files field.

Simply You need to copy this $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH) and paste to Build Phase's Input Files field under Run Script as display in below image.

enter image description here

Read more on this link : https://fabric.io/kits/ios/crashlytics/install