Xcode 8 cocoapods abort trap: 6

前端 未结 17 646
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 12:01
localhost:PodTest3 haiwang$ pod install
Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9.2)
Installing Masonry (1.0.2)
Generating Pods p         


        
相关标签:
17条回答
  • 2020-12-13 12:30

    Run this in the terminal:

    sudo gem install xcodeproj
    
    0 讨论(0)
  • 2020-12-13 12:32

    You can easily solve this issue using the follow command:

    gem update cocoapods
    
    0 讨论(0)
  • 2020-12-13 12:34

    If the simple uninstall by @haider_kazal doesn't work like it didn't for me, try to install RVM with ruby 2.5.5, then purge CocoaPods completely:

    gem uninstall cocoapods
    gem uninstall cocoapods-core
    gem uninstall cocoapods-deintegrate
    gem uninstall cocoapods-downloader
    gem uninstall cocoapods-plugins
    gem uninstall cocoapods-search
    gem uninstall cocoapods-stats
    gem uninstall cocoapods-try
    gem uninstall cocoapods-trunk
    

    And then install once again:

    gem install cocoapods --pre
    
    0 讨论(0)
  • 2020-12-13 12:35

    This is the perfect solution when you are receiving the "Operation not permitted" error or xcode8 cocoapods abort trap:6.

    Custom GEM_HOME

    $ mkdir -p $HOME/Software/ruby
    $ export GEM_HOME=$HOME/Software/ruby
    $ gem install cocoapods
    [...]
    1 gem installed
    $ export PATH=$PATH:$HOME/Software/ruby/bin
    $ pod --version
    1.1.1
    
    0 讨论(0)
  • 2020-12-13 12:35

    I solved this issue by updating the ruby with \curl -sSL https://get.rvm.io | bash -s stable --ruby.

    0 讨论(0)
提交回复
热议问题