Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

xcode - Crashlytics file not found

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>

The error reads:

'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.

Any suggestions why?

Xcode: 4.6.3 Mac OS X: 10.8.4

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just add $(SRCROOT) to the Framework Search Paths in Project Build Settings (Search Paths).

Crashlytics installation process drops its Crashlytics.framework to your project folder (or creates the symlink).

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)/Path/to/the/folder/containing/Crashlytics.framework


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...