本文介绍了椰子足完全破裂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始:我正在使用Cocoapods 0.37.2,针对iOS 8.3的XCode 6.3.1编译

To start: I'm using Cocoapods 0.37.2, XCode 6.3.1 compiling for iOS 8.3

在运行基本的 pod之前,我的项目运行良好更新,现在它完全拒绝编译。我非常肯定这与豆荚本身无关。具体来说,我得到的错误是:

My project worked just fine before I ran a basic "pod update" now it's completely refusing to compile. I'm quite positive this has nothing to do with the pods themselves. Specifically the error I'm getting is this:

ld: warning: directory not found for option '-F/Users/user_name/Library/Developer/Xcode/DerivedData/AppName-bjozswzeepmhacfkeimeepxzcxgb/Build/Products/Debug-iphoneos/include'
ld: library not found for -lPods-AppName-AFNetworking

Podfile是这样的:

Podfile is this:

# Uncomment this line to define a global platform for your project
platform :ios, "8.0"

def shared_pods
    pod 'SocketRocket'
    pod 'AFNetworking'
    pod 'DateTools'
    pod 'Spotify-iOS-SDK'
end

target "AppName" do
    shared_pods
end

target "AppNameTests" do
    shared_pods
end

我已经清除了DerivedData(很多次),清理了我的构建,重新启动了XCode,重新启动了我的机器,我确保正确设置了我的配置文件和链接器配置列表。我已经使用Cocoapods多年了,从来没有遇到这么多麻烦。

I have cleared DerivedData (many many times), cleaned my builds, restarted XCode, restarted my machine, I have ensured my config files and linker config lists are set up correctly. I've been using Cocoapods for years and never had this much trouble.

完全沮丧和困惑……质疑理智。

Completely frustrated and confused... questioning sanity.

有帮助吗?

推荐答案

来自CocoaPods的信息。希望这对您有所帮助。

Information from CocoaPods troubleshooting doc. Hope this helps you.


  • 转到产品>编辑方案

  • 单击Build

  • 添加Pods静态
    库,并确保它位于列表顶部

  • 清理并再次构建

  • 如果这不起作用,请验证您
    尝试包含的规范的来源是否已从GitHub提取。通过在/ Pods /中查找
    来执行此操作。如果
    为空(不应为空),请验证
    〜/ .cocoapods / master //。podspec中是否包含正确的git hub url

  • 如果仍然无法使用,请检查您的Xcode构建位置
    设置。转到首选项->位置->派生数据->高级
    ,并将构建位置设置为相对于工作区。

  • Go to Product > Edit Scheme
  • Click on Build
  • Add the Pods static library, and make sure it's at the top of the list
  • Clean and build again
  • If that doesn't work, verify that the source for the spec you are trying to include has been pulled from GitHub. Do this by looking in /Pods/. If it is empty (it should not be), verify that the ~/.cocoapods/master//.podspec has the correct git hub url in it.
  • If still doesn't work, check your Xcode build locations settings. Go to Preferences -> Locations -> Derived Data -> Advanced and set build location to "Relative to Workspace".

这篇关于椰子足完全破裂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 16:03