Xcode 8 cocoapods abort trap: 6

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

    I ran into this error when I installed cocoapods with brew.

    running brew uninstall cocoapods then sudo gem install cocoapods fixed the issue.

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

    I'm having the same issue with Cocoapods 1.1.1 on rvm ruby (tried 2.2.4p230, and 2.0.0p648 which is the equal to system ruby version), with Xcode 8.1 (8B62), macOS 10.12.1 (16B2657), and only thing that helps me is updating to Cocoapods 1.2.0.beta.1, or using system ruby:

    $ rvm system do pod install
    

    and of course if you don't have cocoapods installed in system gemset:

    $ sudo rvm system do gem install cocoapods
    
    0 讨论(0)
  • 2020-12-13 12:24

    If you are an using old version of cocoapods and an old version of xCode you may find after updating to new cocoapods version it complains about your Podfile syntax.

    In this situation, another alternative to solve the problem is to keep using the old cocoapods version and set the path to the old xCode version so that cocoapods uses old xctools versions for workspace modifications.

    i.e. don't update cocoapods (keep using old version - e.g. 0.39.0) and instead run this command to point to different Xcode version:

    sudo xcode-select --switch "path to old version of Xcode.app"
    
    0 讨论(0)
  • 2020-12-13 12:25

    For me, I solved this issue by uninstalling and then again installing CocoaPods with --pre with the command

    sudo gem uninstall cocoapods
    
    sudo gem install cocoapods --pre
    

    Hopefully this will solve your problem.

    Update

    CocoaPods has released version 1.2.0, so you can now install using

    sudo gem install cocoapods
    

    And you will get version 1.2.0 installed

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

    My fix, little bit less work: I removed the workspace and just run pod setup and pod install again.

    No more warnings :)

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

    I made it work using Cocoapods 1.1.1 with Xcode 8.1 on macOS 10.12.1 (the one with TouchBar support) by removing generated workspace, running pod deintegrate and running pod install again.

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