Max$pod install/System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr/local/bin in PATH,mode 040777/System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'from /library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:3:in `<top (required)>'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj.rb:30:in `<top (required)>'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods.rb:2:in `<top (required)>'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /System/library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'from /library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod:32:in `<top (required)>'from /usr/bin/pod:23:in `load'from /usr/bin/pod:23:in `<main>'
我使用的是Mac OS 10.10(Yosemite beta版)和Xcode 6.0 beta2,但我回想起当我使用Mavericks和Xcode 5.1.1时,我遇到了同样的问题.
解决方法 我终于解决了我的问题.简短回答:
我不得不安装ruby 2.1.2,然后重新安装cocoapods,一切正常.
答案很长:
>解决brew医生的所有警告;
>删除未使用的库;
>删除MacPorts;
>解决我已经不记得的其他警告;
>我甚至可能重新安装了brew.
>安装rvm;
>安装&使用ruby 2.1.2使用rvm;
> rvm要求抱怨许多丢失的包,安装它们;
>其中,有gcc46,我无法安装.在Xcode 4.2之后,命令行工具没有gcc.因此,如果rvm要求找不到,则建议使用gcc46.但重点是,安装brew install apple-gcc42解决了这个问题. rvm要求停止抱怨,你可以安装ruby 2.1.2:
> rvm install 2.1.2;
> rvm使用2.1.2;
>按照@Varsha Vijayvargiya的answer中的建议安装cocoapods.
我可能会忘记一些事情,所以如果你有任何问题 – 请问.以下是一些帮助我的链接:
> update mac osx to 10.10 and pod cannot work;
> Installing Ruby 2.0.0 with RVM and Homebrew on Mac OS X 10.8 Mountain Lion;
> Homebrew GCC won’t install on OS X 10.10 Yosemite with Xcode 6;
> Installing gcc on Mavericks.
以上是内存溢出为你收集整理的ruby – 无法让CocoaPods正常工作全部内容,希望文章能够帮你解决ruby – 无法让CocoaPods正常工作所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)