【问题标题】:Linking error in xcode while loading it to the device将xcode加载到设备时链接错误
【发布时间】:2012-03-10 16:41:45
【问题描述】:

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

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

我做错了什么。

【问题讨论】:

    标签: objective-c ios-simulator device


    【解决方案1】:

    也许没有为目标架构构建 CorePlot 库?例如,如果您同时为 armv6 和 armv7 构建,而 CorePlot 仅为 armv7 构建,您将收到此错误。查看目标的架构构建设置。

    【讨论】:

    • 即使对于 CorePlot 库,架构也设置为 armv6 和 armv7。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-08
    • 2013-10-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多