24
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Xcode7 で pod install で ASSERTION FAILURE が発生した時の対処法

Last updated at Posted at 2015-09-17

iOS9 が公開され、開発環境も Xcode7 にアップデート作業を始めている方が多いと思います。

Xcode7 にアップデートして既存のプロジェクトで pod install を実行したところ下記のようなエラーに遭遇しましたので対処法をメモ。

2015-09-17 13:10:30.154 ruby[55564:7519635] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590
Details:  Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread:   <NSThread: 0x7f8b6309c020>{number = 1, name = main}
Hints: None
Backtrace:
  0  0x0000000104545a5c -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x00000001045451e9 _DVTAssertionHandler (in DVTFoundation)
  2  0x0000000104545455 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x00000001045453b7 _DVTAssertionFailureHandler (in DVTFoundation)
  4  0x0000000105a42f5c IDEIsInitializedForUserInteraction (in IDEFoundation)
  5  0x000000010869aeb9 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
  6  0x000000010869ca3e +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
  7  0x00007fff8624bf44 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6

対処法

command line のパスが不適切になっていると発生するようです(Xcode beta と共存してた時など)。下記コマンドでパスをリセットします。

sudo xcode-select -r

上記コマンド実行後、ターミナルを新たに開くと pod install が成功しました。

参考:
https://github.com/CocoaPods/CocoaPods/issues/3723

24
24
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
24

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?