链接路径信息从哪里生成?
当我编译 iPhone 应用程序时,出现很多错误,但对我来说最明显的错误是此链接错误:
ld: warning: directory '/Users/username/Documents/iPhone/MyAppName/../../core-plot/framework/build/Debug-iphonesimulator' following -L not found
我知道上述路径是错误的。
正确的路径是:
/Users/username/Documents/iPhone/MyAppName/../core-plot/framework/build/Debug-iphonesimulator
我很想指向正确的位置,但我不知道这个错误的路径信息来自哪里。 我查看了项目设置和目标设置中的每个字段,但它们是正确的,因为它们使用“../”而不是“../../” 关于我可以在哪里纠正这个问题有什么建议吗? 谢谢。
When I compile my iPhone application I get lots of errors, but the one that looks the most obvious to me is this link error:
ld: warning: directory '/Users/username/Documents/iPhone/MyAppName/../../core-plot/framework/build/Debug-iphonesimulator' following -L not found
I know the above path is wrong.
The correct path is:
/Users/username/Documents/iPhone/MyAppName/../core-plot/framework/build/Debug-iphonesimulator
I'd love to point to the right location, but I have no clue where this wrong path info is coming from.
I have looked at every field in Project Settings and Target Settings but they're correct because they use "../" instead of "../../"
Any suggestions on where I can correct this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正确配置了项目,这应该会自行解决。请遵循核心绘图项目说明关于在 iPhone 应用程序中使用 CorePlot,用屏幕截图进行说明在这里。
简而言之:
-ObjC
添加到“其他链接器标志”应用程序构建配置设置。This should take care of itself if you've correctly configured your project. Follow the core-plot project instructions on using CorePlot in an iPhone app, which are illustrated with screenshots here.
In short:
-ObjC
to the Other Linker Flags application build configuration setting.