It worked fine in my sandbox in 10.8, but in 10.9 it seems that the default user .plist is not saved at all

The sandbox application worked fine in 10.8, but in 10.9 it seems like the default user. plist is not saved at all. Plist Location:

~/Library/Containers/com.example.myapp/Data/Library/Preferences/com.example.myapp.plist 

and if I delete it, it will not be created again. At 10.8 this worked.

Has anyone seen this before or can someone suggest a solution?

+6
source share
3 answers

The problem is solved with a reboot, which is much less. The settings are saved correctly, and it works fine until I delete the application container folder again. Then you need to reboot to fix this.

+9
source

My job for this problem is to kill the cfprefsd daemon processes after making changes to the .plist file:

ps auwx | grep cfprefsd | grep -v grep | awk '{print $ 2}' | xargs sudo kill -2

The daemon will restart after the next access to the .plist file and then will have a new value for the key that has been changed.

Unfortunately, this work is necessary, but at least it works reliably.

+7
source

I had this problem last night (I'm still developing an application). I fixed it by deleting the application container folder (moving everything ~/Library/Containers/com.domain.appname to the trash in Finder) and restarting the application.

First, I rebooted when I saw that there was an LSShared file associated with my application that would not be cleared of garbage before rebooting.

I can only imagine the intermittent error in the Mavericks (GM seeds).

EDIT The error comment may be incorrect; It seems that the .plist files are "output" according to this Apple Developers Forum . However, at the end of the day, my application (and OP) stopped working, so it does not work reliably.

+1
source

Source: https://habr.com/ru/post/955654/


All Articles