Search results for

“A Summary of the WWDC25 Group Lab”

11,216 results found

Post

Replies

Boosts

Views

Activity

Can defaults command on macOS read app group preferences?
Is there any way to read/write preferences for a Mac app group using the defaults command? I'm talking about the stuff you would programmatically manipulate using [NSUserDefaults initWithSuiteName:], and that is stored on disk in ~/Library/Group Containers. If I just say defaults read <suite name>, it tells me the the domain does not exist.
5
0
2.9k
Jan ’23
What does "Cannot solve for a non-group item." mean?
I'm using a UICollectionViewCompositionalLayout, and an exception is thrown when I load my collection view.The exception says Cannot solve for a non-group item.Any idea what might be wrong? Or how to fix it?Here's my layout codefunc sideBarSectionCollectionLayout()->UICollectionViewCompositionalLayout { let size = NSCollectionLayoutSize(widthDimension:.fractionalWidth(1), heightDimension:.estimated(105)) let item = NSCollectionLayoutItem(layoutSize: size) let group = NSCollectionLayoutGroup.horizontal(layoutSize: size, subitems: [item]) let section = NSCollectionLayoutSection(group: group) section.contentInsets = NSDirectionalEdgeInsets(top: 5, leading: 5, bottom: 5, trailing: 5) section.interGroupSpacing = 5 return UICollectionViewCompositionalLayout(section: section) }My cells are set up in the storyboard.I'm running xcode 11.1 (11A1027), and catalina 10.15.1 Beta (19B68f)It started after the catalina upgrade from the GM.Here's the relevant part of the stack trace.2019
9
0
2.4k
Oct ’19
Is there an implicit ordering to thread group execution?
In a compute (kernel) function, is there an implicit ordering to threadgroup execution.Say I have a 32xN buffer. Take following trivial kernel (ignoring boundary conditions):kernel void example(device uint *buffer [[ buffer(0) ]], const uint2 pos [[ thread_position_in_grid ]]) { uint index = pos.y * N + pos.x; buffer[i - 1] = buffer[i] buffer[i + 1] = 0; }If we dispatch that kernel in N 32x1 threadgroups, is there any way that the thread groups are executed left-to-right? i.e. the resulting buffer is all 0 (once again, ignoring the boundary conditions).Thanks
2
0
504
Aug ’15
Contacts 100's of DUPLICATES of the same GROUP
How do I fix this?I have had this issue since we went from Me.com to iCloud.com with having 100's of duplicates of the same GROUP in my contacts via my iCloud.com account; which is my main iCloud account. I had created a secondary @me.com account that I use only for my Contacts and junk email (this was created at the same time as the iCloud.com transition).1.I have ran an Apple Script trying to delete these duplicates.2. I have spent hours on iCloud.com deleting this group. When I do this the screen will get darker and darker while I am hitting Delete then Enter to confirm the deletion. After a period of time the screen will return to normal and I will continue and the screen goes black again..3. I have tried deleting any files that I know of that are associated to my Contacts on my MacBook; is there another file or library that I can delete that might Reset this icloud account?
0
0
130
Dec ’16
Reply to MSSession summaryText doubling up
happens here too, on the simulator only. Version 10.0 (SimulatorApp-700.5.3)All summary texts, even for previous messages take on the last summary text you set and send.But it seems to work on device. always test on device. Just plug your phone into your computer and run your app on the device.
Topic: App & System Services SubTopic: General Tags:
Oct ’16
Dynamic Subscriptions groups (Twitch business model)
Hello. I need your help. We are developing an application where users provide premium content. Followers have to subscribe to each user's account to access their content through a renewable subscription. Like on Twitch application. Example: User 4 can subscribe to user 1, user 2 and user 3. He will pay every month, 3 subscriptions. The problem is that we can't create all the subscription groups manually because it would be too much work and not scalable. According to the documentation, if we have 1000 premium users (who sell their content), we have to create 1000 subscription groups manually and submit the application for each new selling user. How does Twitch make it possible for a user to subscribe to several accounts at the same time? Can I find documentation on this subject? Thanks in advance.
2
0
688
Oct ’22
Reply to SwiftData changes made in widget via AppIntent are not reflected in main app until full relaunch
In SwiftData, there are local changes and remote changes. Local changes are made from the same model container (ModelContainer); remote changes are made from a different model container. This is covered in the WWDC25 session: SwiftData: Dive into inheritance and schema migration (starting at 13:54). Your main app and its widget use different model containers (because they run in a different process). For your main app, a change made from your widget is remote, and isn't observable. If a view in your main app observes a SwiftData model, or a result set that you fetch from a SwiftData store, it won't get updated for any remote change. If you use @Query, however, the query controller under the hood observes the remote changes, and so a query-back SwiftUI view is supposed to get updated for a remote change. This is clearly described in the mentioned WWDC25 session. If you see otherwise, I’d suggest that you file a feedback report with a reproducible case, and share your report ID here. Best, ——
Jul ’25
shielding behavior - apps in same group
selecting the Facebook app from the FamilyActivityPicker returns an ApplicationToken. When adding that token to a ManagedSettingsStore's shield.applications set, both Facebook and the Facebook Messenger Kids apps gets shielded, even though the latter was not selected from the picker. (Interestingly, the Facebook Messenger app does not get shielded - just the kids version) The same is true for shielding the ApplicationToken produced by selecting the Amazon app. It causes the Alexa app to be shielded. I assume this is occurring because the apps share a keychain group, bundle id substring, or some other property that the picker is using, but how can I avoid this behavior?
1
0
1.3k
Mar ’23
Reply to Thanks for making these!
I second this! I really enjoyed the Widget code along! This is something that google does fairly well as well with their code labs and I've always wanted more of their ilk for our community!
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’20
Can defaults command on macOS read app group preferences?
Is there any way to read/write preferences for a Mac app group using the defaults command? I'm talking about the stuff you would programmatically manipulate using [NSUserDefaults initWithSuiteName:], and that is stored on disk in ~/Library/Group Containers. If I just say defaults read <suite name>, it tells me the the domain does not exist.
Replies
5
Boosts
0
Views
2.9k
Activity
Jan ’23
What does "Cannot solve for a non-group item." mean?
I'm using a UICollectionViewCompositionalLayout, and an exception is thrown when I load my collection view.The exception says Cannot solve for a non-group item.Any idea what might be wrong? Or how to fix it?Here's my layout codefunc sideBarSectionCollectionLayout()->UICollectionViewCompositionalLayout { let size = NSCollectionLayoutSize(widthDimension:.fractionalWidth(1), heightDimension:.estimated(105)) let item = NSCollectionLayoutItem(layoutSize: size) let group = NSCollectionLayoutGroup.horizontal(layoutSize: size, subitems: [item]) let section = NSCollectionLayoutSection(group: group) section.contentInsets = NSDirectionalEdgeInsets(top: 5, leading: 5, bottom: 5, trailing: 5) section.interGroupSpacing = 5 return UICollectionViewCompositionalLayout(section: section) }My cells are set up in the storyboard.I'm running xcode 11.1 (11A1027), and catalina 10.15.1 Beta (19B68f)It started after the catalina upgrade from the GM.Here's the relevant part of the stack trace.2019
Replies
9
Boosts
0
Views
2.4k
Activity
Oct ’19
Is there an implicit ordering to thread group execution?
In a compute (kernel) function, is there an implicit ordering to threadgroup execution.Say I have a 32xN buffer. Take following trivial kernel (ignoring boundary conditions):kernel void example(device uint *buffer [[ buffer(0) ]], const uint2 pos [[ thread_position_in_grid ]]) { uint index = pos.y * N + pos.x; buffer[i - 1] = buffer[i] buffer[i + 1] = 0; }If we dispatch that kernel in N 32x1 threadgroups, is there any way that the thread groups are executed left-to-right? i.e. the resulting buffer is all 0 (once again, ignoring the boundary conditions).Thanks
Replies
2
Boosts
0
Views
504
Activity
Aug ’15
Reply to Network Extension for tvOS?
Thank you very much for looking into it. We were asked by one of the engineers in the Network Extension team (from a lab) to post about it here. I hope we can see this framework become available in a future tvOS release :-)
Replies
Boosts
Views
Activity
Jun ’20
Reply to DrawTogether example code?
By the way, I attended a GroupActivities lab and the engineer seemed surprised the code wasn't up. He indicated that it'd probably go up eventually, but it's unclear whether this was guaranteed.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jun ’21
MISSION CONTROL GROUPING WINDOWS FEATURE REQUEST
I would like to request the ability to group windows in mission control so that I can easily swap all windows between my 2 external monitors easily. Anyway to make swapping all windows between the displays easier would be a huge time saver. Making this an option in shortcuts would work as well.
Replies
0
Boosts
0
Views
555
Activity
Mar ’24
Static method 'buildBlock' requires that 'Group' conform to 'View'
I'm Trying add SwiftUI to Old Project. But Error in Group. How do I solve this problem? My Project: Xcode: 12.5.1 iOS Deployment Target: 13.0 Swift Compiler Error Static method 'buildBlock' requires that 'Group' conform to 'View' Trailing closure passed to parameter of type 'NSManagedObjectContext' that does not accept a closure
Replies
2
Boosts
0
Views
15k
Activity
Sep ’21
I can't add a group to test my app in Test Flight.
After i submited a version to review and it approved. I can`t to add new versions to test in Test Flight. New versions kepp the status Ready to Submit and i can't to add a group to test this versions. I canceled submission before it sent to store and i can't to add a group to test new versions in Test Flight. Can someone help me?
Replies
2
Boosts
0
Views
776
Activity
Mar ’22
Contacts 100's of DUPLICATES of the same GROUP
How do I fix this?I have had this issue since we went from Me.com to iCloud.com with having 100's of duplicates of the same GROUP in my contacts via my iCloud.com account; which is my main iCloud account. I had created a secondary @me.com account that I use only for my Contacts and junk email (this was created at the same time as the iCloud.com transition).1.I have ran an Apple Script trying to delete these duplicates.2. I have spent hours on iCloud.com deleting this group. When I do this the screen will get darker and darker while I am hitting Delete then Enter to confirm the deletion. After a period of time the screen will return to normal and I will continue and the screen goes black again..3. I have tried deleting any files that I know of that are associated to my Contacts on my MacBook; is there another file or library that I can delete that might Reset this icloud account?
Replies
0
Boosts
0
Views
130
Activity
Dec ’16
Reply to MSSession summaryText doubling up
happens here too, on the simulator only. Version 10.0 (SimulatorApp-700.5.3)All summary texts, even for previous messages take on the last summary text you set and send.But it seems to work on device. always test on device. Just plug your phone into your computer and run your app on the device.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’16
Dynamic Subscriptions groups (Twitch business model)
Hello. I need your help. We are developing an application where users provide premium content. Followers have to subscribe to each user's account to access their content through a renewable subscription. Like on Twitch application. Example: User 4 can subscribe to user 1, user 2 and user 3. He will pay every month, 3 subscriptions. The problem is that we can't create all the subscription groups manually because it would be too much work and not scalable. According to the documentation, if we have 1000 premium users (who sell their content), we have to create 1000 subscription groups manually and submit the application for each new selling user. How does Twitch make it possible for a user to subscribe to several accounts at the same time? Can I find documentation on this subject? Thanks in advance.
Replies
2
Boosts
0
Views
688
Activity
Oct ’22
How see who joining WhatsApp group call and who how long logged?
IOS WhatsApp app does not realize the WhatsApp group Joined caller's details.
Replies
0
Boosts
0
Views
238
Activity
Aug ’24
Reply to SwiftData changes made in widget via AppIntent are not reflected in main app until full relaunch
In SwiftData, there are local changes and remote changes. Local changes are made from the same model container (ModelContainer); remote changes are made from a different model container. This is covered in the WWDC25 session: SwiftData: Dive into inheritance and schema migration (starting at 13:54). Your main app and its widget use different model containers (because they run in a different process). For your main app, a change made from your widget is remote, and isn't observable. If a view in your main app observes a SwiftData model, or a result set that you fetch from a SwiftData store, it won't get updated for any remote change. If you use @Query, however, the query controller under the hood observes the remote changes, and so a query-back SwiftUI view is supposed to get updated for a remote change. This is clearly described in the mentioned WWDC25 session. If you see otherwise, I’d suggest that you file a feedback report with a reproducible case, and share your report ID here. Best, ——
Replies
Boosts
Views
Activity
Jul ’25
shielding behavior - apps in same group
selecting the Facebook app from the FamilyActivityPicker returns an ApplicationToken. When adding that token to a ManagedSettingsStore's shield.applications set, both Facebook and the Facebook Messenger Kids apps gets shielded, even though the latter was not selected from the picker. (Interestingly, the Facebook Messenger app does not get shielded - just the kids version) The same is true for shielding the ApplicationToken produced by selecting the Amazon app. It causes the Alexa app to be shielded. I assume this is occurring because the apps share a keychain group, bundle id substring, or some other property that the picker is using, but how can I avoid this behavior?
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’23