ios – Cocoapods完全破产

ios – Cocoapods完全破产,第1张

概述首先:我正在使用 Cocoapods 0.37.2,XCode 6.3.1编译iOS 8.3 在我运行基本的“pod update”之前,我的项目运行得很好,现在它完全拒绝编译.我非常肯定这与豆荚本身无关.具体来说,我得到的错误是这样的: ld: warning: directory not found for option '-F/Users/user_name/Library/Develope 首先:我正在使用 Cocoapods 0.37.2,XCode 6.3.1编译iOS 8.3

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

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是这样的:

# Uncomment this line to define a global platform for your projectplatform :ios,"8.0"def shared_pods    pod 'SocketRocket'    pod 'AFNetworking'    pod 'Datetools'    pod 'Spotify-iOS-SDK'endtarget "Appname" do    shared_podsendtarget "AppnameTests" do    shared_podsend

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

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

有帮助吗?

解决方法 来自CocoaPods troubleshooting doc的信息.希望这对您有所帮助.

If Xcode complains when linking,e.g. library not found for -lPods,it
doesn’t detect the implicit dependencIEs:

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”.
总结

以上是内存溢出为你收集整理的ios – Cocoapods完全破产全部内容,希望文章能够帮你解决ios – Cocoapods完全破产所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1005379.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存