How can I remove crashlytics from my iOS app?

谁说胖子不能爱 提交于 2019-12-04 17:29:55

问题


I need to remove crashlytics from my iOS app, as am using STTwitter API to get user's Twitter credentials from the phone. This used to work fine on my device, but now I can't get the credentials for some reason, after some digging I found that I can still get the credentials on the simulator and since crashlytics doesn't work with the simulator am sensing the problem is with it, specially that there's this badge on Fabric mac app which indicates that crashlytics needs to be updated but even after I update it still I can not get the credentials and this "update badge" is back on after a while.


回答1:


I can't say that removing crashlytics will solve your problem, but here's how you would do it:

1) Look in your AppDelegate file. Look in the didFinishLaunchingWithOptions method. Remove the line Crashlytics.startWithAPIKey("abc123")

2) Goto your build phases in Xcode for your target. Find the shell script that looks like ./Pods/CrashlyticsFramework/Crashlytics.framework/run somelongstringhere and remove it

3) Find the crashlytics framework in your navigation panel of Xcode right click and either remove the reference or delete it all together. If you installed via cocoa pods then remove it from your podfile.

4) Delete the crashlytics app from your system if you so desire by looking in your applications folder.



来源:https://stackoverflow.com/questions/30314277/how-can-i-remove-crashlytics-from-my-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!