问题描述
最近打开了一个我已经编译并提交给Apple的项目。
Recently opened a project that I had compiled and submitted to Apple.
我已经几个月没碰过它了,但是我得到了这个奇怪的编译器错误出现在:
I haven't touched it for a couple of months but I'm getting this odd compile error at:
#import <Crashlytics/Crashlytics.h>
错误为:
'Crashlytics/Crashlytics.h' file not found
很明显,框架可以找不到,但我对为什么为什么感到困惑,为什么几个月前该项目开始运作,却突然停止了。
Clearly the framework can't be found but I'm puzzled as to why, when the project was working a few months ago, it's suddenly stopped.
任何建议为什么?
Xcode:4.6.3
Mac OS X:10.8.4
Xcode: 4.6.3Mac OS X: 10.8.4
推荐答案
只需将 $(SRCROOT)
添加到框架项目构建设置(搜索路径)中的搜索路径。
Crashlytics安装过程会删除其 Crashlytics.framework
到项目文件夹中(或创建符号链接)。
Crashlytics installation process drops its Crashlytics.framework
to your project folder (or creates the symlink).
如果您将Crashlytics.framework移到了项目文件夹层次结构中的更深的位置,请在递归右侧设置或直接指向标头搜索路径
中的父文件夹:
If you moved Crashlytics.framework somewhere deeper in the project folder hierarchy - set 'recursive' to the right or just point directly to its parent folder in Header Search Paths
:
$(SRCROOT)/路径/到/文件夹/包含/Crashlytics.framework
这篇关于找不到Crashlytics文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!