开发者

Xcode: Library file not found in existing project, where is it expected?

开发者 https://www.devze.com 2023-04-12 12:06 出处:网络
I am currently working into an existing project that uses the SS Toolkit. The previous developer told me he had one folder in his home library folder called sstoolkit where he had the SS Toolkit file

I am currently working into an existing project that uses the SS Toolkit. The previous developer told me he had one folder in his home library folder called sstoolkit where he had the SS Toolkit files. I downloaded the latest version of SS Toolkit and copied it to ~/Library/ss 开发者_JAVA技巧toolkit/ as it was suggested.

However, Xcode still complains with the error message:

#import <sstoolkit/SSLoadingView.h> <---- here is the error:

sstoolkit/SSLoadingView.h File not found.

How can I find the information where Xcode expects the files to be located?! My plan is just to look up where XCode searches for the file and the to copy it there.

Thanks for your help and best regards.


You need to make sure Header Search Path points to the folder containing SSToolkit. Note that SSToolkit should contain a folder named SSToolkit.

In your example you have SSToolkit in ~/Library/SSToolkit. SSLoadingView.h should exist at ~/Library/SSToolkit/SSToolkit/SSLoadingView.h and your Header Search Path should be ~/Library/SSToolkit.

Also, I would strongly recommend placing SSToolkit in your project's directory so you can be sure you have the version you are expecting in each project as well as have it in your version control. See http://sstoolk.it for instructions on how to add it as a git submodule. That is the recommended workflow.

Hopefully that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消