appbrewery / Dicee-iOS13

Learn to Code While Building Apps - The Complete iOS Development Bootcamp
https://www.appbrewery.co
614 stars 878 forks source link

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

Open mewtheone opened 2 years ago

mewtheone commented 2 years ago

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
  2. 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
  3. I've checked if my antivirus is blocking the xcode ornot, turn out it does not.

  4. 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 commented 2 years ago

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 commented 2 years ago

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.