Search results for

A Summary of the WWDC25 Group Lab

10,087 results found

Post

Replies

Boosts

Views

Activity

Reply to Mac OS X App for collecting linear displacement of a sample
I've often used serial-to-USB converters connected to a Mac, and not had reliability problems with them. I like to use the Silabs CP2104. Silicon Labs have drivers for these for various platforms. Your code need to know the /dev name of the serial device, which you can derive by inspection in your case (just plug it in, install the driver, list /dev). To get things going, you can use a terminal emulator like CoolTerm. The Modbus RTU protocol is well described in the documentation you linked. If I were you, I'd make a command line tool written in Python which reads one displacement value from the voltmeter. I'd utilize that tool into my app's bundle and call it from there. Since I don't use Python very often and the problem is simple, I'd ask an LLM to write the program for me. you said although the instrument is displaying 0.000 volts, the data collected changes at each message I send to the instrument, proving me that Modbus RTU set up is not working. but what does the data you collected actually re
Topic: App & System Services SubTopic: Hardware Tags:
2w
Best practice to prevent users from switching between subscriptions in the same group?
Hello everyone, For example, our app currently has one subscription group in App Store Connect with 5 plans (2 annual, 2 monthly, and 1 quarterly). By default, users can go into Apple Subscriptions in Settings and freely switch between all of these plans. However, our business requirement is to only allow users to stay on one annual plan and one quarterly plan. We don’t want them to switch to the other plans. My questions are: Is there any best practice or recommended approach to restrict subscription switching within the same group? Would removing the unwanted products from sale be the correct approach, or are there any risks/downsides with this method? Has anyone faced a similar situation and found a practical solution? Any guidance or shared experience would be greatly appreciated. Thanks!
4
0
105
2w
SwiftSMTP broken: Error ioOnClosedChannel on latest macOS
Hi! I wrote an internal used backup command line tool which is in use since several years. Today I got an error while sending an email: “Failed: ioOnClosedChannel”. I assume that the latest macOS updates did break my app. On the server I use macOS 15.7 and on my development machine macOS 26. Here is the related code: private func sendMail() { var a : [Email.Attachment] = [] if self.imageData != nil { switch self.imageType { case .tiff: a.append(Email.Attachment(name: Statistics.tif, contentType: #image/tiff#, contents: ByteBuffer(bytes: self.imageData!))) case .pdf: a.append(Email.Attachment(name: Statistics.pdf, contentType: #application/pdf#, contents: ByteBuffer(bytes: self.imageData!))) case .unknown: fatalError(Unimplemented attachment type!) } } mailHtml = mailHtml.replacingOccurrences(of: , with: n) let email = Email(sender: .init(name: Backup, emailAddress: SENDER@MYDOMAIN), replyTo: nil, recipients: recipients, cc: [], bcc: [], subject: self.subject, body: .universal(plain: self.mailText, html: mailH
2
0
213
2w
kTCCServiceSystemPolicyAppData warning from Transparency Consent and Control (TCC)
The problem is described in full with log output in #16844 We are having an issue with TCC prompting users for access to the app group container despite signing with entitlements following all guidelines. This is a regression from the Feb 2025 Changes discussed in App Groups: macOS vs iOS: Working Towards Harmony The problem can only be reproduced with Xcode 16.0 and later. The entitlements for the app include access for the group container with [Key] com.apple.security.application-groups [Value] [Array] [String] G69SCX94XU.duck The documentation notes the group name can be arbitrary, e.g. .. Cyberduck uses G69SCX94XU.duck by default. Interestingly enough the alert is not shown when a group name matching the bundle identifier is used, e.g. G69SCX94XU.ch.sudo.cyberduck.
6
0
399
2w
Reply to 403 Forbidden error
I'm having the exact same problem. Keys are created in https://appstoreconnect.apple.com/access/integrations/api with sufficient access permissions. To eliminate all potential misdoings on my side I used altool to generate the JWTs for API requests: JWT=$(xcrun altool --generate-jwt --apiKey ${APP_STORE_CONNECT_KEY_IDENTIFIER} --apiIssuer ${APP_STORE_CONNECT_ISSUER_ID} 2>&1 | tail -1) With the generated JSON Web Token I can successfully access endpoints such as List Apps 10:56:08 priit@marmot ~ curl -H Authorization: Bearer ${JWT} https://api.appstoreconnect.apple.com/v1/apps | jq '.meta' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10945 100 10945 0 0 15788 0 --:--:-- --:--:-- --:--:-- 15770 { paging: { total: 1, limit: 50 } } and List Users 10:56:35 priit@marmot ~ curl -H Authorization: Bearer ${JWT} https://api.appstoreconnect.apple.com/v1/users | jq '.data[] | .attributes.roles' % Total % Received % Xferd Average Speed Time Time Time Curren
2w
CardDAV - empty Response
Hello,I try to get all contacts from an iCoud Account...First I run:< ?xml version=1.0 encoding=UTF-8 ?> < d:propfind xmlns:d=DAV: > < d:prop > < d:current-user-principal/ > < /d:prop > < /d:propfind >Then I get /xxxxxxxxxxx/carddavhome/ and run:< ?xml version=1.0 encoding=UTF-8? > < d:propfind xmlns:d=DAV: xmlns:card=urn:ietf:params:xml:ns:carddav > < d:prop > < card:addressbook-home-set/ > < /d:prop > < /d:propfind >This give me the URL https://pXX-contacts.icloud.com:443/xxxxxxxxxxx/carddavhome/ then I send the following request to this URL:< ?xml version=1.0 encoding=UTF-8? > < d:propfind xmlns:d=DAV: xmlns:card=urn:ietf:params:xml:ns:carddav > < d:prop > < d:displayname/ > < d:resourcetype/ > < /d:prop > < /d:propfind >And I get:< ?xml version=1.0 encoding=UTF-8? > < multistatus xmlns=DAV: > < response > < href >/xxxxxxxxxxx/carddavhome/< /href > < propstat &g
1
0
799
2w
Inconsistent Xcode cloud performance
Hi! For the past few days I have been experiencing slower builds in my workflows, without a clear reason of the cause as sometimes they run with the old usual time. I tried contacting the Developer Support without success in finding out the reason of these issues, the case number was 102661768064. As an example, I have a workflow for Pull request checks that involves testing and analyzing. This usually ran for 11-15mins, but now it could take up to 30mins or more. Looking into the logs it just seems that the machine it's particularly slow, then in another build it goes with usual times again. As an example, below are the summaries of two builds of the same branch: Being in the free tier, these new long times are burning my free time quite faster and probably will need to look into running this checks in GitHub Actions if it doesn't improve. A hint of what might be wrong is also found in an error in the test workflow, which denotes a problem booting a simulator. Any help on this will be appreciated, t
1
0
118
2w
Reply to kTCCServiceSystemPolicyAppData warning from Transparency Consent and Control (TCC)
I can confirm this is not reproduced in a virtual machine running 15.6_24G84 (btw cannot find 15.7 (24G222) for download). As previously written to DTS this was not reproduced in 26.0_25A5327h either and the reason was this was also tested in a clean virtual machine. On the installation this is reproduced running 15.7 (24G222) the folder in ~/Library/Group Containers has indeed a .com.apple.containermanagerd.metadata.plist file with faulty, cached MCMMetadataIdentifier key referencing a different team identifier that was used for testing at some point.
Topic: Code Signing SubTopic: Entitlements Tags:
2w
AppGroups data loss after App transfer and App update.
Hi, I just released a new version of an app that was transferred from another developer account. The previous version of this app used the App Groups feature to store some important data, and I would like to retrieve that data. In the new version, I’m using the same bundle identifier and the same App Group ID (which has already been deleted from the original developer account). I also added the App Groups entitlement in the project settings and set the same App Group ID. However, I still cannot access the data in the App Group. From the documentation and issues I’ve found, it seems that an app should still have permission to access the same App Group after being transferred. Did I miss something? Thanks!
2
0
147
3w
Reply to AppGroups data loss after App transfer and App update.
A colleague pointed out that I did't quite get the details right here. But, nonetheless the key thing to know is that any app groups created in a previous developer account will not follow an app to a new developer account after an app transfer. Any data stored using an app group created in a previous developer account will not be accessible after an app transfer even if you use the same app group names. Here are the corrected details: App group IDs never start with an App ID prefix. Rather: iOS-style app group IDs start with group. macOS-style app group IDs start with the Team ID. To read more, please see the forums thread App Groups: macOS vs iOS: Working Towards Harmony
Topic: Code Signing SubTopic: Entitlements Tags:
3w
Consumable ticket sharing within groups
Hello, I would like to ask for your opinion on whether the following in-app purchase (IAP) specifications would comply with the App Store Review Guidelines. ■ App Overview ・The app allows users to create a “Family Group” by inviting other family members to join. ・The app provides brain-training games. The game itself is displayed via WebView. ・All purchases use in-app purchase (IAP) only. No external payments or links are provided. ■ Purchase Types (2 models) ① Group Unlimited Plan ・If one member of a family group purchases this plan, all members of the same group can play the games without limits for a certain period. ・This is based on the app’s own group-sharing mechanism, not Apple’s “Family Sharing.” We will clearly state this in the UI to avoid confusion. ② Ticket System (Consumable) ・One user in the group purchases game-play tickets. ・Other members of the same group can also consume those tickets to play. ・Tickets are only shared and consume
1
0
26
3w
iOS 26: Interface orientation controls ignored on iPad - shouldAutorotate and supportedInterfaceOrientations not respected
Summary: On iOS 26.0, iPad apps ignore standard interface orientation controls (shouldAutorotate, supportedInterfaceOrientations, Info.plist settings) and rotate to landscape despite being configured for portrait-only. Steps to Reproduce: Create iPad app with portrait-only configuration Implement shouldAutorotate returning NO Implement supportedInterfaceOrientations returning UIInterfaceOrientationMaskPortrait Set Info.plist UISupportedInterfaceOrientations~ipad to UIInterfaceOrientationPortrait only Run on iPad with iOS 26.0 Rotate device physically Expected Result: App should remain locked in portrait orientation Actual Result: Entire app interface rotates to landscape, ignoring all orientation controls Additional Information: Same code works correctly on iOS 18.4 (stays portrait-only) Problem affects entire UI including status bar and all view controllers All standard orientation control methods are implemented correctly Issue occurs on both simulator and physical devices Code Sample: objc -(BOOL)
Topic: UI Frameworks SubTopic: UIKit
2
0
149
3w
Reply to kTCCServiceSystemPolicyAppData warning from Transparency Consent and Control (TCC)
Interesting. That setup shouldn’t trigger a TCC alert. Do you see the problem if your run the app on a fresh system? That is, one that’s never seen your app before? App group containers do record the identity if the code that created them, and that can sometimes confuse things, so it’s best to verify the result on a fresh Mac. I generally use a VM for this, restoring it to a fresh snapshot between tests. However, you can also do this by creating a new user account on your main Mac. And once you get into the swing of things, you can simple delete the container from ~/Library/Group Containers. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Entitlements Tags:
3w
Reply to NSDocument doesn't autosave last changes
I'd really appreciate any concrete tip on how I should save the document, because everything I've tried doesn't work. Simply calling updateChangeCount(_:), like we already saw, messes with the undo mechanism. How is the text view able to save everything I input when the window first appears and then quit the app, but isn't able to when switching to another app and back again? This is the last thing I tried, and when quitting the app the .terminateNow branch is always executed. Just calling endUndoGrouping() without beginUndoGrouping() logs an error in the Xcode console that no undo group is currently open. func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply { for document in documents { document.undoManager?.beginUndoGrouping() document.undoManager?.endUndoGrouping() } let edited = documents.filter({ $0.hasUnautosavedChanges }) if edited.isEmpty { return .terminateNow } var remaining = edited.count for document in edited { document.autosave(withImplicitCancella
Topic: UI Frameworks SubTopic: AppKit Tags:
3w
Anchor an Reality scene on an image anchor
Developing a prototype Vision Pro app and would like to render a 3D scene made from Reality Composer Pro on an image anchor in a RealityView. But I have no luck so far to make it work and need some guidance to move on. I got the image file stored in the assets like below: And from below is the source codes: import SwiftUI import RealityKit import RealityKitContent struct AnchorView: View { @State var imageEntity: Entity = { let anchorEntity = AnchorEntity(.image(group: AR Resources, name: reanchor)) return anchorEntity }() var body: some View { RealityView { content in do { // Add the initial RealityKit content if let scene = try? await Entity(named: Scene, in: realityKitContentBundle) { imageEntity.addChild(scene) content.add(imageEntity) } } catch { print(Error occurs when adding reality view content: (error)) } } } }
3
0
1.1k
3w