43

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

141

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.

Sign up to request clarification or add additional context in comments.

1 Comment

This worked for me. For people interested in what this command do, i found this explanation: chmod is a command used to change the permissions of a file or directory. 600 is a numerical representation of the permissions being set. In this case, it sets read and write permissions for the owner of the file (6), and no permissions for any other user (00). ~/.netrc is the path to the file whose permissions are being modified. ~ represents the user's home directory, and .netrc is a filename.
1

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

Comments

Your Answer

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