Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashlytics Framework doesn't detect the Info plist on iOS

I am trying to add Crashlytics framework in my project, however, when I go through the process and reach the point where I add the framework to the project. The "Fabric" script plugin on the Mac doesn't detect that the frame work has been add to the project, and I think because the it doesn't detect the Info.plist in my project as I have changed the name of the Info.plist to something else. I have tried to change it back to Info.plist but still doesn't work. How can I make the framework to detect the info.plist in my project.

Thanks

like image 906
Ofcourse Avatar asked May 26 '15 21:05

Ofcourse


4 Answers

Xcode 10 only:

Add your app's built Info.plist location to the Build Phase's Input Files field:

$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
like image 189
Nullify Avatar answered Oct 23 '22 19:10

Nullify


Move the RunScript in Target -> Build Phase to the last and give it a try:

enter image description here

like image 30
sherin s Avatar answered Oct 23 '22 18:10

sherin s


I'm not sure if what I encountered was the same thing, but when trying to archive my project, I received the following error:

❌ error: Fabric: Info.plist Error

I poked through the output in XCode which mentioned it could be a timing issue and to make sure that I made the "Fabric" build phase one of the last build phases. So I updated the XCode configuration and made the Fabric step run just before the "Upload Symbols to Fabric" step, and this cleared up the issue. See the image below.

XCode Build Phases

like image 29
Eric Internicola Avatar answered Oct 23 '22 18:10

Eric Internicola


Set absolute path of Info.plist in "Input Files"

  • Add/Change "Input Files" value in Run Script added for Fabric under "Build Phases"
  • From "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)" To "new path*/Info.plist"

*new path: You can also get Info.plist path from Build Settings -> Packaging -> Info.plist File

Plist file path

like image 38
Bhavik Modi Avatar answered Oct 23 '22 20:10

Bhavik Modi