Search results for

“A Summary of the WWDC26 Group Lab”

10,966 results found

Post

Replies

Boosts

Views

Activity

mac app id do not have the key APP Group
1.I am applying for APP ID I found some difference between OSX and iOSin iOS it has the key of APP Groups but in OSX do not have the key of APP Group2. When I put the Mac Client submitted to the app store It returns error messagevalue com.test.group for key com.apple.security.application-groups is not supported.3.When I was in the iOS client handle data interaction between app and appex i use the key of APP Group but I am on a MAC client, said the key value is not supported on macOSthat MAC app and data interaction between appex should now how to deal with?anyone can help me?Thank you very much.
3
0
1.9k
Feb ’17
Unable to Write to App Group Shared Container on Device
Hi everyone, I'm facing an issue where I cannot write a file to a shared App Group container in my tvOS app when running on a real device. My code works perfectly on the simulator, but fails on a physical device with a permissions error. I’ve set up an App Group with a custom identifier (e.g., group.), and it’s correctly configured in the Capabilities section of Xcode for both my main app and widget targets. Here’s the code I’m using to save a test file: func saveTestFile() { guard let groupURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group.) else { print(Couldn't access the Group URL.) return } let containerURL = groupURL.appendingPathComponent(Library, isDirectory: true) if FileManager.default.isWritableFile(atPath: containerURL.path) { print(Directory IS writable) } else { print(Directory IS NOT writable) } let fileURL = containerURL.appendingPathComponent(test.txt) let content = Hello App Group! do { try content.write(t
1
0
191
Apr ’25
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.8k
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
BUG: Groups now create Subdirectories in Xcode 9
I seem to have found a BUG in XCode 9, however I can't submit it, so I'll submit it here and hope one of you that can submit bugs can forward it to Apple.It's an easy bug to test: Create a project, then create a Group. In Xcode 8.3.3 this would create a Group in Xcode but not a subdirectory in Finder. NOW it also generates a Subdirectory (check your finder directory). I discovered this by following some directions in a book on Core Data. I started in Xcode and created the groups as described in the book. Later I downloaded Xcode 9 and started over (creating a new project), creating the group now creates a subdirectory also. This might actually be NICE....if it weren't for the fact that some files, like info.plist are expected to be in the main project directory, or at least it errored when I moved the info.list to the Group, as described in the book (it works in Xcode 8.3.3, does not work in Xcode 9 beta 5).I tried this in iOS, as well as in macOS (both create subd
0
0
734
Aug ’17
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
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
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
macOS : Accessing UserDefaults when App Group is enabled
I am developing a macOS app, with an embedded Finder Extension - https://developer.apple.com/documentation/findersync/fifindersync and I want the app and the extension to share UserDefaults - https://developer.apple.com/documentation/foundation/userdefaults The App is Sandboxed for future distribution on the app store. I followed instructions here : https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW1 Both targets are part of the same app group, as it can be seen in the Entitlements: com.apple.security.app-sandbox com.apple.security.application-groups $(TeamIdentifierPrefix)com.stormacq.mac.MyApp ttcom.apple.security.files.user-selected.read-only tt t 2. I am accessing the UserDefaults by the suiteName : t let defaults = UserDefaults.init(suiteName: TEAM_ID.com.stormacq.mac.MyApp) t //where TEAM_ID is the actual team id used to sign the app (something like 123AB45CDE) t However, when tr
6
0
5.0k
Sep ’20
mac app id do not have the key APP Group
1.I am applying for APP ID I found some difference between OSX and iOSin iOS it has the key of APP Groups but in OSX do not have the key of APP Group2. When I put the Mac Client submitted to the app store It returns error messagevalue com.test.group for key com.apple.security.application-groups is not supported.3.When I was in the iOS client handle data interaction between app and appex i use the key of APP Group but I am on a MAC client, said the key value is not supported on macOSthat MAC app and data interaction between appex should now how to deal with?anyone can help me?Thank you very much.
Replies
3
Boosts
0
Views
1.9k
Activity
Feb ’17
Unable to Write to App Group Shared Container on Device
Hi everyone, I'm facing an issue where I cannot write a file to a shared App Group container in my tvOS app when running on a real device. My code works perfectly on the simulator, but fails on a physical device with a permissions error. I’ve set up an App Group with a custom identifier (e.g., group.), and it’s correctly configured in the Capabilities section of Xcode for both my main app and widget targets. Here’s the code I’m using to save a test file: func saveTestFile() { guard let groupURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group.) else { print(Couldn't access the Group URL.) return } let containerURL = groupURL.appendingPathComponent(Library, isDirectory: true) if FileManager.default.isWritableFile(atPath: containerURL.path) { print(Directory IS writable) } else { print(Directory IS NOT writable) } let fileURL = containerURL.appendingPathComponent(test.txt) let content = Hello App Group! do { try content.write(t
Replies
1
Boosts
0
Views
191
Activity
Apr ’25
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.8k
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
BUG: Groups now create Subdirectories in Xcode 9
I seem to have found a BUG in XCode 9, however I can't submit it, so I'll submit it here and hope one of you that can submit bugs can forward it to Apple.It's an easy bug to test: Create a project, then create a Group. In Xcode 8.3.3 this would create a Group in Xcode but not a subdirectory in Finder. NOW it also generates a Subdirectory (check your finder directory). I discovered this by following some directions in a book on Core Data. I started in Xcode and created the groups as described in the book. Later I downloaded Xcode 9 and started over (creating a new project), creating the group now creates a subdirectory also. This might actually be NICE....if it weren't for the fact that some files, like info.plist are expected to be in the main project directory, or at least it errored when I moved the info.list to the Group, as described in the book (it works in Xcode 8.3.3, does not work in Xcode 9 beta 5).I tried this in iOS, as well as in macOS (both create subd
Replies
0
Boosts
0
Views
734
Activity
Aug ’17
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
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
553
Activity
Mar ’24
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
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
774
Activity
Mar ’22
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
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 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
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
macOS : Accessing UserDefaults when App Group is enabled
I am developing a macOS app, with an embedded Finder Extension - https://developer.apple.com/documentation/findersync/fifindersync and I want the app and the extension to share UserDefaults - https://developer.apple.com/documentation/foundation/userdefaults The App is Sandboxed for future distribution on the app store. I followed instructions here : https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW1 Both targets are part of the same app group, as it can be seen in the Entitlements: com.apple.security.app-sandbox com.apple.security.application-groups $(TeamIdentifierPrefix)com.stormacq.mac.MyApp ttcom.apple.security.files.user-selected.read-only tt t 2. I am accessing the UserDefaults by the suiteName : t let defaults = UserDefaults.init(suiteName: TEAM_ID.com.stormacq.mac.MyApp) t //where TEAM_ID is the actual team id used to sign the app (something like 123AB45CDE) t However, when tr
Replies
6
Boosts
0
Views
5.0k
Activity
Sep ’20