将 xcode 加载到设备时出现链接错误

发布于 2025-01-07 23:38:45 字数 305 浏览 3 评论 0原文

我能够在模拟器中运行我的项目,它工作正常并且没有给出任何错误,但是当我尝试在设备中运行相同的应用程序时,即在归档时,它显示以下错误,

ld: library not found for -lCorePlot-CocoaTouch
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

什么是我正在做的错误。

I am able to run my project in the simulator and it is working fine and is not giving any errors, but when i am trying to run the same application in the device, i.e while archieve, it is showing the following error,

ld: library not found for -lCorePlot-CocoaTouch
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

What is the mistake i am doing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与君绝 2025-01-14 23:38:45

也许 CorePlot 库不是为目标架构构建的?例如,如果您同时为armv6和armv7构建而CorePlot仅针对armv7构建,您将收到此错误。请参阅您的目标的架构构建设置。

Maybe the CorePlot library is not being built for the target architecture? For example, if you are building both for armv6 and armv7 and CorePlot is only being built for armv7, you would get this error. See the architecture build settings for your targets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文