29

I used Cocoapods a lot, but recently whenever I was updating the pods (pod update), it started duplicating files and often didn't let me create a build for the App Store.

I updated Cocoapods to the last version possible but still didn't solve that. Then I tried to remove and re-install it.

Now is occurring another issue. When I try to run pod install on any project, pods are not getting installed like previously, but is showing this error:

myUser$ pod install
Analyzing dependencies
[!] Couldn't determine repo type for URL: `https://github.com/CocoaPods/Specs.git`: Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644

Previously, this never happened, but now it's happening even on projects that Cocoapods worked like a charm. What could be the problem?

Thank you in advance.

2 Answers 2

94

The error message says there's a permission issue:

Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644

So in order to fix the permission, you should do this:

chmod 600 ~/.netrc

Then try to run pod install again. If the root cause was really this permissions issue then everything should work.

0
1

In addition to 0xced's answer: Check and fix possible syntax errors in ~/.netrc .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.