Xcode8 Cocoapods 失敗された


問題

こちらの記事を参考にして、 cocoapods を使おうとしてたら、
以下のようエラーが出ていて、 workspaceが作られませんでした。


$pod install --no-repo-update
Analyzing dependencies
Pre-downloading: `NCMB` from `https://github.com/NIFTYCloud-mbaas/ncmb_ios.git`
Downloading dependencies
Installing NCMB (2.3.4)

Generating Pods project
Abort trap: 6

解決

参考:http://stackoverflow.com/questions/39980096/xcode8-cocoapods-abort-trap6

1 uninstall cocoapods

sudo gem uninstall cocoapods
Password:

Select gem to uninstall:
 1. cocoapods-0.39.0
 2. cocoapods-1.0.1
 3. All versions
>  3
Successfully uninstalled cocoapods-0.39.0
Remove executables:
    pod, sandbox-pod

in addition to the gem? [Yn]  Y
Removing pod
Removing sandbox-pod
Successfully uninstalled cocoapods-1.0.1

2 reinstall cocoapods

$ sudo gem install cocoapods
Password:

Fetching: cocoapods-core-1.2.0.gem (100%)
Successfully installed cocoapods-core-1.2.0
Fetching: claide-1.0.1.gem (100%)
Successfully installed claide-1.0.1
Fetching: cocoapods-downloader-1.1.3.gem (100%)
Successfully installed cocoapods-downloader-1.1.3
Fetching: cocoapods-trunk-1.1.2.gem (100%)
Successfully installed cocoapods-trunk-1.1.2
Fetching: molinillo-0.5.6.gem (100%)
Successfully installed molinillo-0.5.6
Fetching: CFPropertyList-2.3.5.gem (100%)
Successfully installed CFPropertyList-2.3.5
Fetching: nanaimo-0.2.3.gem (100%)
Successfully installed nanaimo-0.2.3
Fetching: xcodeproj-1.4.2.gem (100%)
Successfully installed xcodeproj-1.4.2
Fetching: fourflusher-2.0.1.gem (100%)
Successfully installed fourflusher-2.0.1
Fetching: gh_inspector-1.0.3.gem (100%)
Successfully installed gh_inspector-1.0.3
Fetching: ruby-macho-0.2.6.gem (100%)
Successfully installed ruby-macho-0.2.6
Fetching: cocoapods-1.2.0.gem (100%)
Successfully installed cocoapods-1.2.0
Parsing documentation for cocoapods-core-1.2.0
Installing ri documentation for cocoapods-core-1.2.0
Parsing documentation for claide-1.0.1
Installing ri documentation for claide-1.0.1
Parsing documentation for cocoapods-downloader-1.1.3
Installing ri documentation for cocoapods-downloader-1.1.3
Parsing documentation for cocoapods-trunk-1.1.2
Installing ri documentation for cocoapods-trunk-1.1.2
Parsing documentation for molinillo-0.5.6
Installing ri documentation for molinillo-0.5.6
Parsing documentation for CFPropertyList-2.3.5
Installing ri documentation for CFPropertyList-2.3.5
Parsing documentation for nanaimo-0.2.3
Installing ri documentation for nanaimo-0.2.3
Parsing documentation for xcodeproj-1.4.2
Installing ri documentation for xcodeproj-1.4.2
Parsing documentation for fourflusher-2.0.1
Installing ri documentation for fourflusher-2.0.1
Parsing documentation for gh_inspector-1.0.3
Installing ri documentation for gh_inspector-1.0.3
Parsing documentation for ruby-macho-0.2.6
Installing ri documentation for ruby-macho-0.2.6
Parsing documentation for cocoapods-1.2.0
Installing ri documentation for cocoapods-1.2.0
Done installing documentation for cocoapods-core, claide, cocoapods-downloader, cocoapods-trunk, molinillo, CFPropertyList, nanaimo, xcodeproj, fourflusher, gh_inspector, ruby-macho, cocoapods after 16 seconds
12 gems installed

3 Try again

pod install --no-repo-update
Analyzing dependencies
Downloading dependencies
Using NCMB (2.3.4)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

SUCCESSFULL!