Cocoapods: LoadError - no such file to load

前端 未结 6 921
天命终不由人
天命终不由人 2020-12-30 00:59

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

LoadError - no such file to load -- xcodeproj/prebuilt/universal-darwin13.0-1.8.7/

6条回答
  •  萌比男神i
    2020-12-30 01:43

    if you are using 10.10 and are seeing this error (/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:) try this

    Open Xcode 6 > Preferences > Locations
    Command Line Tools version to Xcode 6.0
    Uninstall cocoapods/xcodeproj then re-install.
    
    sudo gem uninstall cocoapods
    sudo gem uninstall xcodeproj
    sudo gem install xcodeproj
    sudo gem install cocoapods
    
    pod --version 
    

提交回复
热议问题