Mac OS X: Can I write application files within the app bundle?

与世无争的帅哥 提交于 2019-12-01 12:19:37

~/Library/Application support is a way better place to store your files:

Use this directory to store all app data files except those associated with the user’s documents. For example, you might use this directory to store app-created data files, configuration files, templates, or other fixed or modifiable resources that are managed by the app. An app might use this directory to store a modifiable copy of resources contained initially in the app’s bundle. A game might use this directory to store new levels purchased by the user and downloaded from a server.

A. No, generally you should not alter the application bundle once installed. You will very likely encounter permissions or code signing issues if you do.

B. ~/Library/Application Support/MyApp/

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