[英]How can I remove crashlytics from my iOS app?
I need to remove crashlytics from my iOS app, as am using STTwitter API to get user's Twitter credentials from the phone. 我需要从iOS应用程序中删除crashlytics,因为我正在使用STTwitter API从手机获取用户的Twitter凭据。 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. 这曾经在我的设备上正常工作,但是现在由于某些原因我无法获得凭据,经过一些挖掘我发现我仍然可以在模拟器上获取凭据,因为crashlytics无法使用模拟器感应到问题在于它,特别是在Fabric mac app上有这个徽章,表明需要更新crashlytics但是即使我更新后仍然无法获得凭据,这个“更新徽章”会在一段时间后重新开启。
I can't say that removing crashlytics will solve your problem, but here's how you would do it: 我不能说删除crashlytics会解决你的问题,但这是你要怎么做的:
1) Look in your AppDelegate
file. 1)查看AppDelegate
文件。 Look in the didFinishLaunchingWithOptions
method. 查看didFinishLaunchingWithOptions
方法。 Remove the line Crashlytics.startWithAPIKey("abc123")
删除Crashlytics.startWithAPIKey("abc123")
2) Goto your build phases in Xcode for your target. 2)在Xcode中为您的目标转到构建阶段。 Find the shell script that looks like ./Pods/CrashlyticsFramework/Crashlytics.framework/run somelongstringhere
and remove it 找到看起来像./Pods/CrashlyticsFramework/Crashlytics.framework/run somelongstringhere
的shell脚本并将其删除
3) Find the crashlytics framework in your navigation panel of Xcode right click and either remove the reference or delete it all together. 3)右键单击Xcode导航面板中的crashlytics框架,删除引用或将其全部删除。 If you installed via cocoa pods then remove it from your podfile. 如果您通过可可豆荚安装,则将其从您的podfile中删除。
4) Delete the crashlytics app from your system if you so desire by looking in your applications folder. 4)如果您愿意,可以通过查看应用程序文件夹从系统中删除crashlytics应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.