在 Xcode 中找不到 iOS 设备的库错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12435049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Library Not found error for iOS Device in Xcode
提问by DeviPhone26
I am trying to run my app on device but it is giving error for device working fine for iPhone simulator.
我正在尝试在设备上运行我的应用程序,但它为 iPhone 模拟器工作正常的设备提供了错误。
ld: warning: directory not found for option '-L/Users/Documents/TEST/../CorePlotDemo/CorePlotDemo'
ld: warning: directory not found for option '-L/Users/TEST/../CorePlotDemo/CorePlotDemo'
ld: library not found for -lsqlite3.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How To solve this error, I also tried with Library Search Path but not working .
如何解决此错误,我也尝试使用 Library Search Path 但不起作用。
回答by Rajneesh071
Add library libCorePlot-CocoaTouch.a
添加库 libCorePlot-CocoaTouch.a
And set path in build Setting -> Search Path -> Library Search Path -> $(inherited) "$(SRCROOT)/Libs/CorePlot"
并在 build Setting -> Search Path -> Library Search Path -> $(inherited) "$(SRCROOT)/Libs/CorePlot" 中设置路径
This is the path of libCorePlot-CocoaTouch.a.
这是libCorePlot-CocoaTouch.a的路径。