Search results for

“A Summary of the WWDC26 Group Lab”

11,829 results found

Post

Replies

Boosts

Views

Activity

Is it possible to share an app group between Catalyst and AppKit Apps?
I have 2 Apps. A sandboxed native Mac App written in AppKit/SwiftUI. A Catalyst App. I would like them to be able to communicate with each other. I assumed I would be able to do this using a shared App Group but I can't get it to work and I think this is because the App Group naming conventions appear to be different. As far as I can make out: A Mac App uses App groups prefixed with the team ID A Catalyst App uses the iOS App groups which are prefixed with group. I have tried multiple combinations of different prefixes to try and make this work but without success. I have been testing this by using UserDefaults(suiteName: appGroup) and then attempting to read write values between the 2 Apps but without success so far. My questions are: Is sharing an App Group between Catalyst and native technically possible? If it is possible what is the magic combo of App Group prefixes that makes it work? If it is not possible then do I have any other options fo
2
0
1.7k
Jun ’22
How to set a subscription item's level in a subscription group?
In Itunes Connect you can move subscription items up/down inside a subscription group to establish their relative level.But if I have essentially the same subscription, but differing only in duration, how can I assign the subscription items to the same subscription level?A user changing the subscription duration should be considered a crossgrade, not a upgrade or downgrade.I see no way to set 2 subscriptions items to the same subscription level in a subscription group in itunes Connect.Is my assumption that 2 subscription items can both have the same subscription level valid ??
1
0
1.3k
Jan ’18
Can apps in an app group share the same IAP?
I have two versions of my game, one under 100mb and one way bigger. Most users will try the game with the small version and then be promted to download the big verison to be able to play more. The light and big version of the game are in the same app group. Is it possible to share the IAP (in app purchases) for both versions? In Itunes connect its easy to import the achivments and leaderboards between the two app versions in the group. But I see no such option for the IAP...
1
0
538
May ’16
Favorite Athlete Lab - Fatal error thown when performing 'Add Athlete' SegueAction
I'm working through the Favorite Athlete Lab in the Develop in Swift Data Collections book. The guide says: In the addAthlete method, instantiate and return a new instance of AthleteFormViewController. When I control-dray to create the IBActionSegue, I am given the code: @IBSegueAction func addAthlete(_ coder: NSCoder) -> AthleteFormViewController? { return <#AthleteFormViewController(coder: coder)#> } I'm not sure what I should add but I currently have: @IBSegueAction func addAthlete(_ coder: NSCoder) -> AthleteFormViewController? { let newViewController = AthleteFormViewController(coder: coder) return newViewController } When I run the app and click the button connected to the Segue Action, the required init on the View Controller gives the error: Fatal error: init(coder:) has not been implemented I dont know if the way I instantiate and return AthleteFormViewController is the issue, but it seems to be where it goes wrong and where I dont understand quite what is required. Update: Got i
2
0
1.2k
Jun ’22
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
961
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
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
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
500
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.9k
Jan ’23
Is it possible to share an app group between Catalyst and AppKit Apps?
I have 2 Apps. A sandboxed native Mac App written in AppKit/SwiftUI. A Catalyst App. I would like them to be able to communicate with each other. I assumed I would be able to do this using a shared App Group but I can't get it to work and I think this is because the App Group naming conventions appear to be different. As far as I can make out: A Mac App uses App groups prefixed with the team ID A Catalyst App uses the iOS App groups which are prefixed with group. I have tried multiple combinations of different prefixes to try and make this work but without success. I have been testing this by using UserDefaults(suiteName: appGroup) and then attempting to read write values between the 2 Apps but without success so far. My questions are: Is sharing an App Group between Catalyst and native technically possible? If it is possible what is the magic combo of App Group prefixes that makes it work? If it is not possible then do I have any other options fo
Replies
2
Boosts
0
Views
1.7k
Activity
Jun ’22
How to set a subscription item's level in a subscription group?
In Itunes Connect you can move subscription items up/down inside a subscription group to establish their relative level.But if I have essentially the same subscription, but differing only in duration, how can I assign the subscription items to the same subscription level?A user changing the subscription duration should be considered a crossgrade, not a upgrade or downgrade.I see no way to set 2 subscriptions items to the same subscription level in a subscription group in itunes Connect.Is my assumption that 2 subscription items can both have the same subscription level valid ??
Replies
1
Boosts
0
Views
1.3k
Activity
Jan ’18
Can apps in an app group share the same IAP?
I have two versions of my game, one under 100mb and one way bigger. Most users will try the game with the small version and then be promted to download the big verison to be able to play more. The light and big version of the game are in the same app group. Is it possible to share the IAP (in app purchases) for both versions? In Itunes connect its easy to import the achivments and leaderboards between the two app versions in the group. But I see no such option for the IAP...
Replies
1
Boosts
0
Views
538
Activity
May ’16
Favorite Athlete Lab - Fatal error thown when performing 'Add Athlete' SegueAction
I'm working through the Favorite Athlete Lab in the Develop in Swift Data Collections book. The guide says: In the addAthlete method, instantiate and return a new instance of AthleteFormViewController. When I control-dray to create the IBActionSegue, I am given the code: @IBSegueAction func addAthlete(_ coder: NSCoder) -> AthleteFormViewController? { return <#AthleteFormViewController(coder: coder)#> } I'm not sure what I should add but I currently have: @IBSegueAction func addAthlete(_ coder: NSCoder) -> AthleteFormViewController? { let newViewController = AthleteFormViewController(coder: coder) return newViewController } When I run the app and click the button connected to the Segue Action, the required init on the View Controller gives the error: Fatal error: init(coder:) has not been implemented I dont know if the way I instantiate and return AthleteFormViewController is the issue, but it seems to be where it goes wrong and where I dont understand quite what is required. Update: Got i
Replies
2
Boosts
0
Views
1.2k
Activity
Jun ’22
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
961
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
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
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
500
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.9k
Activity
Jan ’23
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