title: "tmp" couldn't be removed because you don't have permission to access it
body: <p>While trying to invoke simulator on macincloud server, I am getting the following error. </p>
  
  <p><a href="https://i.stack.imgur.com/1PvLD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1PvLD.png" alt="mac_tmp_could_not_be_removed"></a></p>
  
  <p>Steps tried by me:<br>
  1) Searched for "tmp" directories on my mac machine, but do not see any. <br>
  2) Tried to reset simulator, but after the confirmation screen (which asks whether or not to reset simulator), it throws the same error as mentioned above. <br></p>
  
  <p>The permissions on the Xcode directory is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/dfEqr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dfEqr.png" alt="enter image description here"></a></p>
  
  <p>From the <strong>Activity Monitor</strong> I searched for the processes related to <em>simulator</em> and using the logs I could figure out the location of "tmp" folder, trying to delete which simulator is throwing the error. When I am trying to remove the folder manually, I get below error:</p>
  
  <p><a href="https://i.stack.imgur.com/5MdUl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5MdUl.png" alt="enter image description here"></a></p>
  
  <p>So which means root user is required to delete the "tmp" directory. Since I am using a non-root user to invoke the simulator, what can I do to overcome this issue? </p>
  
  <p>EDIT: 
  I have elevated the permissions for my account recursively on my home and I have the following permissions:</p>
  
  <p><a href="https://i.stack.imgur.com/ysYmp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ysYmp.png" alt="my_permissions"></a></p>
  
  <p>After changing the permissions when I try to delete contents of tmp directory I get this error:
  <a href="https://i.stack.imgur.com/XfPjJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XfPjJ.png" alt="enter image description here"></a></p>
  
  <p>So I think there is something wrong with the permissions that I have provided on the folders/files under my home directory. </p>