Search results for

A Summary of the WWDC25 Group Lab

10,092 results found

Post

Replies

Boosts

Views

Activity

Provisioning profile missing com.apple.developer.background-modes entitlement, even with Background Modes enabled in Xcode
Hello, I’m having trouble enabling Background Location updates on my iOS app. Xcode: 26.0 beta Team: Individual Developer Program (paid, activated recently) Device: iPhone (physical device, registered and provisioned) Problem When building to device, I get the error: Provisioning profile iOS Team Provisioning Profile: com.mybundle.id doesn't include the com.apple.developer.background-modes entitlement. Automatic signing failed. On the simulator the build succeeds, but on device the signing fails unless I remove the background-modes entitlement from .entitlements. What I tried Enabled Background Modes → Location updates in Signing & Capabilities (UI only). Info.plist contains UIBackgroundModes = location and the required NSLocation…UsageDescription keys. Cleaned Derived Data, removed cached provisioning profiles (~/Library/Developer/Xcode/UserData/Provisioning Profiles). Changed Bundle Identifier to force regeneration of provisioning profiles. Deleted and recreated provisioning profiles from Xcode. Tried b
1
0
207
Sep ’25
App group not working between iOS and watchOS
Hi everyone, I'm using an app group to share data between iOS and it's watch companion app. I ensured that is has the same identifier in Signing & Capabilities and in the .entitlements files. Here is the UserDefaults part: class UserDefaultsManager { private let suitName = group.com.sanjeevbalakrishnan.Test public func saveItems(_ items: [ItemDTO]) { print(Save (items.count) items to shared defaults) let defaults = UserDefaults(suiteName: suitName) let data = try? JSONEncoder().encode(items) defaults?.set(data, forKey: items) } public func loadItems() -> [ItemDTO] { let defaults = UserDefaults(suiteName: suitName) print(defaults) guard let data = defaults?.data(forKey: items) else { print(watchOS received data is empty) return [] } let items = [ItemDTO].from(data: data) print(Load (items.count) items from user defaults) return items } } For testing I called loadItems after saveItems on iOS app and it returned items. However, on watchOS app it always returns empty array. What do I need to consi
3
0
164
Sep ’25
Reply to Concentric corner radius for grouped cells in UICollectionView on iOS 26
It appears that the only way to access any information about a cell's corner radius is obtained only via the cell's layer cornerRadius. List cells never get their corner configuration updated in grouped configurations. Further, I have noted that as of Xcode 16.0 Beta 7, accessing .cornerConfiguration on UICollectionView.appearance() causes a segfault (FB20029166).
Topic: UI Frameworks SubTopic: General Tags:
Sep ’25
Keychain Sharing not working after Updating the Team ID
We are facing an issue with Keychain sharing across our apps after our Team ID was updated. Below are the steps we have already tried and the current observations: Steps we have performed so far: After our Team ID changed, we opened and re-saved all the provisioning profiles. We created a Keychain Access Group: xxxx.net.soti.mobicontrol (net.soti.mobicontrol is one bundle id of one of the app) and added it to the entitlements of all related apps. We are saving and reading certificates using this access group only. Below is a sample code snippet we are using for the query: [genericPasswordQuery setObject:(id)kSecClassGenericPassword forKey:(id)kSecClass]; [genericPasswordQuery setObject:identifier forKey:(id)kSecAttrGeneric]; [genericPasswordQuery setObject:accessGroup forKey:(id)kSecAttrAccessGroup]; [genericPasswordQuery setObject:(id)kSecMatchLimitOne forKey:(id)kSecMatchLimit]; [genericPasswordQuery setObject:(id)kCFBooleanTrue forKey:(id)kSecReturnAttributes]; Issues we are facing: Keych
4
0
392
Sep ’25
Reply to Icon Composer and Xcode building time
I ran some more tests. Removing all groups and layers made the process as fast as it was without the Icon Composer icon. Simplifying the .svg files slightly increased the speed (3.5 minutes instead of 5 minutes). Using .png files instead of .svg gave me the same results (3.5 minutes). In fact, I was using four groups with one layer each. Using only two groups (the first with one layer and the second with three), I managed to compile in 2 minutes and 15 seconds (using the simplified .svg files). @Glazier Sincerely, I don't know how to extract useful information about this issue from the sample utility output. Can you give me some tips?
Aug ’25
SQLite strftime() support with Core Data FetchRequest
My entity has a startDate (NSTime) attribute where I use the date and time in my detail display of the entity. And in my list, I need to group my entities by day (YYMMDD) based on the start date; and I want to ensure that it can adapt to the region where the user is currently (e.g. if user travels or migrate, the YYMMDD should be adapted based on the current region). Does Core Data SectionedFetchRequest supports strftime() functions from SQLite (https://sqlite.org/lang_datefunc.html) or what is an effective alternative sectioned fetch in my case?
1
0
346
Aug ’25
TestFlight Beta Build Webhook Events Missing (Shown in WWDC25 but Not available in API/Portal)
I am trying to add webhook subscriptions for TestFlight build processing completion and TestFlight beta build review completion events. These were showcased in the WWDC25 session: https://developer.apple.com/videos/play/wwdc2025/324/ Currently, I am able to receive webhook events for distribution updates, and the corresponding checkmark option is available in the App Store Connect portal. However, there is no checkmark option in the portal to subscribe to beta build-related events. In the video, there is clearly a checkmark option for the beta review event subscription (at 4:55). The current documentation also does not mention beta processing and beta review event subscriptions. It only lists the event types that are visible in the web portal: https://developer.apple.com/documentation/appstoreconnectapi/webhookeventtype When I try to add the BUILD_BETA_DETAIL_EXTERNAL_BETA_STATE_UPDATED event (as shown in the video at 6:10) via the PATCH API request, I get the below error. errors: [ { id: ****-****-*
2
0
190
Aug ’25
Reply to XCode reverts CoreData's .xccurrentversion
I had been too swamped to be able to continue this conversation because of the highly prioritized work related to WWDC25, and after that I lost the track of this thread. Sorry for that. Thanks to another developer reaching out via DTS with the same issue, I am now picking up this thread, which hopefully is not too late. I'd like to confirm that I can now reproduce the issue. As folks have mentioned, the issue happens only in an Xcode project using folders, not groups. I've always used groups which helps me better organize files logically, and so had not seen the issue before. Xcode 26 Beta 6 doesn't fix the issue. Before the issue is fixed from the system side, the workarounds folks mentioned, like using groups instead or giving the new model version a name alphabetically ordered to the last, sound good to me. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Aug ’25
Concentric corner radius for grouped cells in UICollectionView on iOS 26
What is the recommended way to obtain the concentric corner radius for views within grouped UICollectionView cells? In the most basic example, a UICollectionView with one section and one cell, we observe the cell takes almost the shape of a capsule, but it is indeed not a capsule. What is the way to obtain the radius of the grouped area from within the cell or its registration? I would like to layer elements on top that are concentric to the cell's clip shape. I've tried using custom views with .concentric UICornerConfigurations, setting .cornerConfiguration on the cell and on a custom backgroundView and I've even tried obtaining the .effectiveRadius of the cell after layout (returns 0.0). As of Xcode 26.0 Beta 7, nothing works. This seems like a huge omission; what am I missing here?
1
0
155
Aug ’25
SwiftUI drag & drop: reliable cancellation
Summary In a SwiftUI drag-and-drop flow, the only robust way I’ve found to detect cancellation (user drops outside any destination) is to rely on the NSItemProvider created in .onDrag and run cleanup when it’s deallocated, via a custom onEnded callback tied to its lifecycle. On iOS 26, the provider appears to be deallocated immediately after .onDrag returns (unless I keep a strong reference), so a deinit/onEnded-based cancel hook fires right away and no longer reflects the true end of the drag session. I’d like to know: 1. Is there a supported, reliable way to detect when a drag ends outside any drop target so I can cancel and restore the source row? 2. Is the iOS 26 NSItemProvider deallocation timing a bug/regression or intended behavior? Minimal SwiftUI Repro This example shows: • creating a custom NSItemProvider subclass with an onEnded closure • retaining it to avoid immediate dealloc (behavior change on iOS 26) • using performDrop to mark the drag as finished import SwiftUI import UniformTypeIde
0
0
106
Aug ’25
Reply to Seeking Recommended Approach for Sharing VPN Profile Private Keys Between Sandboxed macOS App and Packet Tunnel System Extension
The best path forward here is for the sysex itself to manage the credential. It’s effectively a launchd daemon and thus can [1] use the System keychain. There’s a couple of ways you could spin this: Have the app download your configuration [2] and then pass it to the sysex via XPC. Have the app use XPC to instruct the sysex to download and save the configuration. In both cases it’s the sysex accessing the System keychain, which avoids all the various issues you’ve bumped in to. [quote='798513021, pawanquantum, /thread/798513, /profile/pawanquantum'] we're unsure if XPC is suitable for sensitive data like private keys during tunnel creation [/quote] XPC should be fine here. See XPC Resources for a lot of links to docs and so on. Some things to note: In the app, set the privileged flag [3] so that the system only looks for the named XPC endpoint in the global namespace. See this post for an explanation of that. In the sysex, declare the named endpoint via NEMachServiceName. In both the app and the sysex, claim
Aug ’25
Reply to Clarification on Apple Pay Domain Verification File Behavior
Hi @umertap, You wrote: [...] Is this the expected behavior for the apple-developer-merchantid-domain-association file? Should the browser download the file silently, or is there another step required, such as displaying the content on the webpage for verification purposes? I've consulted some resources and they indicate that the file download is the correct behavior. However, I'd appreciate confirmation from the community to ensure I'm implementing the verification process correctly. Yes, the file download is the expected behavior. Please see the technote below for the configuration process and more information about validating your merchant domains for Apple Pay: TN3173: Troubleshooting issues with your Apple Pay merchant identifier configuration https://developer.apple.com/documentation/technotes/tn3173-troubleshooting-issues-with-your-apple-pay-merchant-id-configuration#Domain-verification-issues Then, you wrote: [...] Summary is how do we know if apple has verified it? Use the Apple Developer we
Aug ’25
Cannot redeem invitation
I can't accept a TestFlight invitation. I seemed to have gotten myself into some situation that I have been unable to resolve. Here's what I did: Added my work Apple Account to TestFlight. Received an email for TestFlight invitation. Opened link in browser to view invitation code. Entered that code on a device that was signed into a different Apple Account (my personal account on my personal iPhone). The app did install on my personal iPhone, but now I can't accept the invite on my test device, which is signed into the Apple Account that is actually part of the TestFlight group in App Store Connect. I have tried deleting/re-adding/re-inviting my work Apple Account to TestFlight several times. On my personal iPhone, I have tapped on Stop Testing in the TestFlight app and deleted the app I installed there. But I still cannot accept the invite on the test device signed into my work account. When I enter the invite code to redeem, it says: This invitation cannot be accepted because your Apple Account, ,
1
0
221
Aug ’25