Search results for

“A Summary of the WWDC26 Group Lab”

11,227 results found

Post

Replies

Boosts

Views

Activity

Shared App Groups cache not writable
I'm trying to share cached data between a tvOS app and a TVService extension. I crated an app group and get a directory based on the identifier. All works fine in the simulator. On the tvOS dev kit however the app does not have write permission the app group directory.I realize the restrictions on tvOS but shared cache data in app groups should be possible according the FAQ:For temporary local storage, apps may access the NSTemporaryDirectory and NSCachesDirectory in their own container, or NSCachesDirectory in a shared container.So how do I get access to the caches in the app group container? has anybody here got this working?
2
0
5k
Oct ’15
UICollectionView Compositional Layout Tag Group
I’m trying to create a layout with a group of labels / tags. The labels have a flexible width and height. If a label exceeds the width of the container it should grow in height. I’m using a UICollectionView with a compositional layout to create this layout. At first I used estimated for the width and height dimension of the layout items within a horizontal group layout that had an fractionalWidth and an estimated height. This worked but only if the cells with the labels were smaller than the group width. If they are larger, the app crashes. Somewhere on StackOverflow I read that this is a known issue. To fix the issue above I made the main group a vertical layout and created a different group for every row of labels. If the labels width exceeds the width of the group I give if a fractional width and if it’s smaller I give it an estimated width. This approach prevents the crashed above and gives me my desired layout. But… as soon as I rotate the device of c
0
0
1.3k
Oct ’23
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
9
0
8.1k
Jan ’17
Looking for snippet for creating groups
Hi, I'm developing an app with a functionality to invite and add members to a group (the back-end work is already done, but I'm looking for better front-end). For this functionality, I need the ability to... Show current members (after they have accepted the invite). The ability to see pending invitations. The ability to delete either pending invitations or current members. Does anyone know of any existing snippets that I could implement for this front-end functionality?
1
0
272
Aug ’20
Reply to Should ModelActor be used to populate a view?
I decided to run this task on app launch to sync the clinical labs into the SwiftData store. This allows me to use Query macro in the views where it's needed and no need to combine lab results. Let me know if this is the right approach: import SwiftData import SwiftUI import OSLog @ModelActor actor HealthKitSyncManager { private let logger = Logger(subsystem: com.trtmanager, category: HealthKitSyncManager) func sync() async { do { // Get all Clinical labs let hkClinicalRecords = try await TRTHealthKitService.getHKClinicalRecords() guard !hkClinicalRecords.isEmpty else { return } // Get existing HealthKit IDs in one query let descriptor = FetchDescriptor( // predicate: #Predicate { $0.source == .clinicalRecord } ) let existing = try modelContext.fetch(descriptor) .compactMap { $0.fhirResourceId } let existingIDs = Set(existing) let missingRecords = hkClinicalRecords.filter { lab in guard let fhirResource = lab.fhirResource else { return false } return !existingIDs.contains(f
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
How to handle multiple users purchasing a subscription from a single Apple ID, or group them based on subscription group?
We are implementing auto-renewable subscriptions on iOS. We face a problem where users can purchase multiple subscriptions on a single Apple ID linked to the device. We are having 3 subscription plans as Regular (Monthly), Regular (Yearly), and Special (Yearly). Now, we have decided that Regular plans will be configured in a separate subscription group and special plan on the other since we don't want the Regular users to know that there is a special plan that is less costly than theirs. (Through Manage Subscription of the device Settings) Scenario 1: If User A subscribes to the Special plan on his Apple Id, his subscription gets active. Now, if on the same Apple ID, user B logs in to the app and is a Regular user then he can purchase any of the Regular plans. But the issue is User A's receipt and User B's receipt cause problems sometime later since their receipts are created on the same Apple ID. We are not able to restrict User B to purchase from User A's device in this case, since the original_tra
0
0
775
Apr ’21
"Responsible Caller" seems arbitrary in Instruments Zombie Allocation Summary View?
I'm wondering if anyone else is seeing this:it looks to me like the Responsible caller value in the allocation summary is misleading, and randomly dropping to stack frames. for example, right now i'm looking at a summary that has these three lines (among others):Retain -[Solution initWithContentsOfURL:] Retain -[Solution init] Release -[Solution init]seems line 2 and three match, right? think again. if you look at the full stack frames for each, you see this: 0 Fire -[Solution init] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:0 1 Fire -[Solution initWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:85 2 Fire +[Solution solutionWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:664 3 Fire -[SolutionDocument readFromURL:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.cs:70 4 Fire -[SolutionDocument readFromURL:ofType:error:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.NSDocument.cs:78 5 AppKit -[NSDocument _initForURL:withContentsO
0
0
529
Apr ’17
Group iMessage Apps are problematic
I get the distinct feeling, based on the WWDC presentations, that group iMessage apps are either incomplete or not really thought out. Add to this that there are no group conversations possible in the simulator. The group message part of the demo was just a couple of slides and he used the phrase we are recommending for the moment which leads me to believe that Apple probably has unfinished business here. I think that the idea of making MSSession the carrier of data and make each subsequent message create a stack of unprocessed responses so that when the user clicks on the bubble it sees each response and can process them one by one. What I'm wondering is, in the same section, they talk about privacy. So each device will get different identifiers for each user. If you are using the cloud, I don't see how you can then aggregate responses correctly. Take this scenario:I send an iMessage App (IMA) to two of my friends and it asks them to pick what they want for lunch.Friend A responds
5
0
1.1k
Jul ’16
QuickLook Extension and App Groups on macOS
Hello, I am trying to use app groups to share preferences between an app and its QuickLook extension (both sandboxed), but I can't understand why it's not working. For testing, I created an empty macOS app project and added a QuickLook Extension, then on both the targets' entitlement files I added the app group domain in the form teamid.test. Last but not least, in the Info.plist file of the QL extension i added some UTIs to have the QL extension called when previewing. In the QL extension's PreviewViewController.swift file I try to save a value like this: func preparePreviewOfFile(at url: URL, completionHandler handler: @escaping (Error?) -> Void) { let defaults=UserDefaults(suiteName: teamid.***) defaults?.set(1, forKey: test) handler(nil) } If I try to run the app and preview a file though, I get this message in the Console: Couldn't write values for keys ( test ) in CFPrefsPlistSource<0x7fb63681cce0> (Domain: teamid.***, User: kCFPreferencesCurrentUser, ByHost: No, Container: (n
0
0
837
Nov ’21
Reply to Unable to edit problematic keychain-access-groups setting of downloaded provisioningprofile for signing
Solution Summary: To build using EAS build, we need an Apple Distribution Certificate, but EAS's credentials tool creates an iOS Distribution Certificate. Therefor what is needed is to create the distribution cert on Apple Dev portal, download the .cer file from there, add it to your OSX keychain, then export to .p12 with a password. Then when using EAS build, you will choose: > eas build --profile production --platform ios --local ... ... Generate a new Apple Distribution Certificate? … no Path to P12 file: … /path/to/your.p12 P12 password: … *the password your exported to .p12 with* Would you like to reuse the original profile? … no Generate a new Apple Provisioning Profile? … yes During the build process, your OSX should prompt you for your OSX login chain pw (Your OSX admin pw, not the .p12 export password) multiple times. As for the keychain-access-groups entitlement, even though XCode complains as follows: Provisioning profile doesn't include the com.apple.developer.keychain-access-
Feb ’25
Shared App Groups cache not writable
I'm trying to share cached data between a tvOS app and a TVService extension. I crated an app group and get a directory based on the identifier. All works fine in the simulator. On the tvOS dev kit however the app does not have write permission the app group directory.I realize the restrictions on tvOS but shared cache data in app groups should be possible according the FAQ:For temporary local storage, apps may access the NSTemporaryDirectory and NSCachesDirectory in their own container, or NSCachesDirectory in a shared container.So how do I get access to the caches in the app group container? has anybody here got this working?
Replies
2
Boosts
0
Views
5k
Activity
Oct ’15
UICollectionView Compositional Layout Tag Group
I’m trying to create a layout with a group of labels / tags. The labels have a flexible width and height. If a label exceeds the width of the container it should grow in height. I’m using a UICollectionView with a compositional layout to create this layout. At first I used estimated for the width and height dimension of the layout items within a horizontal group layout that had an fractionalWidth and an estimated height. This worked but only if the cells with the labels were smaller than the group width. If they are larger, the app crashes. Somewhere on StackOverflow I read that this is a known issue. To fix the issue above I made the main group a vertical layout and created a different group for every row of labels. If the labels width exceeds the width of the group I give if a fractional width and if it’s smaller I give it an estimated width. This approach prevents the crashed above and gives me my desired layout. But… as soon as I rotate the device of c
Replies
0
Boosts
0
Views
1.3k
Activity
Oct ’23
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
Replies
9
Boosts
0
Views
8.1k
Activity
Jan ’17
Entra-based Platform SSO groups
Are there current plans to implement Microsoft 365 groups with Platform SSO to control administrator access in macOS 27? If so, would you be able to provide a rough estimate of when we can expect changes to be implemented by identity providers?
Replies
1
Boosts
0
Views
158
Activity
Jun ’26
Looking for snippet for creating groups
Hi, I'm developing an app with a functionality to invite and add members to a group (the back-end work is already done, but I'm looking for better front-end). For this functionality, I need the ability to... Show current members (after they have accepted the invite). The ability to see pending invitations. The ability to delete either pending invitations or current members. Does anyone know of any existing snippets that I could implement for this front-end functionality?
Replies
1
Boosts
0
Views
272
Activity
Aug ’20
Unable to add build to group on testfight
Hi all, after I pushed the build on testfight but I cannot add the build to groups for internal testing. Please help to addvice
Replies
0
Boosts
0
Views
977
Activity
Dec ’22
Reply to Should ModelActor be used to populate a view?
I decided to run this task on app launch to sync the clinical labs into the SwiftData store. This allows me to use Query macro in the views where it's needed and no need to combine lab results. Let me know if this is the right approach: import SwiftData import SwiftUI import OSLog @ModelActor actor HealthKitSyncManager { private let logger = Logger(subsystem: com.trtmanager, category: HealthKitSyncManager) func sync() async { do { // Get all Clinical labs let hkClinicalRecords = try await TRTHealthKitService.getHKClinicalRecords() guard !hkClinicalRecords.isEmpty else { return } // Get existing HealthKit IDs in one query let descriptor = FetchDescriptor( // predicate: #Predicate { $0.source == .clinicalRecord } ) let existing = try modelContext.fetch(descriptor) .compactMap { $0.fhirResourceId } let existingIDs = Set(existing) let missingRecords = hkClinicalRecords.filter { lab in guard let fhirResource = lab.fhirResource else { return false } return !existingIDs.contains(f
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
How to handle multiple users purchasing a subscription from a single Apple ID, or group them based on subscription group?
We are implementing auto-renewable subscriptions on iOS. We face a problem where users can purchase multiple subscriptions on a single Apple ID linked to the device. We are having 3 subscription plans as Regular (Monthly), Regular (Yearly), and Special (Yearly). Now, we have decided that Regular plans will be configured in a separate subscription group and special plan on the other since we don't want the Regular users to know that there is a special plan that is less costly than theirs. (Through Manage Subscription of the device Settings) Scenario 1: If User A subscribes to the Special plan on his Apple Id, his subscription gets active. Now, if on the same Apple ID, user B logs in to the app and is a Regular user then he can purchase any of the Regular plans. But the issue is User A's receipt and User B's receipt cause problems sometime later since their receipts are created on the same Apple ID. We are not able to restrict User B to purchase from User A's device in this case, since the original_tra
Replies
0
Boosts
0
Views
775
Activity
Apr ’21
"Responsible Caller" seems arbitrary in Instruments Zombie Allocation Summary View?
I'm wondering if anyone else is seeing this:it looks to me like the Responsible caller value in the allocation summary is misleading, and randomly dropping to stack frames. for example, right now i'm looking at a summary that has these three lines (among others):Retain -[Solution initWithContentsOfURL:] Retain -[Solution init] Release -[Solution init]seems line 2 and three match, right? think again. if you look at the full stack frames for each, you see this: 0 Fire -[Solution init] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:0 1 Fire -[Solution initWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:85 2 Fire +[Solution solutionWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:664 3 Fire -[SolutionDocument readFromURL:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.cs:70 4 Fire -[SolutionDocument readFromURL:ofType:error:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.NSDocument.cs:78 5 AppKit -[NSDocument _initForURL:withContentsO
Replies
0
Boosts
0
Views
529
Activity
Apr ’17
Group iMessage Apps are problematic
I get the distinct feeling, based on the WWDC presentations, that group iMessage apps are either incomplete or not really thought out. Add to this that there are no group conversations possible in the simulator. The group message part of the demo was just a couple of slides and he used the phrase we are recommending for the moment which leads me to believe that Apple probably has unfinished business here. I think that the idea of making MSSession the carrier of data and make each subsequent message create a stack of unprocessed responses so that when the user clicks on the bubble it sees each response and can process them one by one. What I'm wondering is, in the same section, they talk about privacy. So each device will get different identifiers for each user. If you are using the cloud, I don't see how you can then aggregate responses correctly. Take this scenario:I send an iMessage App (IMA) to two of my friends and it asks them to pick what they want for lunch.Friend A responds
Replies
5
Boosts
0
Views
1.1k
Activity
Jul ’16
Share Play / Group Acitivities GDPR
I know that Apple is very aware of privacy concerns. Do Share Play and Group Activities comply with GDPR's legal rules? What kind of servers (e.g. geography) are involved to manage the connection? Thanks Lars
Replies
1
Boosts
0
Views
833
Activity
Feb ’22
macOS available window tab groups?
Howdy. I recently discussed the tab feature from within Google Chrome. I absolutely love this feature. This is a long shot, but is there any way to create similar tab groups with the available window icons on mac OS?
Replies
0
Boosts
0
Views
234
Activity
Apr ’21
QuickLook Extension and App Groups on macOS
Hello, I am trying to use app groups to share preferences between an app and its QuickLook extension (both sandboxed), but I can't understand why it's not working. For testing, I created an empty macOS app project and added a QuickLook Extension, then on both the targets' entitlement files I added the app group domain in the form teamid.test. Last but not least, in the Info.plist file of the QL extension i added some UTIs to have the QL extension called when previewing. In the QL extension's PreviewViewController.swift file I try to save a value like this: func preparePreviewOfFile(at url: URL, completionHandler handler: @escaping (Error?) -> Void) { let defaults=UserDefaults(suiteName: teamid.***) defaults?.set(1, forKey: test) handler(nil) } If I try to run the app and preview a file though, I get this message in the Console: Couldn't write values for keys ( test ) in CFPrefsPlistSource<0x7fb63681cce0> (Domain: teamid.***, User: kCFPreferencesCurrentUser, ByHost: No, Container: (n
Replies
0
Boosts
0
Views
837
Activity
Nov ’21
Reply to Unable to edit problematic keychain-access-groups setting of downloaded provisioningprofile for signing
Solution Summary: To build using EAS build, we need an Apple Distribution Certificate, but EAS's credentials tool creates an iOS Distribution Certificate. Therefor what is needed is to create the distribution cert on Apple Dev portal, download the .cer file from there, add it to your OSX keychain, then export to .p12 with a password. Then when using EAS build, you will choose: > eas build --profile production --platform ios --local ... ... Generate a new Apple Distribution Certificate? … no Path to P12 file: … /path/to/your.p12 P12 password: … *the password your exported to .p12 with* Would you like to reuse the original profile? … no Generate a new Apple Provisioning Profile? … yes During the build process, your OSX should prompt you for your OSX login chain pw (Your OSX admin pw, not the .p12 export password) multiple times. As for the keychain-access-groups entitlement, even though XCode complains as follows: Provisioning profile doesn't include the com.apple.developer.keychain-access-
Replies
Boosts
Views
Activity
Feb ’25
Can we add "app groups" to iOS loadable plugin
Hi,We can add app-group to Containig application and app-extension to share the data. But is it also possible to add app-group to iOS plugin's entitlements so that it can also have an access to shared container if needed?Thanks and regards,Sanjay
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
281
Activity
Jan ’16