Search results for

“A Summary of the WWDC26 Group Lab”

11,484 results found

Post

Replies

Boosts

Views

Activity

New iOS-style App Groups Prevent App Submission
We have a macOS app that has a Photos Extension, which shares documents with the app via an app group container. Historically we used to have an iOS-style group identifier (group.${TeamIdentifier}${groupName}), because we were lead by the web interface in the developer portal to believe this to be the right way to name groups. Later with the first macOS 15 betas last year there was a bug with the operating system warning users, our app would access data from different apps, but it was our own app group container directory. Therefore we added a macOS-style group identifier (${TeamIdentifier}${groupName}) and wrote a migration of documents to the new group container directory. So basically we need to have access to these two app group containers for the foreseeable future. Now with the introduction of iOS-style group identifiers for macOS, Xcode Cloud no longer archives our app for TestFlight or AppStore, because it complains: ITMS
1
0
440
Mar ’25
Reply to Task on MainActor does not run on the main thread, why?
Thank you, exhausting enough, everything is clear. Just a final summary for all others reading this thread, the core of my interest (not needed to be further commented, if correct :-) ) Unstructured Task created through Task.init inherits actor async context. (Detached Task does NOT - detached tasks are not subject of the summary below) The inherited actor async context has nothing to do with threads, after each await the thread may change, however the actor async context is kept throughout all the unstructured task (yes, may be on various threads, but this is important just for the executor). If the inherited actor async context is MainActor, then the task runs on the main thread, from beginning till its end, because the actor context is MainActor. This has no impact on any subtasks. Unstructured subtasks may inherit the actor async context, where applicable. async let = tasks, and group tasks (and detached unstructured tasks) do NOT inherit actor context! The bullet above is impor
Jul ’22
Group Session active participants not working
I am using SharePlay and the Group Activities framework in my app and my usecase requires the number of participants, so I am trying to get it like this: _ = SharePlayManager.sharedInstance.groupSession?.$activeParticipants.sink(receiveValue: { participants in print(participants.count) }) But this always prints 0, am I doing something wrong? (groupSession is 100% not nil)
0
0
769
Dec ’21
How to show group name in the subtitle of the Communication Notification?
Hi all, I am trying to display the name of the group in the subtitle of the communication notification, like this: Here is my code: override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler var personNameComponents = PersonNameComponents() personNameComponents.nickname = Test Person let avatar = INImage(url: URL(string: https:imageURL)!) let senderPerson = INPerson(personHandle: INPersonHandle(value: 1233211234, type: .unknown), nameComponents: personNameComponents, displayName: Test Person, image: avatar, contactIdentifier: nil, customIdentifier: nil, isMe: false, suggestionType: .none) let mePerson = INPerson( personHandle: INPersonHandle(value: 1233211232, type: .unknown), nameComponents: nil, displayName: nil, image: nil, contactIdentifier: nil, customIdentifier: nil, isMe: true, suggestionType: .none) let incomingMessagingIntent = INSendMessageIntent(recipients: [mePerson], ou
2
0
2.2k
Oct ’21
Sign in With Apple Group existing app Id issue
Hello, I have multiple apps that i would like to login with apple login connected to same backend. I enabled sign in with apple on all and told them to group with primary app id which is one of them. I went and created 1 service id and key and used that on the backend to login the user. I can login fine on the primary app id but not on the grouped ones. Am I missing anything setup wise?
1
0
797
Sep ’21
Unable to add Group to TestFlight build in App Store Connect
I am unable to add a Group to my app's TestFlight build. Steps: In App Store Connect, Go to TestFlight > Build # > Add Group (Group + button) Add 'Export Compliance Information' Click on 'Start Internal Testing' When following these steps, the entire screen reloads, however navigating back to the same screen shows that no Groups have been added to the build. A friend who is on the same account is able to follow these steps successfully. Is there something we should be checking to allow me to do this?
1
0
3.2k
Aug ’22
Building macOS with App Groups using external CI/CD
Howdy, My macOS application uses app groups, using an entitlement file similar to the one below. com.apple.security.application-groups $(TeamIdentifierPrefix)com.example.test This all works when using my local Xcode. However, when I push the job to our CI/CD server I get an error. error: Provisioning profile doesn't include the com.apple.security.application-groups entitlement. Profile qualification is using entitlement definitions that may be out of date. Connect to network to update. Searching around, namely macOS Unsatisfied entitlements com.apple.security.application-groups and System Extension app-group entitlement issue tells me that I do not need to have the app group contained within my provisioning profile, due to how macOS handles App Groups differently to iOS. Is there a way to tell xcodebuild on my CI box to ignore this and continue building?
5
0
2.5k
Jun ’23
NSUserDefaults don't save with app groups
Hello,I encounter the following problem with NSUserDefaults and app groups:I added a today extension to my main app and created an app group so that I can share data with the extension. I moved my user defaults to the app container by usingNSUserDefaults(suiteName: SharedConstants.appGroup)(where SharedConstants.appGroup is a constant from a dynamic framework). I instantiate the user defaults in the extension the same way. Note that I successfully created the app group in the developer portal and it displays as correct in both targets. I successfully share CoreData with the extension.My main app registers default values for all settings I store in the NSUserDefaults by reading a plist file from the app's main bundle like this:NSBundle.mainBundle().URLForResource(DefaultSettings, withExtension: plist)This worked with standardUserDefaults as expected and I did not change this due to the fact that the extension does not need to register default values (though there are fallbacks for the rare ca
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
3.2k
Aug ’15
Reply to Navigation Link limitations inside a group in swiftui iphone
The limitation to 10 is effectively a very serious limitation of SwiftUI. But you can use Group and even Groups in Groups or Groups of Groups of Groups ! So the number of items is unlimited in fact Note : the forum does not accept the following text presented as code, so I paste a file. Groups of Groups of Groups
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
New iOS-style App Groups Prevent App Submission
We have a macOS app that has a Photos Extension, which shares documents with the app via an app group container. Historically we used to have an iOS-style group identifier (group.${TeamIdentifier}${groupName}), because we were lead by the web interface in the developer portal to believe this to be the right way to name groups. Later with the first macOS 15 betas last year there was a bug with the operating system warning users, our app would access data from different apps, but it was our own app group container directory. Therefore we added a macOS-style group identifier (${TeamIdentifier}${groupName}) and wrote a migration of documents to the new group container directory. So basically we need to have access to these two app group containers for the foreseeable future. Now with the introduction of iOS-style group identifiers for macOS, Xcode Cloud no longer archives our app for TestFlight or AppStore, because it complains: ITMS
Replies
1
Boosts
0
Views
440
Activity
Mar ’25
Reply to Task on MainActor does not run on the main thread, why?
Thank you, exhausting enough, everything is clear. Just a final summary for all others reading this thread, the core of my interest (not needed to be further commented, if correct :-) ) Unstructured Task created through Task.init inherits actor async context. (Detached Task does NOT - detached tasks are not subject of the summary below) The inherited actor async context has nothing to do with threads, after each await the thread may change, however the actor async context is kept throughout all the unstructured task (yes, may be on various threads, but this is important just for the executor). If the inherited actor async context is MainActor, then the task runs on the main thread, from beginning till its end, because the actor context is MainActor. This has no impact on any subtasks. Unstructured subtasks may inherit the actor async context, where applicable. async let = tasks, and group tasks (and detached unstructured tasks) do NOT inherit actor context! The bullet above is impor
Replies
Boosts
Views
Activity
Jul ’22
Group Session active participants not working
I am using SharePlay and the Group Activities framework in my app and my usecase requires the number of participants, so I am trying to get it like this: _ = SharePlayManager.sharedInstance.groupSession?.$activeParticipants.sink(receiveValue: { participants in print(participants.count) }) But this always prints 0, am I doing something wrong? (groupSession is 100% not nil)
Replies
0
Boosts
0
Views
769
Activity
Dec ’21
Reply to Swift Package that has `@objc` in Swift code can’t be used due to Objective-C module failure
Hi, Developer Tools Engineer, So as we discussed on Xcode Open Hours lab today, I filed FB7799213 with these examples (and there is also original FB7781285.) Please track the issue by using these feedback! Thank you!
Replies
Boosts
Views
Activity
Jun ’20
Reply to Can't begin NFCNDEFReaderSession, invalidates immediately.
For Feature not Supported seeming to be random:Make sure the VALUE for the KEY 'com.apple.developer.nfc.readersession.formats' is an ARRAY with 'NDEF' in it. This will all likely become clearer if you visit the Lab @ WWDC or wait until the talk.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’17
How to show group name in the subtitle of the Communication Notification?
Hi all, I am trying to display the name of the group in the subtitle of the communication notification, like this: Here is my code: override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler var personNameComponents = PersonNameComponents() personNameComponents.nickname = Test Person let avatar = INImage(url: URL(string: https:imageURL)!) let senderPerson = INPerson(personHandle: INPersonHandle(value: 1233211234, type: .unknown), nameComponents: personNameComponents, displayName: Test Person, image: avatar, contactIdentifier: nil, customIdentifier: nil, isMe: false, suggestionType: .none) let mePerson = INPerson( personHandle: INPersonHandle(value: 1233211232, type: .unknown), nameComponents: nil, displayName: nil, image: nil, contactIdentifier: nil, customIdentifier: nil, isMe: true, suggestionType: .none) let incomingMessagingIntent = INSendMessageIntent(recipients: [mePerson], ou
Replies
2
Boosts
0
Views
2.2k
Activity
Oct ’21
Expro International Group Ltd - Profile issues
Certificate Details Certificate Name Expro International Group Ltd Certificate Type iOS Distribution Expiration Date 2029/02/11 Created By Thavaseelan Kudarsamy Enabled Capabilities iCloud, In-App Purchase, Personal VPN, Push Notifications App ID ESTSMobile (com.exprogroup.estsmobile) This profile is not installing.
Replies
1
Boosts
0
Views
430
Activity
Feb ’26
Sign in With Apple Group existing app Id issue
Hello, I have multiple apps that i would like to login with apple login connected to same backend. I enabled sign in with apple on all and told them to group with primary app id which is one of them. I went and created 1 service id and key and used that on the backend to login the user. I can login fine on the primary app id but not on the grouped ones. Am I missing anything setup wise?
Replies
1
Boosts
0
Views
797
Activity
Sep ’21
Unable to add Group to TestFlight build in App Store Connect
I am unable to add a Group to my app's TestFlight build. Steps: In App Store Connect, Go to TestFlight > Build # > Add Group (Group + button) Add 'Export Compliance Information' Click on 'Start Internal Testing' When following these steps, the entire screen reloads, however navigating back to the same screen shows that no Groups have been added to the build. A friend who is on the same account is able to follow these steps successfully. Is there something we should be checking to allow me to do this?
Replies
1
Boosts
0
Views
3.2k
Activity
Aug ’22
Reply to VisionOS app stuck in review for a month!
@CodeKit Did Apple state specifically why the app was rejected? Did you spend a day at a developer lab getting your app up to snuff for launching on the App Store? Just curious....
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Developer Account Summary
I have the same problem. I cannot chanc=ge my Developer Account Summary.
Replies
Boosts
Views
Activity
Oct ’15
Building macOS with App Groups using external CI/CD
Howdy, My macOS application uses app groups, using an entitlement file similar to the one below. com.apple.security.application-groups $(TeamIdentifierPrefix)com.example.test This all works when using my local Xcode. However, when I push the job to our CI/CD server I get an error. error: Provisioning profile doesn't include the com.apple.security.application-groups entitlement. Profile qualification is using entitlement definitions that may be out of date. Connect to network to update. Searching around, namely macOS Unsatisfied entitlements com.apple.security.application-groups and System Extension app-group entitlement issue tells me that I do not need to have the app group contained within my provisioning profile, due to how macOS handles App Groups differently to iOS. Is there a way to tell xcodebuild on my CI box to ignore this and continue building?
Replies
5
Boosts
0
Views
2.5k
Activity
Jun ’23
NSUserDefaults don't save with app groups
Hello,I encounter the following problem with NSUserDefaults and app groups:I added a today extension to my main app and created an app group so that I can share data with the extension. I moved my user defaults to the app container by usingNSUserDefaults(suiteName: SharedConstants.appGroup)(where SharedConstants.appGroup is a constant from a dynamic framework). I instantiate the user defaults in the extension the same way. Note that I successfully created the app group in the developer portal and it displays as correct in both targets. I successfully share CoreData with the extension.My main app registers default values for all settings I store in the NSUserDefaults by reading a plist file from the app's main bundle like this:NSBundle.mainBundle().URLForResource(DefaultSettings, withExtension: plist)This worked with standardUserDefaults as expected and I did not change this due to the fact that the extension does not need to register default values (though there are fallbacks for the rare ca
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
3.2k
Activity
Aug ’15
Reply to Add in-app purchases
I'm also having this issue. None of my iap's show up on the summary
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’17