[英]How to link third party libraries properly in iOS
I'm new in iOS development, and met this library linking problem in last few days. 我是iOS开发的新手,在最近几天遇到了这个库连接问题。
I was trying to use GMGridView in a project, but cannot make it working. 我试图在项目中使用GMGridView ,但无法使其工作。
This project is shipped as static library, so I just drag the xcodeproj file in my project. 这个项目是作为静态库提供的,所以我只需在项目中拖动xcodeproj文件。 Then I added libGMGridView.a in Link Binary With Libraries, GMGridView in Target Dependencies .
然后我在Link Binary With Libraries中添加了libGMGridView.a ,在Target Dependencies中添加了GMGridView。 I also added the path in Header Search Paths .
我还在标题搜索路径中添加了路径 。
However, Xcode still report .h file not found error when I tried to import GMGridView.h. 但是,当我尝试导入GMGridView.h时,Xcode仍然报告.h文件未找到错误。
Could anyone give me a hand on this? 有人能帮我一把吗? Thanks in advance!
提前致谢!
Had the same issue!!! 有同样的问题!!! Made it work!!!!
让它工作!!!! soooooooo:
soooooooo:
import should be: 进口应该是:
#import "GMGridView.h"
#import <QuartzCore/QuartzCore.h>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.