Xcode 8 cocoapods abort trap: 6

前端 未结 17 645
佛祖请我去吃肉
佛祖请我去吃肉 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:10

    I tried all this things but none of them worked for me, this one did:

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

    update your ruby version to 2.4 then uninstall cocoapods and install it.

    0 讨论(0)
  • 2020-12-13 12:15

    download xcode8-beta.

    localhost:Applications haiwang$ sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
        localhost:Applications haiwang$ xcode-select -p /Applications/Xcode-beta.app/Contents/Developer
    
    Please close any current Xcode sessions and use `PodTest7.xcworkspace` for this project from now on.
    

    It is OK.

    0 讨论(0)
  • 2020-12-13 12:17

    It's problem with ruby in version 2.0.0 and cocoapods 1.1.1, so if you won't use prerelease version of cocoapods, just update your ruby version for example with rvm:

    \curl -sSL https://get.rvm.io | bash -s stable

    Remember: After install of new ruby you need to install all gems one more time.

    0 讨论(0)
  • 2020-12-13 12:18

    This should definitely help you.

    However I'm not pleased with the previous version of Cocoapods as it has a few other issues.

     gem uninstall cocoapods
     sudo gem install -n /usr/local/bin cocoapods
    
    0 讨论(0)
  • 2020-12-13 12:20

    Uninstall the cocoapods and reinstall:

    gem uninstall cocoapods
    
    gem install cocoapods
    
    0 讨论(0)
提交回复
热议问题