Hi, i am having a hard time with user defaults atm, situation is the following...
I am using xcode 7 beta( 7A121l) and i used the template for an ios app with an watchkit app together
I let xcode set up the provisioning profiles and set up an app group and added all the apps to it..
What i tried was putting stuff (string) in the userdefaults, and getting it out again from the watchkit app extension to display it in the ui of the watch app,
i tried i failed.. after a few hours and out of pure frustration i added a today extension target and also added that to the app group, and automagically it worked :-O
So my setup is the following:
ios app, watchkit app, watchkit app extension - everyone with a own provisioning profile (ofc they share one prefix)
i got the setting right, in capabilies and i checked the plist's also for xcode fuckups, and it works on today extension
i set up the userdefaults with "initWithSuite:"
but i dont even get the same container URL on the watch simulator and the ios app simulator.. i tried it on the device and on the siulator already
(installed ios9 and watchOS 2 for that reason, maybe thats a problem?)
Any of you guys have an idea whats going on here?
I will get crazy soon :-D (*crazy laugh*)
greetz from vienna
PS: let me know if you are missing information that you need to help me :-)