Search results for

“A Summary of the WWDC25 Group Lab”

11,535 results found

Post

Replies

Boosts

Views

Activity

Reply to Icon Composer questions...
They said Xcode will just read the .icon file so I assume this is only on macOS 26. I'd love to hear a confirmation of that - I'm not going to load Beta macOS. Beta Xcode was a big enough step for me. Someone asked in the group lab if the .icon files were back portable. The answer was Yes but I think what they meant was you can use the output of the Icon Composer back in older Xcode because they are just PNG or SVG files. (whatever you imported) I seem to remember never coming back from deleting the AppIcon asset. It's in the back of my mind as a Bad Idea! I think I created a new project and copied all my files back in. Probably I didn't have a recent enough commit. Xcode 26 Icon Composer Any Appearance Default Dark Dark Tinted Mono
Jun ’25
Grouping Apps impossible when Apps are not lined up.
I have been playing around with the page layout on my IPad Pro and discovered that is is impossible to group apps if you leave an empty space in the page. I found the option fun to finally place my apps where i want and not just lined up from top to bottom. I discovered if you leave gaps in the page layout it is impossible to groupe apps. The moment you hover the app over the groupe, the groupe shifts back to fill the empty space. Once I filled up all the empty space then the groupe stops moving. It is pretty annoying. The was excited to see the new feature to finally hate it completely. I do hope someone will fix this problem.
1
0
840
Oct ’24
Share security scoped bookmark in app group?
1) Main app and extension register for app groups.2) Main app gets a url from NSOpenPanel, makes a security scoped bookmark and saves is in NSUserdefaults with group container as the suite name.3) Run the extension, grab the bookmark data from user defaults and resolve it. The data is not nil, but fails to resolve:Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format.
20
0
10k
Oct ’16
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
371
Apr ’25
Reply to how to show spatial photo on my Application
Hello! There's new API in RealityKit in visionOS 26 to generate and present spatial scenes in your own app. For more information, check out the new ImagePresentationComponent and Spatial3DImage APIs. The Presenting images in RealityKit sample code project is a great place to get started with these APIs, and the What's new in RealityKit video from WWDC25 has a section showing how to use ImagePresentationComponent for spatial scenes.
Topic: Spatial Computing SubTopic: General Tags:
Jul ’25
Reply to How do you observe the count of records in a Swift Data relationship?
There are some subtle things that determine if a change on a SwiftData model is observable, as discussed in this WWDC25 session (starting from around 14:00.) Your code snippet doesn't show where the folder in FolderView is from and how you add a new item. If you can share a runnable code snippet that demonstrates the issue, I'd be able to figure out why folder doesn't trigger an update. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
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
738
Aug ’17
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
Reply to Icon Composer questions...
They said Xcode will just read the .icon file so I assume this is only on macOS 26. I'd love to hear a confirmation of that - I'm not going to load Beta macOS. Beta Xcode was a big enough step for me. Someone asked in the group lab if the .icon files were back portable. The answer was Yes but I think what they meant was you can use the output of the Icon Composer back in older Xcode because they are just PNG or SVG files. (whatever you imported) I seem to remember never coming back from deleting the AppIcon asset. It's in the back of my mind as a Bad Idea! I think I created a new project and copied all my files back in. Probably I didn't have a recent enough commit. Xcode 26 Icon Composer Any Appearance Default Dark Dark Tinted Mono
Replies
Boosts
Views
Activity
Jun ’25
Grouping Apps impossible when Apps are not lined up.
I have been playing around with the page layout on my IPad Pro and discovered that is is impossible to group apps if you leave an empty space in the page. I found the option fun to finally place my apps where i want and not just lined up from top to bottom. I discovered if you leave gaps in the page layout it is impossible to groupe apps. The moment you hover the app over the groupe, the groupe shifts back to fill the empty space. Once I filled up all the empty space then the groupe stops moving. It is pretty annoying. The was excited to see the new feature to finally hate it completely. I do hope someone will fix this problem.
Replies
1
Boosts
0
Views
840
Activity
Oct ’24
Share security scoped bookmark in app group?
1) Main app and extension register for app groups.2) Main app gets a url from NSOpenPanel, makes a security scoped bookmark and saves is in NSUserdefaults with group container as the suite name.3) Run the extension, grab the bookmark data from user defaults and resolve it. The data is not nil, but fails to resolve:Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format.
Replies
20
Boosts
0
Views
10k
Activity
Oct ’16
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
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
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
371
Activity
Apr ’25
Reply to how to show spatial photo on my Application
Hello! There's new API in RealityKit in visionOS 26 to generate and present spatial scenes in your own app. For more information, check out the new ImagePresentationComponent and Spatial3DImage APIs. The Presenting images in RealityKit sample code project is a great place to get started with these APIs, and the What's new in RealityKit video from WWDC25 has a section showing how to use ImagePresentationComponent for spatial scenes.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to How do you observe the count of records in a Swift Data relationship?
There are some subtle things that determine if a change on a SwiftData model is observable, as discussed in this WWDC25 session (starting from around 14:00.) Your code snippet doesn't show where the folder in FolderView is from and how you add a new item. If you can share a runnable code snippet that demonstrates the issue, I'd be able to figure out why folder doesn't trigger an update. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
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
738
Activity
Aug ’17
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
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
559
Activity
Mar ’24
Reply to Speeding up asset catalog compilation for developer builds
Thank you very much for the reply! You can find a summary of the request in FB9048011.
Replies
Boosts
Views
Activity
Mar ’21
Reply to Help to add some functionality
It displays the game’s information such as the summary and the story line for the games
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’20
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