Search results for

A Summary of the WWDC25 Group Lab

10,113 results found

Post

Replies

Boosts

Views

Activity

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.1k
Oct ’21
Getting System prompts with keychain access groups on macOS
I've created two simple mac apps that both are configured with the same keychain access group. I tried inserting a keychain record from App A and then reading it from App B. When App B requests the keychain entry, I get a system prompt saying App B wants to use your confidential information stored in in your keychain. and I have to enter my password to approve the request. My understanding was that setting keychain access groups would obviate the need for a system prompt. Is that an incorrect assumption? Or is there something mis-configured here? Any pointers or advice would be appreciated. Thanks.
0
0
427
Jun ’21
Reply to Playgrounds scroll while typing. Anyone else or just me?
I can also confirm that this annoying scrolling happens, using Xcode 10.2.1 on macOS 10.14.5.The playgrounds in question are downloaded as part of the student materials for the Apple book Everyone Can Code: App Development with Swift (Swift 4 Edition). There is a link on page 5 to download the student materials (the link is https://education-static.apple.com/app-dev-swift/v2.6/resources/student.zip).The downloaded zip file expands to a folder called Student Resources. The playground that the original question refers to is: Student Resources/3 - Navigation and Workflows/5 - Enumerations/lab/Lab - Enumerations.playground
May ’19
Access to NSUserDefaults via App Group after an Account Transfer
My app was recently transferred from account X to Y. We went through all of the documentation and it's gone ok bar one big issue. The app update that we last sent to Test Flight no longer has access to our apps App Group shared user defaults. It's been suggested to me to delete the app group id from the old account, and recreate it in our new account. I'd like to confirm a couple of points before I proceed. Will the production version of the app be affected if I delete the app group from the old account. After recreating the app group in the new account, will the data in shared user defaults become available again?
5
0
1.2k
Apr ’23
How do you get group/user info from file ACLs?
Documentation is sparse on this and it doesn't help that Apple's version differs from POSIX. I know to specify ACL_TYPE_EXTENDED for acl_get_file() and know how to cycle through entries. From what I can tell, the tag is either ALLOW or DENY and you can check the permset for which actions the tag applies to. I can't figure out how get the group or user the entry applies to. The only way I've been able to get this info is by using acl_to_text and scraping that output. Anyone know how to do this using the acl APIs?
5
0
435
Oct ’24
Unable to Add Internal Groups to TestFlight Builds / Cannot distribute
In App Store Connect I've uploaded a new build about 11 hours ago and but I'm unable to distribute the App to my tester groups - including internal. The internal group is grayed out. I am able to Select an External group but they actually do not receive any email notification nor do they see any update within their TestFlight App. I've attempted to upload the build a few times, including old builds which had been distributed in the past to no avail. I'm not able to distribute to any tester group, please advise.
9
0
9.5k
Dec ’22
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
Shared App Group NSUserDefaults no longer working
Hi,I have spent 8 hours on this alreay. So I not posting recklessly.My app was working fine prior to 4 months ago. I had an app extention that showed scheduled events from the app. Either a 9.x release changed things or when I adding a new device it messed with my portal entitlements/provisioning. I ran thru an online tutorial that guides one quickly to set up app groups and nsuserdefaults to see if I could get it to work with a clean slate. It can be seen by following link at the bottom. Basically I got the app working and the app can send the data to the shared group and read it back when the app goes active again. The extentsion never reads anything but zero from the Defaults address pointer.I was/am running this on iphone with 9.3.2 and now I am using XCode 8 Beta. Is there a better end to end tutorial that will get me a working extension with shared defaults thru app groups ?Is there a debugging checklist for shared app groups ?Is there a known issue with later 9X Ios
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
408
Jul ’16
Reply to How can a student start learning Apple’s approach to design?
Hi Chase, I am delighted to hear that you are interested in joining us in the future. I had a similar dream at your age, and it appears that if you continue to pursue your goals, success will eventually come your way. To get started, I recommend learning about coding and installing Xcode on your computer. Additionally, there are numerous videos from WWDC that provide up-to-date information on the subject. I wish you the best of luck in your endeavors. WWDC Videos: https://developer.apple.com/wwdc25/ Albert Pascual
  Worldwide Developer Relations.
Topic: Design SubTopic: General
Sep ’25
Problems with group insets on watchOS 1.0.1
I have rebuilt my app using XCode 7 and am testing that it works on my watch running watchOS 1.0.1 before I upgrade the device to version 2.0. Everything seems fine so far except that my groups do not have their custom insets (all zero) but instead have insets of 2. If I change the insets to larger values then it seems to work as expected, but not for zeroes.This works fine in the simulator (which runs 2.0) but not on the watch when running 1.0.1. I notice that the new API offers the ability to set the insets at runtime (which is very useful - thanks for that) so I'm wondering if this is related to that?Sounds like I need to file a bug report but I thought I'd mention it here in case anyone else notices that things are positioned strangely when running an app built with XCode 7 on a watch running 1.0.1.
0
0
247
Jun ’15
How to migrate NSPersistentCloudKitContainer to App Group to access in Widget
I have shipped an app that utilizes Core Data in CloudKit viaNSPersistentCloudKitContainer. I now want to add a widget that can query for the current data to display. It's my understanding you need to migrate this to a new location available to a shared App Group. How do you do this? container = NSPersistentCloudKitContainer(name: AppName) container.loadPersistentStores { description, error in //handle error } container.viewContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy container.viewContext.automaticallyMergesChangesFromParent = true
1
0
1.4k
Jun ’21
Reply to MacOS Native App(C/C++) with global operators new and delete overriden CRASH due to mismatch of operators calls
Normally I’d suggest you open a DTS tech support incident and talk to our tools specialist about this, but there’s not much point doing that right now because all of DTS is super busy with WWDC preparation. However, WWDC taketh away but WWDC also giveth (-: We’re running WWDC labs all next week and I’m sure there will be a bunch of developer tools labs. Try submitting your question there. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Jun ’22
Duplicate bar buttons appear when .toolbar is applied to a Group View
Is it normal behaviour that when I apply a .toolbar to a Group that I see duplicate buttons equal to the number of Views in the Group? e.g. Group { Text(1) Text(2) Text(3) } .toolbar { Button(Hi) { } } Results in 3 toolbar buttons appearing in the UI, like in this screenshot: If not, then I'll submit feedback about this bug but thought I'd ask first. Xcode Version 16.0 beta 6 (16A5230g) iPhone 15 Pro Simulator
Topic: UI Frameworks SubTopic: SwiftUI
4
0
823
Aug ’24