Cocoapods没有这样的文件加载错误 [英] Cocoapods No such file to load Error

查看:74
本文介绍了Cocoapods没有这样的文件加载错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将pod添加到我的xcode项目中。我收到此错误:

I am trying to add a pod to my xcode project. I am getting this error:


LoadError - 没有要加载的文件 - xcodeproj / prebuilt / universal-darwin13.0-1.8.7 / xcodeproj_ext
/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require'
/Library/Ruby/Site/1.8/rubygems/core_ext /kernel_require.rb:55:in
需要'
/Library/Ruby/Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/ext.rb:6
/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require'
/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb: 55:in
require'
/Library/Ruby/Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/project.rb:4
/ Library / Ruby /Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:488:in compute_target_platforms'
/Library/Ruby/Gems/1.8/gems/cocoapods -0.27.1 / lib / cocoapods / installer / analyzer.rb:485:in
每个'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/的CocoaPods / I nstaller / analyzer.rb:485:在 compute_target_platforms'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:55:在
中分析'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:171:in analyze'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:94:in
resolve_dependencies'
/ Library / Ruby / Gems / 1.8 / gems / cocoapods-0.27.1 / lib / cocoapods / user_interface.rb:52:in section'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27。 1 / lib / cocoapods / installer.rb:93:in
resolve_dependencies'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb :86:在安装!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:38:in
run_install_with_update'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:68:in run'
/Library/Ruby/Gems/1.8/gems/claide-0.3.2/lib/clai de / command.rb:206:in
运行'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in 运行'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/bin/pod:19
/ usr / bin / pod:23:in
load'
/ usr / bin / pod:23

LoadError - no such file to load -- xcodeproj/prebuilt/universal-darwin13.0-1.8.7/xcodeproj_ext /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:inrequire' /Library/Ruby/Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/ext.rb:6 /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:inrequire' /Library/Ruby/Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/project.rb:4 /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:488:in compute_target_platforms' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:ineach' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:485:in compute_target_platforms' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer/analyzer.rb:55:inanalyze' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:171:in analyze' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:94:inresolve_dependencies' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/user_interface.rb:52:in section' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:93:inresolve_dependencies' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/installer.rb:86:in install!' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:38:inrun_install_with_update' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command/project.rb:68:in run' /Library/Ruby/Gems/1.8/gems/claide-0.3.2/lib/claide/command.rb:206:inrun' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/lib/cocoapods/command.rb:51:in run' /Library/Ruby/Gems/1.8/gems/cocoapods-0.27.1/bin/pod:19 /usr/bin/pod:23:inload' /usr/bin/pod:23

我的podfile内容:

My podfile contents:

pod 'RestKit', '~> 0.21.0'

任何帮助都将不胜感激!

Any help would be appreciated!

推荐答案

我也看到了这个。运行此操作修复了问题:

I also was seeing this. Running this fixed the issue:

sudo gem install cocoapods && pod install

这篇关于Cocoapods没有这样的文件加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆