Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

The operation couldn’t be completed. (CocoaPods.CPPodfileInitErrors error 0.) #399

Open
eihabkhan opened this issue Apr 20, 2018 · 11 comments

Comments

@eihabkhan
Copy link

eihabkhan commented Apr 20, 2018

This is the first time I use cocoapods on Xcode 9.3, I've been getting this error on any project that I created post-update, all projects that were created prior to Xcode 9.3 opened normally.

The error occurred whenever I tried to create a podfile.

this is the full error message that I've been getting:

`

Command

/Applications/CocoaPods.app/Contents/Resources/bundle/bin/pod init Smack.xcodeproj

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.4.0
        Ruby : ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-darwin15]
    RubyGems : 2.6.8
        Host : Mac OS X 10.13.4 (17E199)
       Xcode : 9.3 (9E145)
         Git : git version 2.6.2
Ruby lib dir : /Applications/CocoaPods.app/Contents/Resources/bundle/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 9f71570896c65eb7182a027d780b1d6050611070

Plugins

`
@dnkoutso
Copy link

Sorry this seems like an incorrect template. Please reply here with sample app and more information for us to diagnose.

It is also better to ask these questions in StackOverflow under cocoapods tag.

Going to close and re-open once we get enough info to prove this is a CocoaPods library issue.

@eihabkhan
Copy link
Author

screen shot 2018-04-20 at 9 32 58 pm

@dnkoutso
Copy link

@mAsterEihaB are you using cocoapods-app? If so please file issue there https://github.com/CocoaPods/CocoaPods-app

@dnkoutso
Copy link

Gah I am so stupid, I am sorry. THIS IS the cocoapods-app repo.

@dnkoutso dnkoutso reopened this Apr 20, 2018
@nathanhosselton
Copy link

nathanhosselton commented Apr 23, 2018

I believe a new release which includes the 1.5.0 gem is needed. This is an error that is generated when running pod init with cocoapods 1.4.0 and Xcode 9.3.

I've seen that @orta has had some issues on his end in the past with keeping this in sync. I'd be happy to supply a new release if given some instructions with the best way to do so. Based on the 1.4.0 release, it seems that all that is necessary is simply creating the new tag onto the most recent commit, but I expect there is probably a little more to it than this given the discussion in #383.

cc: #397 #395

@orta
Copy link
Member

orta commented Apr 23, 2018

I'm afraid you need a machine with 10.9 and an old Xcode, I only have one of those still around (and it's across the atlantic right now) - I think you could move that to a CI ( The whole release is automated via the Rakefile ) but I'm not sure any CI providers would keep old builds like that around nowadays.

I won't be making the time to bring this to run on modern OS/Xcodes, but can be helpful in questions if you try get it running on Xcode 9

@dmalone08
Copy link

I'm running into the same error as above. The app says it up to date.

@paulsUsername
Copy link

I'm getting this same issue

1 similar comment
@junySong
Copy link

junySong commented May 2, 2018

I'm getting this same issue

@sashberd
Copy link

sashberd commented May 2, 2018

Same Error guys.

I have to choose Xcode8.0 - compatible and then it works. Then I have to re-set 9.3 again.

Any solutions in order to reduce this action ?

@jldroid25
Copy link

Solution that works for me:
If you make your Xcode project compatible with Xcode 8.0-compatible it will resolve the issue.

To be more descriptive in the solution steps.

  1. In the Xcode Navigator panel on the left select your project name the very top blue icon file.

  2. If not already open click/open the utility pane on the right. Select the file inspector icon.

  3. under Project document section , click on the down arrow to select the Xcode 8.0-compatible

hope that helps everyone else.

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants