Search results for

“A Summary of the WWDC26 Group Lab”

11,481 results found

Post

Replies

Boosts

Views

Activity

Reply to Can I import images into my app with App Intent Schemas?
In addition to the .photos.addAssetsToAlbum, you will need to adopt the .photos.createAssets schema. To support incoming content in your app, you can add the Transferable protocol to the entity representing the incoming content. Then, use importing on the transferRepresentation of that entity. See these sessions for more information on Transferable. WWDC26 session Build intelligent Siri experiences with App Schemas WWDC24 session What's new in App Intents
Jun ’26
invalid context when trying to hide a group
That's a watch error I cannot get rid of.I have created a group at the bottom of the view (that seem to be important).In the group, a label and a slider.I would like to hide the group at start, then show it after some action has been done.So, in awake, I setHidden(true) for the group.But, I get multiple context errors like:App Watch Extension[11882:866609] [Unknown process name] CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.App Watch Extension[11882:866609] [Unknown process name] CGContextSetStrokeColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.If I replace setHidden by setting alpha to 0, I succeed in hiding, but that's not exactly the same layout.I found this SO, but the solution does not work for me.https://stackoverflow.com/questions/32236204/cgcontextsavegstate-invalid-context-0x0-error-only-on-de
1
0
1.6k
Jun ’19
Notes from WWDC 2017 Deployment Lab Part Two
These questions are community-driven. I am also not the original questioner, I'm just posting them with permission. Thank you to the anonymous folks who helped gather this information.Software Update Server related:- This product is officially deprecated (which we all knew). It has no future, guaranteed.- They were surprised, however, that the ability to set a custom CatalogURL as an argument to /usr/sbin/softwareupdate (client) disappeared at some point. 1. See github dot com / munki / munki / issues / 511 as an example of this issue. 2. They rely on that internally, obviously.- This functionality should exist at all times; file a bug report at any point we don't see this happening (and maybe this something Munki can go back to using?)- They weren't aware of Reposado, but I showed it to them and they like the idea. I asked if they had any plans to obstruct or otherwise change how it works in a way that would break this functionality, and they didn't seem to be cagey about it. Sounds like Software Update has
4
0
1.7k
Jun ’17
Reply to Localization doesn't work in watchOS widget configuration intent
Thanks for your tests, which narrowed down the root cause even more. I agree your assessment, and see that you have updated your feedback report (FB22509406). You can follow up with your feedback report to get the latest status of the issue. As a reminder, WWDC26 is right around the corner, and folks probably won't be able to be as responsive as before. Best, —— Ziqiao Chen  Worldwide Developer Relations.
May ’26
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
Game Center Group Leaderboard issue
I have an iOS game with one Game Center leaderboard. Recently I published the game and it works fine with no issues. Then I did light version of the game and I'd like to use the same leaderboard for both games. I combined both versions of the game into the Game Center Group and modified leaderboard ID, because Apple requires to start group leaderboard names with grp..Now, if I load scores I receive nil. But if I firstly submit some score and load after that I receive only score for the local player. I checked the leaderboard on itunesconnect and I know for sure that there are a lot of records in the leaderboard. The leaderboard is the same as it was before combining into the group. I thought that Game Center needs some time to update, but I've waited about several days and still see no changing.Do I do something wrong? Or this is just a Game Center bug?I found some similar issues here but with no reply. Does anyone has any ideas? Any help appreciated!
3
0
1.4k
Mar ’17
setText on a Label inside a Group fails to update
In a watch app, if I put a label inside a Group , setText() does not change the text on a label when it is inside a Group.The demo code:@IBOutlet var pinLocationText: WKInterfaceLabel! @IBAction func pinButtonPress() { pinLocationText.setText(Reset) }executes correctly when pinLocationText is outside a Group, but fails to display the text when the label is inside a Group.So, how do I update the display value of a Label when it is inside a Group?
0
0
520
Dec ’17
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
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
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
277
Aug ’20
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
781
Apr ’21
Reply to Can I import images into my app with App Intent Schemas?
In addition to the .photos.addAssetsToAlbum, you will need to adopt the .photos.createAssets schema. To support incoming content in your app, you can add the Transferable protocol to the entity representing the incoming content. Then, use importing on the transferRepresentation of that entity. See these sessions for more information on Transferable. WWDC26 session Build intelligent Siri experiences with App Schemas WWDC24 session What's new in App Intents
Replies
Boosts
Views
Activity
Jun ’26
invalid context when trying to hide a group
That's a watch error I cannot get rid of.I have created a group at the bottom of the view (that seem to be important).In the group, a label and a slider.I would like to hide the group at start, then show it after some action has been done.So, in awake, I setHidden(true) for the group.But, I get multiple context errors like:App Watch Extension[11882:866609] [Unknown process name] CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.App Watch Extension[11882:866609] [Unknown process name] CGContextSetStrokeColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.If I replace setHidden by setting alpha to 0, I succeed in hiding, but that's not exactly the same layout.I found this SO, but the solution does not work for me.https://stackoverflow.com/questions/32236204/cgcontextsavegstate-invalid-context-0x0-error-only-on-de
Replies
1
Boosts
0
Views
1.6k
Activity
Jun ’19
Notes from WWDC 2017 Deployment Lab Part Two
These questions are community-driven. I am also not the original questioner, I'm just posting them with permission. Thank you to the anonymous folks who helped gather this information.Software Update Server related:- This product is officially deprecated (which we all knew). It has no future, guaranteed.- They were surprised, however, that the ability to set a custom CatalogURL as an argument to /usr/sbin/softwareupdate (client) disappeared at some point. 1. See github dot com / munki / munki / issues / 511 as an example of this issue. 2. They rely on that internally, obviously.- This functionality should exist at all times; file a bug report at any point we don't see this happening (and maybe this something Munki can go back to using?)- They weren't aware of Reposado, but I showed it to them and they like the idea. I asked if they had any plans to obstruct or otherwise change how it works in a way that would break this functionality, and they didn't seem to be cagey about it. Sounds like Software Update has
Replies
4
Boosts
0
Views
1.7k
Activity
Jun ’17
Reply to Preview crashes consistency in Xcode 16 beta
I had talk with apple in their lab sessions and they admitted it's known issue in first beta and wait for next betas to have fix
Replies
Boosts
Views
Activity
Jun ’24
Reply to Localization doesn't work in watchOS widget configuration intent
Thanks for your tests, which narrowed down the root cause even more. I agree your assessment, and see that you have updated your feedback report (FB22509406). You can follow up with your feedback report to get the latest status of the issue. As a reminder, WWDC26 is right around the corner, and folks probably won't be able to be as responsive as before. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
May ’26
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
Game Center Group Leaderboard issue
I have an iOS game with one Game Center leaderboard. Recently I published the game and it works fine with no issues. Then I did light version of the game and I'd like to use the same leaderboard for both games. I combined both versions of the game into the Game Center Group and modified leaderboard ID, because Apple requires to start group leaderboard names with grp..Now, if I load scores I receive nil. But if I firstly submit some score and load after that I receive only score for the local player. I checked the leaderboard on itunesconnect and I know for sure that there are a lot of records in the leaderboard. The leaderboard is the same as it was before combining into the group. I thought that Game Center needs some time to update, but I've waited about several days and still see no changing.Do I do something wrong? Or this is just a Game Center bug?I found some similar issues here but with no reply. Does anyone has any ideas? Any help appreciated!
Replies
3
Boosts
0
Views
1.4k
Activity
Mar ’17
setText on a Label inside a Group fails to update
In a watch app, if I put a label inside a Group , setText() does not change the text on a label when it is inside a Group.The demo code:@IBOutlet var pinLocationText: WKInterfaceLabel! @IBAction func pinButtonPress() { pinLocationText.setText(Reset) }executes correctly when pinLocationText is outside a Group, but fails to display the text when the label is inside a Group.So, how do I update the display value of a Label when it is inside a Group?
Replies
0
Boosts
0
Views
520
Activity
Dec ’17
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
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
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
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
277
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
982
Activity
Dec ’22
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
226
Activity
Jun ’26
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
781
Activity
Apr ’21