Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error generating pods project - Pod install

Tags:

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/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8123.33/IDEFoundation/Initialization/IDEInitialization.m:590
Details:  Assertion failed: _initializationCompletedSuccessfully
Function: BOOL IDEIsInitializedForUserInteraction()
Thread:   <NSThread: 0x7fedd50822b0>{number = 1, name = main}
Hints: None
Backtrace:
  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 Pods/Pods.xcodeproj. I've tried reinstall cocoa pods, but not succeed.

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

like image 792
Thiago Franco Avatar asked Jun 27 '15 04:06

Thiago Franco


People also ask

Why is Cocoapods not installing?

Usually, this happens due to visual studio or IntelliJ not able to find the path or associated plugin or extension. Open your terminal and run sudo gem uninstall cocoapods sudo gem install cocoapods restart IDE or Editor Now your error must be solved.


2 Answers

Seems to be an issue with project serialization with Xcode 7. Cocoapods relies on xcodeproj, which has a bug with the latest betas. They've put out a quick release to address the issue. Run this in the terminal:

gem install xcodeproj -v 0.24.3

(may have to sudo that)

like image 150
Parrots Avatar answered Nov 02 '22 16:11

Parrots


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/Xcode.app/Contents/Developer

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/Xcode-beta.app/Contents/Developer
like image 31
Aaron Surrain Avatar answered Nov 02 '22 17:11

Aaron Surrain