Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...