Search results for

“A Summary of the WWDC25 Group Lab”

10,703 results found

Post

Replies

Boosts

Views

Activity

AppleScript App entitlement when access-group identifier="*"
I am developing a Mac app that makes use of App Scripting. The is Sandboxed and thus needs the proper entitlements in order to get permissions to send AppleScript events to other apps. I have gotten this working properly for apps (like Mail and spotify) which specify access-group identifiers like this:<access-group identifier=com.apple.mail.compose access=rw/> <access-group identifier=com.spotify.playback/>However, a few other of the Apple made apps (like Xcode) specify their identifiers like this:<access-group identifier=*/>I have tried to configure my entitlement file like this:<key>com.apple.security.scripting-targets</key> <dict> <key>com.apple.dt.Xcode</key> <array> <string>*</string> </array> </dict>, but when doing this it does not work and I get this error message in the console:AppleEvents/sandbox: Returning errAEPrivilegeError/-10004 and denying dispatch of event xcod/buld from process '
1
0
1.4k
Mar ’17
How do I find out which groups a unified contact belongs to?
Hi, would someone help me get started on a problem in iOS using Swift? How do I get all the groups that a unified contact belongs to? Or how would I check to see if a contact is within a group? That would allow me to find out all the groups that a contact belongs to. I suspect what I need to learn is how to create the predicate to set the predicate property of a CNContactFetchRequest that I need to use.Any help will be appreciated.
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
402
May ’18
Reply to Is it possible to call openWindow() in a navigationDestination in a NavigationStack?
After doing more research it appears that this is not possible. So I converted the navigation stack to a series of buttons. It works. Below is an example button and my App struct. Button { openWindow(id: summary) } label: { Text(Summary) .font(Font.custom(Arial, size: 14.0)) .foregroundColor(Color.blue) .background(Color.clear) .padding(.leading, 35) } .focusable(false) .buttonStyle(.link) @main struct WindowGroupsApp: App { var body: some Scene { WindowGroup (Home) { ContentView() .hostingWindowPosition(window: Home) } Window(Summary, id: summary) { SummaryView() .hostingWindowPosition(window: Summary) } WindowGroup (Table, id: table, for: String.self) { $fundName in NavigationDestinationView(fundName: fundName!, numYears: 1) .hostingWindowPosition(window: Table) } WindowGroup (Chart, id: chart1, for: String.self) { $fundName in CustomChartView(fundName: fundName!, numYears: 1) .hostingWindowPosition(window: Chart) } WindowGroup (Chart, id: chart5, for: String.sel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
If I delete the App Group Does it affects live uses?
I recently changed my developer account from account A to account B. I have successfully transferred my applications. With transfer of applications my app group was not migrated. Question - Can I deleted the app group from account A and recreate it in account B with the exact same identifier. If means does it affects the live users. Which means does the live user can able to use our application without any data loss(Logout)
1
0
1k
Sep ’21
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.1k
Jun ’22
Get all Products for in a subscription group
If I use SubscriptionStoreView.init(groupID), it seems to be able to look up all the Products that have that subscription group ID. But I don't see any public method for doing that myself. Am I missing something, or is SubscriptionStoreView using a private method to do this lookup? I know that historically it has always been necessary to know the product IDs of all the products you want to sell; you have never been able to ask Store Kit to give you a list. SubscriptionStoreView doesn't seem to have this limitation, which is a bit surprising.
0
0
732
Feb ’24
CFPrefsPlistSource Read Error with App Group Preferences
I am encountering the following issue while working with app group preferences in my Safari web extension: Couldn't read values in CFPrefsPlistSource<0x3034e7f80> (Domain: [MyAppGroup], User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd. I am trying to read/write shared preferences using UserDefaults with an App Group but keep running into this error. Any guidance on how to resolve this would be greatly appreciated! Has anyone encountered this before? How can I properly configure my app group preferences to avoid this issue?
0
0
756
Feb ’25
Apple Pay - errors in AuthorizationViewController, Questions on payment Summary
If I only have one product item in Apple Pay, how would I detect a total? My app is a donation platform, so I don't need to actually ship anything, but would like contact info. I have a number of errors that I have tried to figure out to debug to no avail. Any help is appreciated.Also I keep getting this error (this was the same as the sample code given from WWDC).This is in my BuyTicketViewController.swift file. if PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(BuyTicketViewController.paymentNetworks) { let button = PKPaymentButton(type: .Buy, style,: .Black) button.addTarget(self, action: applePayButtonPressed, forControlEvents: .TouchUpInside) button.center = applePayView.center button.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMarin] applePayView.addSubview(button) } }The error says 'expected declaration.'The sample says to use else (for traditional checkout). When I put that it, it breaks the rest of my code and I get lots of errors.line 8 - eror on MerchantIDline 9 - error
0
0
1.2k
Sep ’15
Get Application Scripts directory for app group
For the current app, I can get the Application Scripts directory with FileManager.url(for: .applicationScriptsDirectory, in: .userDomainMask, appropriateFor: nil, create: true), but I cannot find a similar API for application groups. Does one exist, or do I have to construct the URL manually? That would probably be ~/Library/Application Scripts/[app group id], but there doesn't seem to be a FileManager API to access ~ either, as FileManager.default.homeDirectoryForCurrentUser returns /Users/username/Library/Containers/[app id]/Data/.
4
0
745
Feb ’24
Reply to iOS 26 Apple Wallet - Upgrade Boarding Pass with Live Activities
Hi @betul, @WaldiM, The beta spec displayed in the WWDC25 session is outdated. Please see the following documentation to adopt semantic boarding passes in Apple Wallet: Creating an airline boarding pass using semantic tags https://developer.apple.com/documentation/walletpasses/creating-an-airline-boarding-pass-using-semantic-tags Cheers, Paris X Pinkney |  WWDR | DTS Engineer
Topic: App & System Services SubTopic: Wallet Tags:
Jan ’26
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
External testers apparently put in a group on my behalf but the group is no where to be seen and I can no longer add external testers.
Under testers & groups, I only have all testers and iTunes connect users. There is no + for adding testers in all testers and the + in iTunes connect users is only for adding internal testers. I don't have any groups shown nor do I have the option to add a group.I had external testers before (and they still appear in all testers) but I did not create any groups.Maybe the problem is that I have not uploaded any builds yet?
1
0
977
Apr ’17
AppleScript App entitlement when access-group identifier="*"
I am developing a Mac app that makes use of App Scripting. The is Sandboxed and thus needs the proper entitlements in order to get permissions to send AppleScript events to other apps. I have gotten this working properly for apps (like Mail and spotify) which specify access-group identifiers like this:<access-group identifier=com.apple.mail.compose access=rw/> <access-group identifier=com.spotify.playback/>However, a few other of the Apple made apps (like Xcode) specify their identifiers like this:<access-group identifier=*/>I have tried to configure my entitlement file like this:<key>com.apple.security.scripting-targets</key> <dict> <key>com.apple.dt.Xcode</key> <array> <string>*</string> </array> </dict>, but when doing this it does not work and I get this error message in the console:AppleEvents/sandbox: Returning errAEPrivilegeError/-10004 and denying dispatch of event xcod/buld from process '
Replies
1
Boosts
0
Views
1.4k
Activity
Mar ’17
How do I find out which groups a unified contact belongs to?
Hi, would someone help me get started on a problem in iOS using Swift? How do I get all the groups that a unified contact belongs to? Or how would I check to see if a contact is within a group? That would allow me to find out all the groups that a contact belongs to. I suspect what I need to learn is how to create the predicate to set the predicate property of a CNContactFetchRequest that I need to use.Any help will be appreciated.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
402
Activity
May ’18
Reply to Is it possible to call openWindow() in a navigationDestination in a NavigationStack?
After doing more research it appears that this is not possible. So I converted the navigation stack to a series of buttons. It works. Below is an example button and my App struct. Button { openWindow(id: summary) } label: { Text(Summary) .font(Font.custom(Arial, size: 14.0)) .foregroundColor(Color.blue) .background(Color.clear) .padding(.leading, 35) } .focusable(false) .buttonStyle(.link) @main struct WindowGroupsApp: App { var body: some Scene { WindowGroup (Home) { ContentView() .hostingWindowPosition(window: Home) } Window(Summary, id: summary) { SummaryView() .hostingWindowPosition(window: Summary) } WindowGroup (Table, id: table, for: String.self) { $fundName in NavigationDestinationView(fundName: fundName!, numYears: 1) .hostingWindowPosition(window: Table) } WindowGroup (Chart, id: chart1, for: String.self) { $fundName in CustomChartView(fundName: fundName!, numYears: 1) .hostingWindowPosition(window: Chart) } WindowGroup (Chart, id: chart5, for: String.sel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Setting Up Shared Data App Group
I was wondering what the best way of setting up an App Group with a subset of my data for display on the watch.My App was originally written with Core Data. Kelly
Replies
0
Boosts
0
Views
237
Activity
Jun ’15
If I delete the App Group Does it affects live uses?
I recently changed my developer account from account A to account B. I have successfully transferred my applications. With transfer of applications my app group was not migrated. Question - Can I deleted the app group from account A and recreate it in account B with the exact same identifier. If means does it affects the live users. Which means does the live user can able to use our application without any data loss(Logout)
Replies
1
Boosts
0
Views
1k
Activity
Sep ’21
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.1k
Activity
Jun ’22
Get all Products for in a subscription group
If I use SubscriptionStoreView.init(groupID), it seems to be able to look up all the Products that have that subscription group ID. But I don't see any public method for doing that myself. Am I missing something, or is SubscriptionStoreView using a private method to do this lookup? I know that historically it has always been necessary to know the product IDs of all the products you want to sell; you have never been able to ask Store Kit to give you a list. SubscriptionStoreView doesn't seem to have this limitation, which is a bit surprising.
Replies
0
Boosts
0
Views
732
Activity
Feb ’24
CFPrefsPlistSource Read Error with App Group Preferences
I am encountering the following issue while working with app group preferences in my Safari web extension: Couldn't read values in CFPrefsPlistSource<0x3034e7f80> (Domain: [MyAppGroup], User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd. I am trying to read/write shared preferences using UserDefaults with an App Group but keep running into this error. Any guidance on how to resolve this would be greatly appreciated! Has anyone encountered this before? How can I properly configure my app group preferences to avoid this issue?
Replies
0
Boosts
0
Views
756
Activity
Feb ’25
Apple Pay - errors in AuthorizationViewController, Questions on payment Summary
If I only have one product item in Apple Pay, how would I detect a total? My app is a donation platform, so I don't need to actually ship anything, but would like contact info. I have a number of errors that I have tried to figure out to debug to no avail. Any help is appreciated.Also I keep getting this error (this was the same as the sample code given from WWDC).This is in my BuyTicketViewController.swift file. if PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(BuyTicketViewController.paymentNetworks) { let button = PKPaymentButton(type: .Buy, style,: .Black) button.addTarget(self, action: applePayButtonPressed, forControlEvents: .TouchUpInside) button.center = applePayView.center button.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMarin] applePayView.addSubview(button) } }The error says 'expected declaration.'The sample says to use else (for traditional checkout). When I put that it, it breaks the rest of my code and I get lots of errors.line 8 - eror on MerchantIDline 9 - error
Replies
0
Boosts
0
Views
1.2k
Activity
Sep ’15
Get Application Scripts directory for app group
For the current app, I can get the Application Scripts directory with FileManager.url(for: .applicationScriptsDirectory, in: .userDomainMask, appropriateFor: nil, create: true), but I cannot find a similar API for application groups. Does one exist, or do I have to construct the URL manually? That would probably be ~/Library/Application Scripts/[app group id], but there doesn't seem to be a FileManager API to access ~ either, as FileManager.default.homeDirectoryForCurrentUser returns /Users/username/Library/Containers/[app id]/Data/.
Replies
4
Boosts
0
Views
745
Activity
Feb ’24
Reply to iOS 26 Apple Wallet - Upgrade Boarding Pass with Live Activities
Hi @betul, @WaldiM, The beta spec displayed in the WWDC25 session is outdated. Please see the following documentation to adopt semantic boarding passes in Apple Wallet: Creating an airline boarding pass using semantic tags https://developer.apple.com/documentation/walletpasses/creating-an-airline-boarding-pass-using-semantic-tags Cheers, Paris X Pinkney |  WWDR | DTS Engineer
Topic: App & System Services SubTopic: Wallet Tags:
Replies
Boosts
Views
Activity
Jan ’26
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
Not able to send messages in group chat at all
I've not been able to send group iMessages at all since iOS beta 2 and it is same in beta 3 also.Anyone else also facing same issue?
Replies
0
Boosts
0
Views
1.3k
Activity
Jul ’18
External testers apparently put in a group on my behalf but the group is no where to be seen and I can no longer add external testers.
Under testers & groups, I only have all testers and iTunes connect users. There is no + for adding testers in all testers and the + in iTunes connect users is only for adding internal testers. I don't have any groups shown nor do I have the option to add a group.I had external testers before (and they still appear in all testers) but I did not create any groups.Maybe the problem is that I have not uploaded any builds yet?
Replies
1
Boosts
0
Views
977
Activity
Apr ’17