Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Operation not permitted (-1) while cloning the project from Github #18

Open
mewtheone opened this issue Mar 3, 2022 · 2 comments

Comments

@mewtheone
Copy link

I've been learning through "Complete iOS App Development Bootcamp". I've trouble when I tried to clone this project from Github.
Situation

  1. I got this error of "Operation not permitted (-1)" as shown in following picture.

Screen Shot 2022-03-03 at 17 24 00

  1. I've search for some of the same error and most of the solution are pointed to "Full Disk Access" in Mac setting. And I've changed the setting for xCode as following picture but still facing the same problem.
    *I also added xCode into "Developer tools" under "Security and Privacy" but that doesn't help.

Screen Shot 2022-03-03 at 17 28 30

  1. I've checked if my antivirus is blocking the xcode ornot, turn out it does not.
  2. I also get the same error when I create a new xCode project with "Create Git repository on my Mac" option tick.

Screen Shot 2022-03-03 at 17 35 07

Anyone know how to fix this problem?
Thank you in advance for any suggestion!

@ghost
Copy link

ghost commented Mar 5, 2022

This is based on a gut feeling, but try creating the project in a different location, such as your user home folder. Desktop has special file permissions in macOS, which may be causing a problem.

@mewtheone
Copy link
Author

This is based on a gut feeling, but try creating the project in a different location, such as your user home folder. Desktop has special file permissions in macOS, which may be causing a problem.

Thank you for the tip. I just forgot to mention that if I choose a location on external drive it has no problem.
But my problem is how to change or set anything to let Mac os allow me to choose a location on desktop since it is more practical.

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

No branches or pull requests

1 participant