Xcode 6:Fabric Crashlytics更新后找不到“ Answers.h”文件 [英] Xcode 6: 'Answers.h' file not found after Fabric Crashlytics update
问题描述
我正在X-code 6.3.2的情节提要中处理一个Objective-C项目。突然,当我尝试构建时,我得到一个错误:
I was working along in my storyboard in Xcode 6.3.2 on an Objective-C project. All of a sudden when I try to build I get an error:
/.../ Developer / ProjectName / Crashlytics.framework / Headers / Crashlytics.h:14: 9:找不到 Answers.h文件
/.../Developer/ProjectName/Crashlytics.framework/Headers/Crashlytics.h:14:9: 'Answers.h' file not found
我已经安装了Crashlytics,并在我的应用程序中工作了几周。我有它通过Fabric插件运行。我切换了Fabric应用程序,发现它最近更新了Crashlytics。
I've had Crashlytics installed and working in my app for a few weeks. I have it running through the Fabric plugin. I switched over the the Fabric app and noticed it had recently updated Crashlytics.
在Xcode中,如果我去 Source Control-> Commit ...查看我的更改,仅显示我所做的更改-与Crashlytics无关。
In Xcode if I go "Source Control" -> "Commit..." to look at my changes, it only shows the changes I made - which are unrelated to Crashlytics.
还有其他人看到吗?任何人都对恢复和恢复工作的最有效方法有何建议?
Is anyone else seeing this? Anyone have suggestions on the most efficient way to recover and get back to work?
当依赖项更新时,我无法控制我只是有些沮丧。
I'm just a bit frustrated having no control when a dependency updates.
更新:
使项目进入可构建状态,以便我可以保持工作正常后,我暂时从AppDelegate中删除了以下几行:
To get the project to a build-able state so that I can keep working, I temporarily removed the following lines from my AppDelegate:
-
#import< Crashlytics / Crashlytics.h>
-
[Fabric with:@ [CrashlyticsKit]];
#import <Crashlytics/Crashlytics.h>
[Fabric with:@[CrashlyticsKit]];
推荐答案
我最终通过位于 http://support.crashlytics.com/ 。
他们为我提供了一些从项目中删除旧的Crashlytics框架的步骤,然后手动重新安装。我不清楚他是否打算让我通过Finder而不是Xcode删除框架,所以我按照说明进行操作会产生很多副作用(例如,框架最终位于错误的目录中,我有一个无名文件夹在我的桌面上,从ditto命令让他运行了...这导致Time Machine神秘地停止工作,直到我删除了该文件夹)。
They provided me some steps to remove the old Crashlytics framework from my project and then reinstall it manually. It wasn't clear to me that he intended that I remove the framework via Finder instead of Xcode, so my attempt to follow the instructions resulted in a number of side affects (eg framework ended up in the wrong directory, I had a nameless folder on my desktop from a ditto command he had me run...this caused Time Machine to mysteriously stop working until I deleted the folder).
我最终完全删除了Fabric和来自项目的Crashlytics,然后我使用Fabric OSX应用将Crashlytics重新安装到项目中。
I ended up completely removing Fabric and Crashlytics from the project, and then I used the Fabric OSX app to install Crashlytics back into the project. From here the project was working again.
要从该项目中删除Crashlytics和Fabric,我执行了以下操作:
To remove Crashlytics and Fabric from the project, I did the following:
- 通过Xcode从我的项目中删除了Crashlytics.framework和Fabric.framework
- 在项目属性->构建阶段中删除了运行脚本。这可能是可选的。重要的是要验证运行脚本中的唯一ID是否与Fabric重新安装时提供的ID相匹配。
-
在AppDelegate中删除了以下三行。这可能是可选的。
- Deleted Crashlytics.framework and Fabric.framework from my project via Xcode
- Deleted the run script in Project properties -> Build Phases. This may be optional. It's important to verify though that the unique id in the run script matches what Fabric provides upon reinstall.
Deleted the following 3 lines in the AppDelegate. This may be optional. It will need to be replaced upon reinstall.
#import <Fabric/Fabric.h>
#import <Crashlytics/Crashlytics.h>
[Fabric with:@[CrashlyticsKit]];
这篇关于Xcode 6:Fabric Crashlytics更新后找不到“ Answers.h”文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!