How can I pull the NSUserDefaults shared preferences from the command line? This would be for a development build. I'd like to use a shell script of some sort and call it to retrieve this info. Is this possible? If so, how?
UPDATE: I also need to get it from the unrooted device not simulator unfortunately. Its because I want to grab the APNS token and store it somewhere. I am storing the APNS token in a NSUserDefaults currently. To be clear, I have a iOS app, and I want to get the APNS token that I'm storing in NSUserDefaults using a command line script on Mac. The reason I need it from the device is I can't do push notification from simulator so I wont get APNS token unless real device registers.
update: i saw this SO article Browse the files created on a device by the IOS application I'm developing, on workstation? but i want to automate this. Anyway to pull down the container from shell using xcode command ?