Search results for

xcode github

94,695 results found

Post

Replies

Boosts

Views

Activity

Reply to Dell monitor volume control issue on iMac via USB-C
Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. I'll check the status next time I do a sweep of forums posts where I've suggested bug reports and post any information about changes I am able to share to this thread. Bug Reporting: How and Why? has tips on creating your bug report.
Topic: Media Technologies SubTopic: Audio Tags:
1w
Purchase Intent does not work when app has been launched
I'm implementing PurchaseIntent.intents for App Store in-app purchase promotions, following Apple's WWDC guidance. The API only works on cold launch (killed→launch), but fails on background→foreground transitions, making App Store promotions unusable. Sample code as followed from WWDC23 video What's new in StoreKit 2 and StoreKit Testing in Xcode. In the StoreKitManager observable class, I have this function which is initialized in a listening task: func listenForPurchaseIntent() -> Task { return Task { [weak self] in for await purchase in PurchaseIntent.intents { guard let self else { continue } let product = purchase.product await self.purchaseProduct(product) } } } where purchaseProduct() will perform the call to: try await product.purchase() ISSUE: When the app is in background (after previously launched), and the purchase intent is initiated from Xcode Transaction Manager or using the itms-services://?action=purchaseIntent method, the system foregrounds my app but the purchase intent
3
0
148
1w
Universal Links are not working in the Xcode 26 simulators
After updating the Xcode 26, defined universal links are not working in the iOS simulator. In the configuration, we have verified all the things including AASA file hosting and domain configuration. It is working properly in the real devices. Issue occurring only for Simulators. How can I debug it in the simulators to validate this ? Xcode Version: 26.1 Simulator iOS: 26.1
5
0
548
1w
SwiftUI: AlignmentGuide in Overlay not working when in if block
Scenario A SwiftUI view has an overlay with alignment: .top, the content uses .alignmentGuide(.top) {} to adjust the placement. Issue When the content of the overlay is in an if-block, the alignment guide is not adjusted. Example code The example shows 2 views. Not working example, where the content is an if-block. Working example, where the content is not in an if-block Screenshot: https://github.com/simonnickel/FB15248296-SwiftUIAlignmentGuideInOverlayConditional/blob/main/screenshot.png Tested on - Xcode Version 16.0 RC (16A242) on iOS 18.0 Code // Not working .overlay(alignment: .top) { if true { // This line causes .alignmentGuide() to fail Text(Test) .alignmentGuide(.top, computeValue: { dimension in dimension[.bottom] }) } } // Working .overlay(alignment: .top) { Text(Test) .alignmentGuide(.top, computeValue: { dimension in dimension[.bottom] }) } Also created a Feedback: FB15248296 Example Project is here: https://github.com/simonnickel/FB15248296-SwiftUIAlignmentGuideInOverlayConditional/tre
2
0
469
1w
Reply to Universal Links are not working in the Xcode 26 simulators
Is everything working on a physical device? Yes.. it is working fine in the production itself. In the console, I could see logs like, `1.Beginning data task AASA-4566C78B-005A-404E-B20C-2C09A8AA0062 { domain: example.com, bytes: 0, route: cdn } 2.Task <847A193E-5A40-4AC5-85D8-6CA8ED662BE4>.<29> resuming, timeouts(60.0, 604800.0) qos(0x15) voucher((null)) activity(00000000-0000-0000-0000-000000000000) 3. Already downloading data for domain example.com, so skipping a second download (non-discretionary) ` Is this skipping the download of AASA of my domain ? Is this the issue ? I have tried to clear the cache of swcd as well. Couldn't find the correct path of it in Xcode 26. Is this updated in the Xcode 26 ?
1w
How to figure out sync errors in Production?
I'm using SwiftData with CloudKit private database. I was able to identify the error on my device by debugging in Xcode with com.apple.CoreData.SQLDebug flag. However, in Production, I couldn't find a way to get the cause of errors. I tried inspecting the error coming from eventChangedNotification. The NSPersistentCloudKitContainer.Event error does not contain any underlying error (neither CKError.userInfo nor in NSError.underlyingError). It only reports a partial failure with CKErrorDomain code 2. If a user encounter an error, there seems to be no way to retrieve the error details. Is there any way to access the error details or logs in Production?
1
0
107
1w
Errors with PerfPowerTelemetryClientRegistrationService and PPSClientDonation when running iOS application in Xcode
I've suddenly started seeing hundreds of the same block of four error messages (see attached image) when running my app on my iOS device through Xcode. I've tried Cleaning the Build folder, but I keep seeing these messages in the console but can't find anything about them. Phone is running iOS 26.1. Xcode is at 16.4. Mac is on Sequoia 15.5. The app is primarily a MapKit SwiftUI based application. Messages below: Connection error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.PerfPowerTelemetryClientRegistrationService was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.PerfPowerTelemetryClientRegistrationService was invalidated: Connection init failed at lookup with error 159 - Sandbox restriction.} (+[PPSClientDonation isRegisteredSubsystem:category:]) Permission denied: Maps / SpringfieldUsage (+[PPSClientDonation sendEventWithIdentifier:payload:]
6
0
291
1w
Reply to Errors with PerfPowerTelemetryClientRegistrationService and PPSClientDonation when running iOS application in Xcode
On the workaround front, you’re using MKMapView via UIViewRepresentable. If you switch to the shiny new Map SwiftUI view, does that avoid the problem? Haha I knew you were going to say that. :) Probably, but we still support back to iOS 16 so that's not currently an option. And, since it's just annoying log entries... Another option is to filter these log entries out in Xcode: Thanks for that! I also found the right-click / hide option in the logs that allow the filtering by various categories which definitely helps a lot. As always, thanks so much for your help.
1w
Reply to Can we decode twice in the same session with unarchiver?
I’ve found that it’s quicker to resolve archiving issues when we share small working examples. To that end, I took the BorderModel and FrameModel classes from this post and wrote the following code to exercise archiving and unarchiving: func main() throws { let borderModel = BorderModel(showBorder: true) let models = [FrameModel(count: 1), FrameModel(count: 2)] let archiver = NSKeyedArchiver(requiringSecureCoding: true) defer { archiver.finishEncoding() } archiver.encode(borderModel, forKey: borderModel) archiver.encode(models as NSArray, forKey: models) let archive = archiver.encodedData let unarchiver = try NSKeyedUnarchiver(forReadingFrom: archive) defer { unarchiver.finishDecoding() } assert(unarchiver.requiresSecureCoding) guard let borderModel2 = try unarchiver.decodeTopLevelObject(of: BorderModel.self, forKey: borderModel), let m = try unarchiver.decodeTopLevelObject(of: [NSArray.self, FrameModel.self], forKey: models), let models2 = m as? [FrameModel] else { throw POSIXError(.ENOTTY) // Need a better
Topic: App & System Services SubTopic: General Tags:
1w
`import Collections` does make no sense errors.
I downloaded package, I can see it in Package Dependencies tab, [swift-collections | https://github.com/apple/swift-collections.git | Up to Next Major Version] — looks OK. But (quite strange): import Collections //🛑 No such module 'Collections' typealias Objects = OrderedSet // No error I took Collection word from a list or typed — no difference. if I remove import Collections there is no OrderedSet anymore (of course) Can't compile. Cleaned build folder, restarted Xcode... What could be wrong with it? Any ideas?
1
0
21
1w
Reply to Errors with PerfPowerTelemetryClientRegistrationService and PPSClientDonation when running iOS application in Xcode
[quote='873874022, FT-cfoy, /thread/811791?answerId=873874022#873874022, /profile/FT-cfoy'] I wish I could ignore it [/quote] )-; [quote='873870022, FT-cfoy, /thread/811791?answerId=873870022#873870022, /profile/FT-cfoy'] I've submitted a bug report with this FB21768382 [/quote] Thanks. That’s definitely the right choice in this situation. Also, please add a sysdiagnose log to that bug, one taken on your device shortly after reproducing the issue. That helps with the triage. On the workaround front, you’re using MKMapView via UIViewRepresentable. If you switch to the shiny new Map SwiftUI view, does that avoid the problem? Another option is to filter these log entries out in Xcode: Locate the Filter box at the bottom of the Console debug area. Copy the string subsystem:com.apple.PerfPowerServices and paste it into the box. That’ll create a Subsystem filter. In the menu hanging off that filter, select “≠ is not”. For many other systems log hints and tips, see Your Friend the System Log. Share and Enjo
1w
Reply to Announcing the Swift Student Challenge 2026
Hi i have a question. I’m working on my Swift Student Challenge submission using iOS 26 APIs (FoundationModels) along with AVFoundation + Vision to capture user input and generate feedback. Since Swift Playgrounds doesn’t support FoundationModels framework, I’m using an Xcode App Playground, but I heared that submissions are reviewed in the Simulator, which doesn’t support live camera feed. I’m unsure how to handle this.
1w
Reply to Errors with PerfPowerTelemetryClientRegistrationService and PPSClientDonation when running iOS application in Xcode
Thanks Quinn. This looks to possibly be an internal Apple bug with MKMapView. I can recreate the issue with the following code: import MapKit import SwiftUI struct MyMapkitView: UIViewRepresentable { typealias UIViewType = MKMapView func makeUIView(context: Context) -> MKMapView { return MKMapView() } func updateUIView(_ uiView: MKMapView, context: Context) {} } struct ContentView: View { var body: some View { VStack { MyMapkitView() } .padding() } } Which immediately gives the errors below that match what I'm seeing in my app. I wish I could ignore it, but it quite literally is happening 2-3 times a second so the log is completely buried with these messages. This only started happening when I upgraded Xcode to 26.
1w
Confirmation Items Regarding the Mandatory UIScene Lifecycle Support in iOS 27
After reviewing the following Apple Technote, I have confirmed the statement below: https://developer.apple.com/documentation/technotes/tn3187-migrating-to-the-uikit-scene-based-life-cycle In the next major release following iOS 26, UIScene lifecycle will be required when building with the latest SDK; otherwise, your app won’t launch. While supporting multiple scenes is encouraged, only adoption of scene life-cycle is required. Based on the above, I would appreciate it if you could confirm the following points: Is my understanding correct that the term “latest SDK” refers to Xcode 27? Is it correct that an app built with the latest SDK (Xcode 27, assuming the above understanding is correct) will not launch without adopting the UIScene lifecycle, with no exceptions? Is it correct that an app built with Xcode 26 without UIScene lifecycle support will still launch without issues on an iPhone updated to iOS 27?
Topic: UI Frameworks SubTopic: General Tags:
2
0
209
1w