I'm ready to give up and become a farmer for the rest of my life. There is no reason why this shouldn't be working.
Can this give a hint or spark some light bulb for anyone? The code below produces different output on the iOS app and the watch extension.
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.emergingmarkets.commoditiesLite"];
NSLog(defaults.dictionaryRepresentation.description);
On iOS app the output is:
{
AddingEmojiKeybordHandled = 1;
AppleITunesStoreItemKinds = (
audiobook,
"tv-episode",
booklet,
software,
"software-update",
"itunes-u",
ringtone,
"tv-season",
movie,
mix,
newsstand,
song,
wemix,
tone,
artist,
"podcast-episode",
podcast,
document,
eBook,
album,
"music-video"
);
AppleKeyboards = (
"en_US@hw=US;sw=QWERTY",
"emoji@sw=Emoji",
"en_US@hw=US;sw=QWERTY"
);
AppleKeyboardsExpanded = 1;
AppleLanguages = (
"en-US"
);
AppleLanguagesDidMigrate = "9.0";
AppleLocale = "en_US";
ApplePasscodeKeyboards = (
"en_US@hw=US;sw=QWERTY",
"emoji@sw=Emoji",
"en_US@hw=US;sw=QWERTY"
);
"GC*0" = 0;
"HG*0" = 0;
MSVLoggingMasterSwitchEnabledKey = 0;
NSInterfaceStyle = macintosh;
NSLanguages = (
"en-US",
en
);
PKEnableStockholmSettings = 1;
}
On watch extension the output is:
{
AppleKeyboards = (
"en_US",
emoji,
"en_US"
);
AppleKeyboardsExpanded = 1;
AppleLanguages = (
en
);
AppleLanguagesDidMigrate = "2.0";
AppleLocale = "en_US";
MSVLoggingMasterSwitchEnabledKey = 0;
NSInterfaceStyle = macintosh;
NSLanguages = (
en
);
}
The values for the keys "GC*0" and "HG*0" (seen in the iOS app output) are the only ones that come from the Settings bundle. They are the ones that are suppose to show up in the watch extension also.
Helppppppppppppppp