Thiago Franco Thiago Franco - 8 months ago 138
iOS Question

Error generating pods project - Pod install

I have a working project that uses cocoa pods. I tried to 'pod install' and got this weird error:

Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `Pods-NIDropDown` iOS 7.0
- Installing target `Pods-SDWebImage` iOS 7.0
- Installing target `Pods-SQCommonUtils` iOS 7.0
- Installing target `Pods` iOS 7.0
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
2015-06-27 01:20:37.359 ruby[3841:138874] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/
Details: Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread: <NSThread: 0x7fedd50822b0>{number = 1, name = main}
Hints: None
0 0x00000001057f7047 -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001057f67d4 _DVTAssertionHandler (in DVTFoundation)
2 0x00000001057f6a40 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x00000001057f69a2 _DVTAssertionFailureHandler (in DVTFoundation)
4 0x0000000106bbf1a9 IDEIsInitializedForUserInteraction (in IDEFoundation)
5 0x000000010ab2ea5d +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
6 0x000000010ab305e2 +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
7 0x00007fff9262af44 ffi_call_unix64 (in libffi.dylib)
Abort trap: 6

No idea why i got a error Writing Xcode project file to
. I've tried reinstall cocoa pods, but not succeed.

I'm kind of noob with iOS development, so any tips would be nice.


I was having this problem working with Xcode 7 beta 2. Setting xcode-select back to the released version of Xcode helped me.

Try running this in terminal:

sudo xcode-select -s /Applications/

Then try your CocoaPods install again:

pod install

I then had no problems going back to the Xcode beta with this command:

sudo xcode-select -s /Applications/