将 xcode 加载到设备时出现链接错误
我能够在模拟器中运行我的项目,它工作正常并且没有给出任何错误,但是当我尝试在设备中运行相同的应用程序时,即在归档时,它显示以下错误,
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许 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.