【问题标题】:Trouble using CocoaPods in project在项目中使用 CocoaPods 时遇到问题
【发布时间】:2013-11-03 00:31:21
【问题描述】:

我是 IOS 开发的新手,我正在尝试使用 this 教程通过 cocoapods 进行 Restkit,但没有成功。我收到以下错误:

Ld /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator/EZ-POINT.app/EZ-POINT normal i386
    cd /Users/noor/Documents/Apps/EZ-POINT.BK
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator -F/Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator -filelist /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Intermediates/EZ-POINT.build/Debug-iphonesimulator/EZ-POINT.build/Objects-normal/i386/EZ-POINT.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework CFNetwork -framework CoreData -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lPods -o /Users/noor/Library/Developer/Xcode/DerivedData/EZ-POINT-cltwbuksnzhbqpabqekhgkzqspjw/Build/Products/Debug-iphonesimulator/EZ-POINT.app/EZ-POINT

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有什么建议吗?

【问题讨论】:

  • 似乎“Pods”库不在您的库搜索路径中。检查您正在构建的目标的构建设置,并确保可以通过库搜索路径找到 Pods 库。

标签: restkit cocoapods


【解决方案1】:

你应该通过.xcworkspace而不是.xproject打开你的项目:-)

此外,我发现this one 可能会帮助您解决问题

【讨论】:

    【解决方案2】:

    你应该阅读这个,你需要一个工作空间,而不是一个项目http://docs.cocoapods.org/guides/integrating_a_project.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-29
      • 1970-01-01
      • 2015-04-09
      • 1970-01-01
      • 1970-01-01
      • 2018-03-03
      • 1970-01-01
      • 2014-10-19
      相关资源
      最近更新 更多