ios-app-group

Why won't app groups work inside my WatchKit extension?

拈花ヽ惹草 提交于 2019-11-27 21:36:34
问题 I've seen all the other posts of SO about sharing NSUserDefaults data between host apps and app extensions, but mine still doesn't work. Here's everything I've done: Enable App Groups on Xcode's "Capabilities" tab for the extension and host app. Set the group name to "group.com.mycompany.foo" and confirmed the extension and host app are added to the group. Confirmed an entitlements file exists for both with the "com.apple.security.application-groups" key set to my app group name. (For what it

Xcode 8: different entitlements for each scheme causing errors

随声附和 提交于 2019-11-27 15:01:14
问题 I found an issue with XCode 8 where .entitlements files are not being referenced properly for each scheme. Basically, my Debug .entitlements file is being referenced for my Release scheme. This is causing an issue because we implemented the new Rich push notification logic and that requires the use of App groups. I am using two different teams (Development and Production), so there will be two specific App Groups. Anyone know how to resolve this issue? Thank you 回答1: I found a solution. Make

Failed to read values in CFPrefsPlistSource iOS 10

旧街凉风 提交于 2019-11-27 03:06:16
I've updated my Xcode 8 to beta 2 today and I'm trying to share data between App and Today Extension. I'm facing with this log warning: 2016-07-08 18:00:24.732472 ProjetctX[941:42801] [User Defaults] Failed to read values in CFPrefsPlistSource<0x1700f1280> (Domain: group.x.p.t.o, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null)): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Anyone can help me? This is actually a spurious warning that was introduced in iOS 10 and macOS 10.12. (Source: https://twitter.com/Catfish_Man

Share datas between two apps with iOS 8 App Groups (using NSUserDefaults)

走远了吗. 提交于 2019-11-26 23:08:44
问题 I wonder if we can share datas between apps with the new iOS 8 feature : App groups (using NSUserDefaults) - Or if App Groups only share datas between the main app and its extension? I actually enabled the App Groups feature on both of the apps that should share datas between them (they belong the same company). They also have the same App Groups thing (like group.com.company.myApp). Here's the code on the first one (in Swift) NSUserDefaults.standardUserDefaults().setBool(true, forKey:"Bool")

Failed to read values in CFPrefsPlistSource iOS 10

拜拜、爱过 提交于 2019-11-26 10:19:50
问题 I\'ve updated my Xcode 8 to beta 2 today and I\'m trying to share data between App and Today Extension. I\'m facing with this log warning: 2016-07-08 18:00:24.732472 ProjetctX[941:42801] [User Defaults] Failed to read values in CFPrefsPlistSource<0x1700f1280> (Domain: group.x.p.t.o, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null)): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Anyone can help me? 回答1: This is actually a