Welcome to OStack Knowledge Sharing 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...