# XCode permissions

**URL:** <https://forum.ionicframework.com/t/xcode-permissions/10403>\
**Category:** ionic-v1\
**Created:** [September 29, 2014, 10:15pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403 "2014-09-29T22:15:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [September 29, 2014, 10:15pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/1 "2014-09-29T22:15:22Z")

</div>

After creating an ionic project `$ ionic start myApp sidemenu`

then adding iOS as a platform `$ ionic platform add ios`

then building it `$ ionic build ios`

Everything seems to work fine (apart from having to add sudo to the beginning of the commands).

My problem is when I try and open the XCode project. I get a “you don’t have permissions…” error. If I change the settings and add myself I then get files locked which can not be unlocked errors during XCode start up.

Any problem from a command line point of view that any one knows about?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [October 1, 2014, 4:08pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/2 "2014-10-01T16:08:17Z")

</div>

Hm, are you using the osx yosemite preview or mavericks? Have you updated your version of xcode and the xcode command line tools?

---

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [October 9, 2014, 9:28pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/3 "2014-10-09T21:28:04Z")

</div>

No worries, it seems to have sorted it self out. There might have been an update between then and now…no sure.

I run the commands just like the Getting Started guide and it works with no problems at all.

---

<div class="post-metadata">

**Author:** ![andrescala](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/andrescala/32/68105_2.png) [@andrescala](https://forum.ionicframework.com/u/andrescala)\
**Post date:** [November 6, 2014, 3:22pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/4 "2014-11-06T15:22:38Z")

</div>

I’m getting the same problem, It’s happening now on any new project when I run /$ ionic build ios the XXX.xcodeproj file comes locked with no permissions… I think thats happening after the update of OSX Yosemite. Any help to fix this?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [November 6, 2014, 3:47pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/5 "2014-11-06T15:47:57Z")

</div>

Hmm, what version of xcode are you using? Also what version of the xcode command line tools are you using?

---

<div class="post-metadata">

**Author:** ![andrescala](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/andrescala/32/68105_2.png) [@andrescala](https://forum.ionicframework.com/u/andrescala)\
**Post date:** [November 7, 2014, 7:26pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/6 "2014-11-07T19:26:35Z")

</div>

Xcode 6.1 , When I type $ gcc -v  
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1  
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)  
Target: x86\_64-apple-darwin14.0.0  
Thread model: posix  
Is that what you are asking? or how I can check the version you ask? Thanks

---

<div class="post-metadata">

**Author:** ![hardikbhavsar1311](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hardikbhavsar1311/32/71095_2.png) [@hardikbhavsar1311](https://forum.ionicframework.com/u/hardikbhavsar1311)\
**Post date:** [November 25, 2014, 7:09am UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/7 "2014-11-25T07:09:58Z")

</div>

I have same problem. My xcode version is 6.1 with OS Yosemite.Please guide me if anyone have solution.  
Thanks

---

<div class="post-metadata">

**Author:** ![gregorypratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorypratt/32/64031_2.png) [@gregorypratt](https://forum.ionicframework.com/u/gregorypratt)\
**Post date:** [December 12, 2014, 2:10pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/8 "2014-12-12T14:10:51Z")

</div>

I re-did this on a different mac. Got a permission error again.

I fixed it by doing this on the app folder to change permissions:

`sudo chown -R <your-username> .`

I did this and opened the XCode project and no one permission errors

---

<div class="post-metadata">

**Author:** ![CT14\_IT](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ct14_it/32/65350_2.png) [@CT14\_IT](https://forum.ionicframework.com/u/CT14_IT)\
**Post date:** [December 12, 2014, 2:19pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/9 "2014-12-12T14:19:53Z")

</div>

Where are you trying to build the app? Within your home directory or outside of it?

I’ve recently bought a Mac Mini, installed Yosemite and am not having any problems with the Xcode project (even when switching back and forth between Xcode 5 and Xcode 6

I am only building/creating apps within my home folder though

---

<div class="post-metadata">

**Author:** ![Mik378](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mik378/32/7777_2.png) [@Mik378](https://forum.ionicframework.com/u/Mik378)\
**Post date:** [December 12, 2014, 2:22pm UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/10 "2014-12-12T14:22:04Z")

</div>

> [@gregorypratt](#):
>
> sudo chown -R \<your-username\> .

Personnally, I use sudo `chown -R <your-username> .` everytime right after a build.

---

<div class="post-metadata">

**Author:** ![markusila](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/markusila/32/76316_2.png) [@markusila](https://forum.ionicframework.com/u/markusila)\
**Post date:** [January 29, 2015, 6:38am UTC](https://forum.ionicframework.com/t/xcode-permissions/10403/11 "2015-01-29T06:38:45Z")

</div>

Thank You, that’s exactly what worked for me with Yosemite
