Search results for

“Xcode”

93,861 results found

Post

Replies

Boosts

Views

Activity

Reply to RealityKit crashes when rendering SpriteKit scene with SKShapeNode in postProcess callback
Thanks for your input. I added the following code in the arView.renderCallbacks.postProcess callback: let depthStencilDescriptor = MTLTextureDescriptor() depthStencilDescriptor.pixelFormat = .depth32Float_stencil8 depthStencilDescriptor.width = context.targetColorTexture.width depthStencilDescriptor.height = context.targetColorTexture.height depthStencilDescriptor.usage = .renderTarget depthStencilDescriptor.storageMode = .private renderPassDescriptor.stencilAttachment.texture = device!.makeTexture(descriptor: depthStencilDescriptor) renderPassDescriptor.stencilAttachment.loadAction = .clear renderPassDescriptor.stencilAttachment.storeAction = .dontCare renderPassDescriptor.stencilAttachment.clearStencil = 0 but the app now crashes with error Assertion failed: (destDepthFormat == jet_texture_format_DepthStencil), function create_render_mode, file jet_context_Metal.mm, line 895. VTPixelTransferSession 420f sid 494 (512.00 x 512.00) [0.00 0.00 512 512] rowbytes( 512, 512 ) Color( kCGColorSpace
Topic: Graphics & Games SubTopic: RealityKit Tags:
3w
Does Xcode 26 Still Support Pull Requests?
Does Xcode 26 still support creating pull requests and/or viewing comments from GitHub pull requests associated with the current branch? This used to be possible, but I cannot get it to work with the current version of Xcode (26.0.1). The Create Pull Request menu item takes me to github.com directly, instead of presenting a nice UI menu; hence I'm wondering.
2
0
175
3w
Reply to Xcode 26 fails to load SPM packages
Chiming in again with some findings. Reverting to Xcode 26.1 solved the package issue for me I'm using Tahoe 26.3.1 - I have a coworker with same project and Xcode 26.3.1, but using Tahoe 26.1 that does not have the problem. Using Is_kevin's approach using xcodebuild -resolvePackageDependencies, albeit with cleaning the package cache first worked for me on Xcode 26.3.1 too, but is cumbersome
3w
[FB22167174] PDFKit: `buttonWidgetState = .onState` ignored for non-first radio button annotations on `dataRepresentation()`
I've run into what appears to be a bug in PDFKit's radio button serialization. When creating a radio button group with PDFAnnotation, only the first annotation added via page.addAnnotation() gets a correct /AS entry in the written PDF — all other annotations always get /AS /Off, regardless of buttonWidgetState. Minimal reproduction func makeRadioButton(optionId: String, isSelected: Bool) -> PDFAnnotation { let ann = PDFAnnotation(bounds: CGRect(x: 0, y: 0, width: 20, height: 20), forType: .widget, withProperties: nil) ann.widgetFieldType = .button ann.widgetControlType = .radioButtonControl ann.fieldName = Choice ann.buttonWidgetStateString = optionId ann.buttonWidgetState = isSelected ? .onState : .offState return ann } let pdf = PDFDocument() let page = PDFPage() pdf.insert(page, at: 0) // Intend to select B page.addAnnotation(makeRadioButton(optionId: A, isSelected: false)) page.addAnnotation(makeRadioButton(optionId: B, isSelected: true)) page.addAnnotation(makeRadioButton(optionId: C, isSelec
1
0
69
3w
Reply to RealityKit crashes when rendering SpriteKit scene with SKShapeNode in postProcess callback
This reminds of an error I got while setting up SKRenderer for this project: SKRenderer Demo. See code and comment in SKOfflineRenderer.swift: // If I dont use a depth/stencil texture, rendering crashes on simulator, device, and Mac // Without it, rendering only works on Xcode Live Preview let depthStencilDesc = MTLTextureDescriptor() depthStencilDesc.pixelFormat = .depth32Float_stencil8 depthStencilDesc.width = pixelWidth depthStencilDesc.height = pixelHeight depthStencilDesc.usage = .renderTarget depthStencilDesc.storageMode = .private The code is inside the init, check how the depthStencilTexture is setup for SKRenderer, it may help you.
Topic: Graphics & Games SubTopic: RealityKit Tags:
3w
Reply to Active Membership but Xcode shows "Red X" at Certificates, Identifiers & Profiles
I have the same problem I've upgraded to a new Macbook recently, just when I was setting up my Xcode, I realized I there is a this red X showing up next to my development team as I was signing in to my account I have checked my permission on App Store Connect, everything seemed fine. I have also deleted my old Apple development certificate and requested for another one. Nothing worked.
3w
Putting 2 existing pdf pages side by side (half size) in a new pdf
In Swift, iOS, I have a pdf file. I want to take the pages 2 by 2 and put them side by side, on the new page. For this, I have to scale initial pages half size and rotate .pi/2. I managed to achieve this by converting pdf pages to UIImages and using a UIGraphicsImageRenderer. But with a critical loss of resolution. I've tried improving the resolution by creating images as jpegData(withCompressionQuality: 1.0), to no avail. So I would need to work directly on the pdf pages using CGPDFDocument format. The code structure is as follows, to insert a single scaled page: for iPage in … { if let _page = theCGPdfDocument.page(at: 1) { var _pageRect: CGRect = _page.getBoxRect(CGPDFBox.mediaBox) writeContextInDestination!.beginPage(mediaBox: &_pageRect) // translate to compensate for the flip caused displacement writeContextInDestination!.translateBy(x: _pageRect.size.width, y: _pageRect.size.height) Scale (-1, -1) // rotate 180° // add rotate as needed writeContextInDestination!.scaleBy(x
1
0
207
3w
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:
3
0
438
3w
Reply to Two errors in debug: com.apple.modelcatalog.catalog sync and nw_protocol_instance_set_output_handler
Based on the error messages you're encountering in Xcode, it seems like there are two main issues to address: nwprotocolinstancesetoutputhandler Not calling removeinput_handler: This error typically indicates a problem with how network connections are being managed using Apple's Network framework. Specifically, it suggests that an output handler was set on a network protocol instance without a corresponding removal of the input handler, which could lead to resource leaks or crashes. Steps to Resolve: Ensure that every call to nw_protocol_instance_set_output_handler is matched with a call to nw_protocol_instance_remove_input_handler when you're done with the connection or when the connection is closed. Review the lifecycle of your network connections to ensure handlers are properly managed, especially in asynchronous or error-prone paths. Check if there are any closures or network operations that might inadvertently leave handlers dangling. com.apple.modelcatalog.catalog sync: connection error: This e
3w
Reply to Swiftui Map Leagal Text is transformed when rotationEffect is applied to Map
Hi, To provide some context on how this view fits into the overall layout: the map is displayed inside an info box that can be swiped away. When no swipe gesture is in progress, the map should remain interactive and allow zoom gestures. While the info box is being swiped, interaction with the map should be disabled. The map always displays at least one marker. You can find a more complete code example and a screenshot here: import MapKit struct ContentView: View { @State private var offset = CGSize.zero let position = CLLocationCoordinate2D(latitude: 51.5074, longitude: -0.1278) let span = MKCoordinateSpan(latitudeDelta: 5.0, longitudeDelta: 5.0) var body: some View { ZStack { let drag = DragGesture() .onChanged { g in offset.width = g.translation.width offset.height = g.translation.height } .onEnded{ _ in withAnimation { offset = .zero } } VStack(spacing: 0){ Map(initialPosition: .region(MKCoordinateRegion(center: position, span: span)), interactionModes: [.zoom]){ Marker(London, coordinate: positio
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3w
In-App Subscription Works in Xcode Sandbox but Not Appearing for App Review Testers
Hello, I’m having an issue with my first subscription for my app WealthSlices, where the subscription appears correctly when testing locally from Xcode, but App Store reviewers appear unable to retrieve the product. Symptoms When I run the app from Xcode on my iPhone using the Sandbox environment: The subscription loads successfully. The purchase sheet appears. I can complete a sandbox purchase. However, when App Review tests the app, the paywall fails to load products and the app shows the following message: No Products found. Purchases are temporarily unavailable on this device. Environment App: WealthSlices Platform: iOS Testing locally via Xcode → Sandbox Apple ID Subscription type: Auto-renewable subscription Product: WealthSlices Basic ($9.99/month) StoreKit: StoreKit 2 Current build: 1.0.7 (Build 32) What works locally When running via Xcode: StoreKit successfully fetches products. The subscription sheet appears with the correct pricing. Sandbox purchase flow complet
2
0
122
3w
Reply to Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
The Prompt stream failed: Agent has been closed error can occur when your project is in a macOS privacy-protected directory like ~/Desktop, ~/Documents, or ~/Downloads. macOS should prompt you to grant Claude access to these locations, but if the prompt doesn't appear or was previously denied, the agent can fail with this error. Workaround: Move your project to a non-protected directory such as ~/src, then reopen it in Xcode.
3w
Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
Environment: Xcode 26.3 RC macOS 26.3 (25D125) (Apple Silicon / arm64) Setup: Xcode > Settings > Intelligence > Claude Agent: Signed In (account status shows Signed In) Model: Default Steps to reproduce: Open a new chat in Xcode's Coding Assistant Select Claude Agent from the agent dropdown (instead of Claude Sonnet 4.5) Send any message (e.g. HI) Expected result: Claude Agent responds normally. Actual result: The message is sent but immediately returns the error: Your request couldn't be completed. 🚩I have an active Claude Code subscription with remaining usage. Running claude in Terminal works perfectly, confirming the subscription and quota are valid.
4
0
578
3w
Reply to RealityKit crashes when rendering SpriteKit scene with SKShapeNode in postProcess callback
Thanks for your input. I added the following code in the arView.renderCallbacks.postProcess callback: let depthStencilDescriptor = MTLTextureDescriptor() depthStencilDescriptor.pixelFormat = .depth32Float_stencil8 depthStencilDescriptor.width = context.targetColorTexture.width depthStencilDescriptor.height = context.targetColorTexture.height depthStencilDescriptor.usage = .renderTarget depthStencilDescriptor.storageMode = .private renderPassDescriptor.stencilAttachment.texture = device!.makeTexture(descriptor: depthStencilDescriptor) renderPassDescriptor.stencilAttachment.loadAction = .clear renderPassDescriptor.stencilAttachment.storeAction = .dontCare renderPassDescriptor.stencilAttachment.clearStencil = 0 but the app now crashes with error Assertion failed: (destDepthFormat == jet_texture_format_DepthStencil), function create_render_mode, file jet_context_Metal.mm, line 895. VTPixelTransferSession 420f sid 494 (512.00 x 512.00) [0.00 0.00 512 512] rowbytes( 512, 512 ) Color( kCGColorSpace
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
3w
Does Xcode 26 Still Support Pull Requests?
Does Xcode 26 still support creating pull requests and/or viewing comments from GitHub pull requests associated with the current branch? This used to be possible, but I cannot get it to work with the current version of Xcode (26.0.1). The Create Pull Request menu item takes me to github.com directly, instead of presenting a nice UI menu; hence I'm wondering.
Replies
2
Boosts
0
Views
175
Activity
3w
Reply to Xcode 26 fails to load SPM packages
Chiming in again with some findings. Reverting to Xcode 26.1 solved the package issue for me I'm using Tahoe 26.3.1 - I have a coworker with same project and Xcode 26.3.1, but using Tahoe 26.1 that does not have the problem. Using Is_kevin's approach using xcodebuild -resolvePackageDependencies, albeit with cleaning the package cache first worked for me on Xcode 26.3.1 too, but is cumbersome
Replies
Boosts
Views
Activity
3w
[FB22167174] PDFKit: `buttonWidgetState = .onState` ignored for non-first radio button annotations on `dataRepresentation()`
I've run into what appears to be a bug in PDFKit's radio button serialization. When creating a radio button group with PDFAnnotation, only the first annotation added via page.addAnnotation() gets a correct /AS entry in the written PDF — all other annotations always get /AS /Off, regardless of buttonWidgetState. Minimal reproduction func makeRadioButton(optionId: String, isSelected: Bool) -> PDFAnnotation { let ann = PDFAnnotation(bounds: CGRect(x: 0, y: 0, width: 20, height: 20), forType: .widget, withProperties: nil) ann.widgetFieldType = .button ann.widgetControlType = .radioButtonControl ann.fieldName = Choice ann.buttonWidgetStateString = optionId ann.buttonWidgetState = isSelected ? .onState : .offState return ann } let pdf = PDFDocument() let page = PDFPage() pdf.insert(page, at: 0) // Intend to select B page.addAnnotation(makeRadioButton(optionId: A, isSelected: false)) page.addAnnotation(makeRadioButton(optionId: B, isSelected: true)) page.addAnnotation(makeRadioButton(optionId: C, isSelec
Replies
1
Boosts
0
Views
69
Activity
3w
Reply to RealityKit crashes when rendering SpriteKit scene with SKShapeNode in postProcess callback
This reminds of an error I got while setting up SKRenderer for this project: SKRenderer Demo. See code and comment in SKOfflineRenderer.swift: // If I dont use a depth/stencil texture, rendering crashes on simulator, device, and Mac // Without it, rendering only works on Xcode Live Preview let depthStencilDesc = MTLTextureDescriptor() depthStencilDesc.pixelFormat = .depth32Float_stencil8 depthStencilDesc.width = pixelWidth depthStencilDesc.height = pixelHeight depthStencilDesc.usage = .renderTarget depthStencilDesc.storageMode = .private The code is inside the init, check how the depthStencilTexture is setup for SKRenderer, it may help you.
Topic: Graphics & Games SubTopic: RealityKit Tags:
Replies
Boosts
Views
Activity
3w
Reply to Apple watch Xcode pairing & connection issues
pretty much same issue, OSX / apple watch version 26.3. Developer mode does not show on apple watch settings Apple watch does not show as available in Xcode even if paired to an iphone connected to Mac via USB-c
Replies
Boosts
Views
Activity
3w
Reply to Active Membership but Xcode shows "Red X" at Certificates, Identifiers & Profiles
I have the same problem I've upgraded to a new Macbook recently, just when I was setting up my Xcode, I realized I there is a this red X showing up next to my development team as I was signing in to my account I have checked my permission on App Store Connect, everything seemed fine. I have also deleted my old Apple development certificate and requested for another one. Nothing worked.
Replies
Boosts
Views
Activity
3w
Putting 2 existing pdf pages side by side (half size) in a new pdf
In Swift, iOS, I have a pdf file. I want to take the pages 2 by 2 and put them side by side, on the new page. For this, I have to scale initial pages half size and rotate .pi/2. I managed to achieve this by converting pdf pages to UIImages and using a UIGraphicsImageRenderer. But with a critical loss of resolution. I've tried improving the resolution by creating images as jpegData(withCompressionQuality: 1.0), to no avail. So I would need to work directly on the pdf pages using CGPDFDocument format. The code structure is as follows, to insert a single scaled page: for iPage in … { if let _page = theCGPdfDocument.page(at: 1) { var _pageRect: CGRect = _page.getBoxRect(CGPDFBox.mediaBox) writeContextInDestination!.beginPage(mediaBox: &_pageRect) // translate to compensate for the flip caused displacement writeContextInDestination!.translateBy(x: _pageRect.size.width, y: _pageRect.size.height) Scale (-1, -1) // rotate 180° // add rotate as needed writeContextInDestination!.scaleBy(x
Replies
1
Boosts
0
Views
207
Activity
3w
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:
Replies
3
Boosts
0
Views
438
Activity
3w
Reply to Confirmation Items Regarding the Mandatory UIScene Lifecycle Support in iOS 27
Thank you for your post. If I’m not mistaken this means that at the time when Xcode 27 becomes mandatory, the app’s deployment target must be iOS 13 or higher since the UIScene class and Info.plist keys are iOS 13.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
Reply to Two errors in debug: com.apple.modelcatalog.catalog sync and nw_protocol_instance_set_output_handler
Based on the error messages you're encountering in Xcode, it seems like there are two main issues to address: nwprotocolinstancesetoutputhandler Not calling removeinput_handler: This error typically indicates a problem with how network connections are being managed using Apple's Network framework. Specifically, it suggests that an output handler was set on a network protocol instance without a corresponding removal of the input handler, which could lead to resource leaks or crashes. Steps to Resolve: Ensure that every call to nw_protocol_instance_set_output_handler is matched with a call to nw_protocol_instance_remove_input_handler when you're done with the connection or when the connection is closed. Review the lifecycle of your network connections to ensure handlers are properly managed, especially in asynchronous or error-prone paths. Check if there are any closures or network operations that might inadvertently leave handlers dangling. com.apple.modelcatalog.catalog sync: connection error: This e
Replies
Boosts
Views
Activity
3w
Reply to Swiftui Map Leagal Text is transformed when rotationEffect is applied to Map
Hi, To provide some context on how this view fits into the overall layout: the map is displayed inside an info box that can be swiped away. When no swipe gesture is in progress, the map should remain interactive and allow zoom gestures. While the info box is being swiped, interaction with the map should be disabled. The map always displays at least one marker. You can find a more complete code example and a screenshot here: import MapKit struct ContentView: View { @State private var offset = CGSize.zero let position = CLLocationCoordinate2D(latitude: 51.5074, longitude: -0.1278) let span = MKCoordinateSpan(latitudeDelta: 5.0, longitudeDelta: 5.0) var body: some View { ZStack { let drag = DragGesture() .onChanged { g in offset.width = g.translation.width offset.height = g.translation.height } .onEnded{ _ in withAnimation { offset = .zero } } VStack(spacing: 0){ Map(initialPosition: .region(MKCoordinateRegion(center: position, span: span)), interactionModes: [.zoom]){ Marker(London, coordinate: positio
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
3w
In-App Subscription Works in Xcode Sandbox but Not Appearing for App Review Testers
Hello, I’m having an issue with my first subscription for my app WealthSlices, where the subscription appears correctly when testing locally from Xcode, but App Store reviewers appear unable to retrieve the product. Symptoms When I run the app from Xcode on my iPhone using the Sandbox environment: The subscription loads successfully. The purchase sheet appears. I can complete a sandbox purchase. However, when App Review tests the app, the paywall fails to load products and the app shows the following message: No Products found. Purchases are temporarily unavailable on this device. Environment App: WealthSlices Platform: iOS Testing locally via Xcode → Sandbox Apple ID Subscription type: Auto-renewable subscription Product: WealthSlices Basic ($9.99/month) StoreKit: StoreKit 2 Current build: 1.0.7 (Build 32) What works locally When running via Xcode: StoreKit successfully fetches products. The subscription sheet appears with the correct pricing. Sandbox purchase flow complet
Replies
2
Boosts
0
Views
122
Activity
3w
Reply to Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
The Prompt stream failed: Agent has been closed error can occur when your project is in a macOS privacy-protected directory like ~/Desktop, ~/Documents, or ~/Downloads. macOS should prompt you to grant Claude access to these locations, but if the prompt doesn't appear or was previously denied, the agent can fail with this error. Workaround: Move your project to a non-protected directory such as ~/src, then reopen it in Xcode.
Replies
Boosts
Views
Activity
3w
Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
Environment: Xcode 26.3 RC macOS 26.3 (25D125) (Apple Silicon / arm64) Setup: Xcode > Settings > Intelligence > Claude Agent: Signed In (account status shows Signed In) Model: Default Steps to reproduce: Open a new chat in Xcode's Coding Assistant Select Claude Agent from the agent dropdown (instead of Claude Sonnet 4.5) Send any message (e.g. HI) Expected result: Claude Agent responds normally. Actual result: The message is sent but immediately returns the error: Your request couldn't be completed. 🚩I have an active Claude Code subscription with remaining usage. Running claude in Terminal works perfectly, confirming the subscription and quota are valid.
Replies
4
Boosts
0
Views
578
Activity
3w