You don’t have permission to save the file “988BF072-A4B9-4ABE-9FB8-2F3A8EBC2E2C” in the folder “CoreSimulator”

做~自己de王妃 提交于 2019-12-07 02:45:02

问题


This folder exists.

I've tried moving it to the trash (it reappears and then this message pops up).

I've reset all permission to all enclosed folders to R+W.

I've repaired permissions on my drive.

Plugging in a real phone works fine (probably not relevant).


回答1:


Just finished solving this problem. I think the main issue is that you are looking in the wrong place. These are the steps I took:

  1. Make hidden folders visible by going to terminal and executing these two commands:

    defaults write com.apple.finder AppleShowAllFiles TRUE
    
    killall Finder
    
  2. Go to /Users/myUsername/Library now it should be visible ( instead of myUsername you should have yours)

  3. The Logs folder has no access permission, so change it. In case you can't do it manually, go to 3b.

    3b. Open terminal. Write this command

    sudo chmod 777 /Users/myUsername/Library/Logs 
    
  4. Be happy

P.S. In case you don't want to see hidden folder and files anymore, execute this two lines in terminal:

defaults write com.apple.finder AppleShowAllFiles FALSE

killall Finder



回答2:


So your permissions are invalid. You should look in ~/Library/Logs/CoreSimulator and check what the ownership and permissions are set to and fix them.

If that doesn't work, update your question with explanation of what you tried and show the current ownership and permissions on the relevant paths.




回答3:


Turns out the actual folder for the log file didn't exist.

When looking in Console.app, filtering on CoreSimulator, I saw this:

3/15/15 9:50:52.840 AM iOS Simulator[7291]: Error opening /Users//Library/Logs/CoreSimulator/iOS Simulator.log

When I went to the Logs directory, CoreSimulator wasn't there, so I:

sudo mkdir CoreSimulator
sudo chown <user>:staff CoreSimulator
touch CoreSimulator/iOS\ Simulator.log


来源:https://stackoverflow.com/questions/29055007/you-don-t-have-permission-to-save-the-file-988bf072-a4b9-4abe-9fb8-2f3a8ebc2e2c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!