我创建了一个新的 XCode 项目并在该项目退出的地方运行了 pod init
。我收到以下错误。
/Users/xxx/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require': incompatible library version - /Users/xxx/.rvm/gems/ruby-2.3.0/gems/json-2.0.2/lib/json/ext/parser.bundle (fatal)
我没有对我的项目进行任何修改。错误来自哪里?好像是从ruby过来的,但是在XCode项目上出现ruby错误很奇怪。有谁知道如何解决这个问题? 谢谢,
最佳答案
似乎是您的 Cocoapods 安装有问题,请尝试 uninstalling并重新安装它。
正在卸载
gem uninstall cocoapods
gem uninstall cocoapods-core
gem uninstall cocoapods-downloader
重新安装
gem install cocoapods
关于ios - XCode: 'pod init' ruby json "incompatible library version"错误失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40324331/