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.
Questions tagged [ios-app-group]
232 questions
11
votes
1 answer
How to access app group shared container from Cordova?
I am using window.resolveLocalFileSystemURL in cordova to access file system. However I could not find a way to get the directory path using app group.
In IOS, I can easily use containerURLForSecurityApplicationGroupIdentifier.
Cheers

Adrian
- 273
- 1
- 4
- 14
11
votes
2 answers
How to reference non-supported frameworks in Watch OS 2
I updated my app to the latest swift 2.0 syntax. In doing so, My watchkit app has become broken. The issue is the watchkit app references a class that references the framework AVFoundation. WatchOS2 apparently now no longer supports some of the…

modesitt
- 7,052
- 2
- 34
- 64
10
votes
4 answers
How to debug an iOS app extension?
I'm trying to debug an iOS app extension and all I can do is to set breakpoints but it would be nice to be able to print to console.
Is this possible with Xcode 9?
Or at least read it somewhere, maybe a file?
I went to see my device's logs in…

pguzman
- 141
- 1
- 7
10
votes
1 answer
getting unsatisfied entitlements
When I'm starting my MacOS app, I can see at the console the errors
com.myAppBundle: Unsatisfied entitlements: com.apple.security.application-groups
Disallowing: com.myAppBundle
However, it's seems that the app is working just fine,
and I do…

Witterquick
- 6,048
- 3
- 26
- 50
9
votes
1 answer
How to generate writable path in FileManager that works in XCTest
I am writing an XCTest that involves writing a file to disk. I am using an AppGroup to define the file path. This works fine running on device or simulator.
class func filePath()->URL {
guard let path =…

Bernd
- 11,133
- 11
- 65
- 98
9
votes
1 answer
iOS - Today extension widget cleared over time
Situation as it should be
We have a today widget that shows a maximum of 6 buttons depending on data set in the corresponding app. This data is shared using app-groups. If at least one button is configured it will show up as shown in the image…

Remy Kabel
- 946
- 1
- 7
- 15
9
votes
2 answers
Cannot save file to App Groups on iOS 8
I tried to use - (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier to save / load files between container app and extension on iOS 8 b4.
Here's the code:
NSURL *containerURL = [[NSFileManager defaultManager]…

Hiraku
- 361
- 3
- 13
8
votes
1 answer
iOS: Support App Group folders in local file provider
I understand that if I provide the UIFileSharingEnabled and LSSupportsOpeningDocumentsInPlace keys in Info.plist for my iOS app, files in my app's Documents folder are shown in Files.app ("On This iPad") and the documents browser.
Now my question -…

m.gansrigler
- 185
- 2
- 9
8
votes
3 answers
settings bundle not working on watchOS 2
This was NOT a problem on watchOS 1, but now on watchOS 2 I cannot read the values on the watch extension.
According to Apple docs, it is possible.
According to some people on this thread, it is possible.
According to an Apple employee on this…

spybart
- 2,583
- 3
- 22
- 33
8
votes
2 answers
iOS 8 - Create SQLite database for App Group
I'm busy creating an iOS 8 Today extension for my app. I want to access my SQLite (not Core Data) database from my extension. After a little search on the web, I found out that I need an App Group. So I created an App Group for my app, named…

Bram
- 135
- 1
- 5
7
votes
1 answer
Xcode/iOS: How to enable App Groups without Developer Account?
I want to create an iOS extension that requires the App Groups capability. According to the list of Supported Capablilities App Groups can be used without Developer Account.
According to that document it should be possible with an Apple ID…

Max
- 1,387
- 1
- 15
- 29
7
votes
1 answer
NSUserDefaults(suiteName:) on iOS 9 and WatchOS 2 - not working?
I've done this before but nothing seems to be working. Here's my code:
Saving in the iOS App
let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults")
groupDefaults?.setObject(theArray, forKey:…

JustAnotherCoder
- 2,565
- 17
- 38
7
votes
1 answer
How do I download and replace an AppGroup container using XCode 6.4
I'm aware of how to download and replace the filesystem container for a particular iOS application using XCode 6's Devices window.
However for an application I'm developing I need to be able to download and replace a shared AppGroup container for…

killercowuk
- 1,313
- 1
- 11
- 23
7
votes
1 answer
How to share Core Data with multiple Apps (not just an extension) using App Groups and avoid corrupted Core Data stores?
I made an iOS 8 app that uses the new app groups feature to share a Core Data store with an extension. It worked so well that I thought I would try it with 2 separate apps sharing a Core Data store in an App Group container. But while it worked…

Richard Venable
- 8,310
- 3
- 49
- 52
6
votes
1 answer
iPhone and Apple Watch not sharing App Group
I've been pulling my hair out over this problem for two days now. I generate a small movie file in the iPhone App that I want to send from the iPhone to play on an Apple Watch. As I proof of concept, I put a similar .mov in the Bundle of the Apple…

FishTales
- 235
- 3
- 7