[英]Library not found for
I'm working on an application in which I need to use CorePlot
. 我正在开发需要使用
CorePlot
的应用程序。 I downloaded the last version of it, and added the CorePlot
headers folder and lib.a
file to my project. 我下载了它的最新版本,并将
CorePlot
标头文件夹和lib.a
文件添加到了我的项目中。
I correctly add 我正确添加
#import "CorePlot-CocoaTouch.h"
in my view controller, and remove the library search path and framework search path from my project. 在我的视图控制器中,并从我的项目中删除库搜索路径和框架搜索路径。
However, I still have the error: 但是,我仍然有错误:
ld: library not found for -lCorePlot-CocoaTouch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What would be the problem be? 这是什么问题?
Thanks for your help 谢谢你的帮助
I had the same error and I found out that I didn't open the project properly. 我有同样的错误,我发现我没有正确打开项目。 Instead of double clicking on the project.xcodeproj file.
而不是双击project.xcodeproj文件。 Go to Xcode.
转到Xcode。
Go to File > Open and navigate to the root directory of your project. 转到文件>打开,然后导航到项目的根目录。 Press open when the xcode.proj is visible and it should work.
xcode.proj可见时按打开,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.