Xcode:在现有项目中找不到库文件,它在哪里?
我目前正在研究一个使用 SS Toolkit 的现有项目。 前一位开发人员告诉我,他的主库文件夹中有一个名为 sstoolkit 的文件夹,其中包含 SS Toolkit 文件。 我下载了最新版本的 SS Toolkit 并将其复制到 ~/Library/ss toolkit/ 作为建议。
然而,Xcode 仍然抱怨错误消息:
#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?!我的计划只是查找 XCode 搜索文件的位置并将其复制到那里。
感谢您的帮助和最诚挚的问候。
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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要确保标题搜索路径指向包含 SSToolkit 的文件夹。请注意,SSToolkit 应包含名为
SSToolkit
的文件夹。在您的示例中,您在
~/Library/SSToolkit
中有 SSToolkit。SSLoadingView.h
应存在于~/Library/SSToolkit/SSToolkit/SSLoadingView.h
中,并且您的标题搜索路径应为~/库/SSToolkit
。另外,我强烈建议将 SSToolkit 放在您的项目目录中,这样您就可以确保每个项目都有您期望的版本,并将其包含在您的版本控制中。有关如何将其添加为 git 子模块的说明,请参阅 http://sstoolk.it。这是推荐的工作流程。
希望这有帮助。
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.