Questions tagged [ios-app-group]

The iOS App Group Container is a protected folder for sharing content with trusted apps. The most common use it to exchange information between the main App and a shared extension.

232 questions
107
votes
14 answers

Failed to read values in CFPrefsPlistSource iOS 10

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…
Klevison
  • 3,342
  • 2
  • 19
  • 32
81
votes
6 answers

Sharing UserDefaults between extensions

Creating a Today widget and I am using UserDefaults(suiteName:) to persist some data. In the main application I am using UserDefaults.standard(). This can't be read (or can it?) by the extension which is why I use the suiteName: constructor. Data…
37
votes
6 answers

Xcode shows warning after adding App Groups (Add the "App Groups" entitlement to your App ID)

After I added an App Group in Xcode it shows a warning: Add the "App Groups" entitlement to your App ID Add the "App Groups containers" entitlement to your App ID Before the warning there was a loading spinner like this: after it finished the…
Joschka Schulz
  • 674
  • 1
  • 8
  • 18
32
votes
2 answers

Values not always persisted in App group between companion app & app extension

From time to time, but not always (I have had this working for a bit), the app/extension gets in a state where I can't read a flag set in my App Group between my companion app and my app extension. Don't know how it gets in this state or why the…
barfoon
  • 27,481
  • 26
  • 92
  • 138
20
votes
2 answers

Provisioning profile doesn't include the com.apple.security.application-groups entitlement

I am getting error while configuring Xcode provisioning profiles. Provisioning profile $ProfileName doesn't include the com.apple.security.application-groups entitlement. How to fix it. It seems my provisioning profile/certificate does not have…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
20
votes
2 answers

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

I created a Today Extension that is introduced in iOS 8 first time. To share data between Today extension and it's container App, I defined an app group, and bind them to this group. (Actually I added an embedded framework also to re-use code in…
jeeeyul
  • 3,727
  • 1
  • 24
  • 37
18
votes
1 answer

Migrating Data to App Groups Disables iCloud Syncing

I am adding a Today Extension to my existing app. I have added the an App Group and used this post to successfully migrate my Core Data's data to the App Group's store. My app uses both a NSPersistentCloudKitContainer (when iCloud is toggled on) and…
18
votes
3 answers

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

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…
18
votes
3 answers

iOS8 Unable to create a folder/file under app group shared container location

I am using following code to create a folder/file under the shared container path. Which will help both app extension and the extension containing app can access the data. code to get the shared container url…
loganathan
  • 2,056
  • 2
  • 23
  • 34
15
votes
1 answer

Access app Documents folder from Today Extension

I have successfully shared data between my App and its Today Extension via userDefaults, but I am having trouble when it comes to actual files located in the app's Documents folder. When I use this code in my app: var documentsDir:NSString =…
Lee Andrew
  • 798
  • 7
  • 28
13
votes
1 answer

Can I share iOS Realm Databases with App Groups?

Can I share iOS Realm Databases with App Groups? If yes, how? If not, how can I share my Realm Database to my other apps?
Berry
  • 2,143
  • 4
  • 23
  • 46
13
votes
2 answers

Xcode 8: different entitlements for each scheme causing errors

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…
13
votes
2 answers

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

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…
FabienP
  • 143
  • 1
  • 7
12
votes
1 answer

Cannot access NSUserDefaults using app groups one to another

I'm working on an app and a widget that the widget needs to get data from app. I've used the following codes to read and write on NSUserDefaults. And also I used $(PRODUCT_BUNDLE_IDENTIFIER).widget for widget and $(PRODUCT_BUNDLE_IDENTIFIER)…
do it better
  • 4,627
  • 6
  • 25
  • 41
12
votes
1 answer

Write into a database stored in App Group container from extension

I have a sqlite database stored in the App Group container in order to register custom shortcut. I can read/write into it from the app, but not from the keyboard extension. It seems that the database is in read-only mode from extensions. I'm using…
Matthew
  • 837
  • 7
  • 20
1
2 3
15 16