문제

What is the equivalent of Window's C:\Users\userName\AppData\Roaming\appName?

I need a directory that won't cause permission problems to store the updateable part of my application so I can automatically download and override my content.

Thank you.

도움이 되었습니까?

해결책

/Users/USERNAME/Library/Application Support/

Edit:

This answer has drawn a lot of upvotes despite its minimalistic nature. Therefore, I want to point out the things mentioned in the comments here to make them more visible:

  • There are several other folders being used for application data / configuration, as mentioned in this answer.
  • If writing an application, don't hardcode that path. Instead, use macOS' API to retrieve it. This question has several answers for both ObjectiveC and Swift.

다른 팁

~/Library/Application Support/ 

in shift+command+G in finder

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top