gpt4 book ai didi

xcode - Cocoapods 与 Xcode 6 和 10.10 Yosemite

转载 作者:行者123 更新时间:2023-12-03 05:20:58 26 4
gpt4 key购买 nike

最初升级到 10.10 和 XCode6-Beta 后,我尝试运行“pod update”,但收到此错误:

cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)

我尝试使用“sudo gem install cocoapods”更新 Cocoapods,但收到另一个错误:

Fetching: xcodeproj-0.17.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.

"/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby" -rubygems /Library/Ruby/Gems/2.0.0/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/ext RUBYLIBDIR=/Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/ext
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for -std=c99 option to compiler... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

还有其他人能够在 10.10 Yosemite 上成功使用 Cocoapods 和 Xcode 6 吗?

最佳答案

  1. 打开 Xcode 6
  2. 打开偏好设置
  3. 点击“位置”选项卡
  4. 命令行工具版本更改为Xcode 6.0
  5. 卸载 cocoapods
    $ sudo gem uninstall cocoapods
  6. 卸载 xcodeproj$ sudo gem uninstall xcodeproj
  7. 安装xcodeproj
    $ sudo gem install xcodeproj
  8. 安装 cocoapods
    $ sudo gem install cocoapods
  9. 运行 pod --version 以验证其是否有效

关于xcode - Cocoapods 与 Xcode 6 和 10.10 Yosemite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24018355/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com