Search results for

“xcode github”

96,032 results found

Post

Replies

Boosts

Views

Activity

Reply to MTL4FXTemporalDenoisedScaler initialization
Thank you for testing that. Since supportsMetal4FX(_:) returns true on your iPhone 15 Pro but makeTemporalDenoisedScaler(device:compiler:) crashes, this is a framework bug — the capability check reports support, but initialization fails. Please file a feedback report at https://feedbackassistant.apple.com and attach your sample project from GitHub. The crash in AGXG16XFamilyHeap points to an internal GPU driver issue that engineering will need to investigate. Post the feedback number here so we can track it. In the meantime, use the non-Metal 4 path as a workaround: let scaler = descriptor.makeTemporalDenoisedScaler(device: device) This avoids the crash and still gives you temporal denoised upscaling, without the Metal 4 command buffer integration.
Topic: Graphics & Games SubTopic: Metal Tags:
2w
Sandboxed app loses iCloud Drive access mid-session on macOS 26 — kernel refuses sandbox extension, FP client rejected (NSFileProviderErrorDomain -2001)
Starting somewhere around macOS 26.3, my sandboxed file manager spontaneously loses access to ~/Library/Mobile Documents mid-session. Setup: at launch, the user grants access to '/', '/Users', or '~' via NSOpenPanel; I store a security-scoped bookmark and call startAccessingSecurityScopedResource(). This works fine - including iCloud Drive - until some point mid-session. When it breaks, two things happen simultaneously: Enumeration fails: NSCocoaErrorDomain Code=257 (NSFileReadNoPermissionError)< NSPOSIXErrorDomain Code=1 (EPERM) Console shows the kernel refusing extension issuance: couldn't issue sandbox extension com.apple.app-sandbox.read for '/Users//Library/Mobile Documents': Operation not permitted And probing NSFileProviderManager confirms the process has been rejected system-wide: NSFileProviderManager.getDomainsWithCompletionHandler > NSFileProviderErrorDomain Code=-2001 The application cannot be used right now. (underlying Code=-2014) What makes this specifi
3
0
151
2w
ParticleEmitterComponent Position Offset Issue After iOS 26.1 Update – Seeking Solutions & Workarounds
Problem Summary After upgrading to iOS 26.1 and 26.2, I'm experiencing a particle positioning bug in RealityKit where ParticleEmitterComponent particles render at an incorrect offset relative to their parent entity. This behavior does not occur on iOS 18.6.2 or earlier versions, suggesting a regression introduced in the newer OS builds. Environment Details Operating System: iOS 26.1 & iOS 26.2 Framework: RealityKit Xcode Version: 16.2 (16C5032a) Expected vs. Actual Behavior Expected: Particles should render at the position of the entity to which the ParticleEmitterComponent is attached, matching the behavior on iOS 18.6.2 and earlier. Actual: Particles appear away from their parent entity, creating a visual misalignment that breaks the intended AR experience. Steps to Reproduce Create or open an AR application with RealityKit that uses particle components Attach a ParticleEmitterComponent to an entity via a custom system Run the application on iOS 26.1 or iOS 26.2 Observe that particles render at
3
0
1k
2w
segmented picker style causes runtime warning
On OSX, using a segmented picker style causes the following warning to be emitted (when a different selection is made) : Publishing changes from within view updates is not allowed, this will cause undefined behavior. The warning is not emitted using the 'Preview Canvas' only when running the app. Changing the picker style to automatic also fixes it, but the segmented style is used extensively. Tested using XCode 26.4.1 on MacOS 26.3.1 --- view --- import SwiftUI internal import Combine enum Mode : String { case one, two, three } class MyObject : ObservableObject { @Published var mode : Mode = .one } struct ContentView: View { @StateObject var obj = MyObject() var body: some View { VStack { Picker(Mode,selection: $obj.mode) { Text(One).tag(Mode.one) Text(Two).tag(Mode.two) Text(Three).tag(Mode.three) } .pickerStyle(.segmented) } .padding() } } #Preview { ContentView() } --- app --- import SwiftUI @main struct SwiftUIBugApp: App { var body: some Scene { WindowGroup { ContentView() } } }
6
0
70
2w
Reply to segmented picker style causes runtime warning
Thanks so much for this very interesting post. I used the latest beta of Xcode and I do not see this warning with Version 26.5 beta 2. I believe, but haven’t seen this before, maybe a known issue in SwiftUI on macOS. It occurs because of how SwiftUI bridges AppKit's NSSegmentedControl to the .segmented picker style. That's why changing it to .automatic does not provide you this warning. But please do try the latest beta. Let me know if you can try that Xcode Version. Albert
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to SwiftUI bottom bar triggers UIKitToolbar hierarchy fault and constraint errors
import SwiftUI struct ContentView: View { var body: some View { NavigationStack { Text(XX) .toolbar { ToolbarItem(placement: .bottomBar) { Text(YY) } } } } } Here is an even simpler ContentView that demonstrates the same error. This occurs for both iOS 26.4 and iPadOS 26.4 The output generated in the Xcode console is: 'UIKitToolbar' as a subview of UIHostingController.view is not supported and may result in a broken view hierarchy. Add your view above UIHostingController.view in a common superview or insert it into your SwiftUI content in a UIViewRepresentable instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to libtool: warning: 'Foo.o' has no symbols on Xcode 26.4
Thanks for confirming. And it turns out that this is easy to reproduce: Using Xcode 26.4, create a new project from the macOS > Library template, and choose to create a Cocoa static library. In the resulting .h file, remove the whole @interface block. And in the .m file, convert the @implementation block to a category. For example: @implementation NSUUID (Foo) - (void)test { } @end Choose Product > Build. This issues the following warning: libtool: warning: 'Foo.o' has no symbols This actually makes some degree of sense: Xcode has run libtool to convert the various object (.o) files in the target into a static library (.a). There’s only one object file. It only contains a category. Objective-C categories don’t publish any symbols. Consider this: % nm …/Foo.o 0000000000000000 t -[NSUUID(Foo) test] U _OBJC_CLASS_$_NSUUID 0000000000000028 s __OBJC_$_CATEGORY_INSTANCE_METHODS_NSUUID_$_Foo 0000000000000048 s __OBJC_$_CATEGORY_NSUUID_$_Foo 0000000000000014 s l_OBJC_CLASS_NAME_ 00000000000000
2w
libtool: warning: 'Foo.o' has no symbols on Xcode 26.4
I've recently installed Xcode 26.4, and it seems like all of our libraries now give multiple linker error when building of the format libtool: warning: 'Foo.o' has no symbols Most of these errors come from extensions over objc types written in objc. (for instance we have some extensions over NSArray in the file NSArray+NSSet.mm) Is that a new feature of some stricter libtool invocation? or a bug? should I do anything about it?
3
0
146
2w
Reply to Apple Watch Complication with SF Symbols slightly off-center
I had another think about this. How about using .position(x:, y:) to move the image? Just tried this code, and it looks good for AccessoryCircular, AccessoryInline, AccessoryRectangular, Smart Stack Circular and Smart Stack Rectangular, but is slightly off for AccessoryCorner, so again, you'll have to fiddle with the numbers for at least one of the types: GeometryReader { g in ZStack { // I added this circle to show where it is in the view Circle() .foregroundColor(Color.blue) Image(systemName: circle.dashed) .resizable() .scaledToFit() .foregroundColor(.green) .position(x: g.size.width / 2 + 0.5, y: g.size.height / 2 + 0.5) // The 0.5 is the part that moves it to the right and down a little Text(9/9) .foregroundStyle(.primary) .font(.caption) .fontWeight(.semibold) } .widgetAccentable() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
WatchOS HealthKit HKObserverQuery crashes in background
I have a watchOS app with a connected iOS app using Swift and SwiftUI. The watchOS app should read heart rate date in the background using HKOberserQuery and enableBackgroundDelivery(), send the data to the iPhone app via WCSession. The iPhone app then sends the data to a Firebase project. The issue I am facing now it that the app with the HKObserverQuery works fine when the app is in the foreground, but when the app runs in the background, the observer query gets triggered for the first time (after one hour), but then always get terminated from the watchdog timeout with the following error message: CSLHandleBackgroundHealthKitQueryAction scene-create watchdog transgression: app:14451 exhausted real (wall clock) time allowance of 15.00 seconds I am using Xcode 16.3 on MacOS 15.4 The App is running on iOS 18.4 and watchOS 11.4 What is the reason for this this issue? I only do a simple SampleQuery to fetch the latest heart rate data inside the HKObserverQuery and then call the completionHandler. The qu
11
0
1k
2w
TESTFLIGHT: The requested app is not available or doesn t exist
Hello, I created an app using the latest version of Xcode (16.2), and I'm having a problem testing this app on my iPhones. I created this app just like all the others I've made for my clients, including one on (03/24/25), but when I went to upload another App to App Store Connect on (03/26/25) I couldn't test it on my phone. Points to consider: The app runs perfectly on the Emulator. All my terms and agreements with Apple are up to date. I tried to download the apps through Testflight on 2 different devices, iPhone 7 Plus (iOS 15.8.1) and iPhone 15 Pro Max (iOS 18.3.2), and I was unsuccessful in neither attempt. I can send my app to the internal testers, but when I click download, the following message appears: Could not install [APP NAME]. The requested App is not available or doesn't exist. I imagine this problem is with Apple itself, I have already contacted support, but I need to resolve this urgently for my customers. Has anyone experienced this and resolved it?
22
0
2k
2w
Xcode 26 Causing StoreKit Fiasco for macOS?
I submitted my last macOS application with IAP on Oct. 23rd, 2025. I was able to test-purchase a non-consumable product with the StoreKit configuration file at that time. These days, every time I test a new macOS application with the configuration file, a purchase process fails. The thing is they all now fail if I test the store with existing applications that were once working. Xcode shows the following debugging error. Purchase failed with error: systemError(Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={AMSDescription=An unknown error occurred. Please try again., AMSURL=http://localhost:53272/WebObjects/MZBuy.woa/wa/inAppBuy, NSDebugDescription=The connection to service created from an endpoint was invalidated from this process., AMSStatusCode=200, AMSServerPayload={ All my iOS apps don't exhibit the same problem. This StoreKit fiasco only happens for macOS applications. And I'm thinking that it all started
5
0
286
2w
RN IOS APP & WatchOS Companion
I already have a working iOS React Native app and I’m planning to add a watchOS companion app. Is it possible to keep the iOS app and the watchOS app in separate repositories? If so, will WatchConnectivity still work properly between them? Or is it recommended to keep both in a single Xcode project/repository?
Replies
1
Boosts
0
Views
110
Activity
2w
Reply to MTL4FXTemporalDenoisedScaler initialization
Thank you for testing that. Since supportsMetal4FX(_:) returns true on your iPhone 15 Pro but makeTemporalDenoisedScaler(device:compiler:) crashes, this is a framework bug — the capability check reports support, but initialization fails. Please file a feedback report at https://feedbackassistant.apple.com and attach your sample project from GitHub. The crash in AGXG16XFamilyHeap points to an internal GPU driver issue that engineering will need to investigate. Post the feedback number here so we can track it. In the meantime, use the non-Metal 4 path as a workaround: let scaler = descriptor.makeTemporalDenoisedScaler(device: device) This avoids the crash and still gives you temporal denoised upscaling, without the Metal 4 command buffer integration.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
2w
Sandboxed app loses iCloud Drive access mid-session on macOS 26 — kernel refuses sandbox extension, FP client rejected (NSFileProviderErrorDomain -2001)
Starting somewhere around macOS 26.3, my sandboxed file manager spontaneously loses access to ~/Library/Mobile Documents mid-session. Setup: at launch, the user grants access to '/', '/Users', or '~' via NSOpenPanel; I store a security-scoped bookmark and call startAccessingSecurityScopedResource(). This works fine - including iCloud Drive - until some point mid-session. When it breaks, two things happen simultaneously: Enumeration fails: NSCocoaErrorDomain Code=257 (NSFileReadNoPermissionError)< NSPOSIXErrorDomain Code=1 (EPERM) Console shows the kernel refusing extension issuance: couldn't issue sandbox extension com.apple.app-sandbox.read for '/Users//Library/Mobile Documents': Operation not permitted And probing NSFileProviderManager confirms the process has been rejected system-wide: NSFileProviderManager.getDomainsWithCompletionHandler > NSFileProviderErrorDomain Code=-2001 The application cannot be used right now. (underlying Code=-2014) What makes this specifi
Replies
3
Boosts
0
Views
151
Activity
2w
ParticleEmitterComponent Position Offset Issue After iOS 26.1 Update – Seeking Solutions & Workarounds
Problem Summary After upgrading to iOS 26.1 and 26.2, I'm experiencing a particle positioning bug in RealityKit where ParticleEmitterComponent particles render at an incorrect offset relative to their parent entity. This behavior does not occur on iOS 18.6.2 or earlier versions, suggesting a regression introduced in the newer OS builds. Environment Details Operating System: iOS 26.1 & iOS 26.2 Framework: RealityKit Xcode Version: 16.2 (16C5032a) Expected vs. Actual Behavior Expected: Particles should render at the position of the entity to which the ParticleEmitterComponent is attached, matching the behavior on iOS 18.6.2 and earlier. Actual: Particles appear away from their parent entity, creating a visual misalignment that breaks the intended AR experience. Steps to Reproduce Create or open an AR application with RealityKit that uses particle components Attach a ParticleEmitterComponent to an entity via a custom system Run the application on iOS 26.1 or iOS 26.2 Observe that particles render at
Replies
3
Boosts
0
Views
1k
Activity
2w
segmented picker style causes runtime warning
On OSX, using a segmented picker style causes the following warning to be emitted (when a different selection is made) : Publishing changes from within view updates is not allowed, this will cause undefined behavior. The warning is not emitted using the 'Preview Canvas' only when running the app. Changing the picker style to automatic also fixes it, but the segmented style is used extensively. Tested using XCode 26.4.1 on MacOS 26.3.1 --- view --- import SwiftUI internal import Combine enum Mode : String { case one, two, three } class MyObject : ObservableObject { @Published var mode : Mode = .one } struct ContentView: View { @StateObject var obj = MyObject() var body: some View { VStack { Picker(Mode,selection: $obj.mode) { Text(One).tag(Mode.one) Text(Two).tag(Mode.two) Text(Three).tag(Mode.three) } .pickerStyle(.segmented) } .padding() } } #Preview { ContentView() } --- app --- import SwiftUI @main struct SwiftUIBugApp: App { var body: some Scene { WindowGroup { ContentView() } } }
Replies
6
Boosts
0
Views
70
Activity
2w
Reply to segmented picker style causes runtime warning
I can't really run the beta, because I need to build for production. Did you verify that it occurs under the latest XCode production release?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to segmented picker style causes runtime warning
Thanks so much for this very interesting post. I used the latest beta of Xcode and I do not see this warning with Version 26.5 beta 2. I believe, but haven’t seen this before, maybe a known issue in SwiftUI on macOS. It occurs because of how SwiftUI bridges AppKit's NSSegmentedControl to the .segmented picker style. That's why changing it to .automatic does not provide you this warning. But please do try the latest beta. Let me know if you can try that Xcode Version. Albert
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to SwiftUI bottom bar triggers UIKitToolbar hierarchy fault and constraint errors
import SwiftUI struct ContentView: View { var body: some View { NavigationStack { Text(XX) .toolbar { ToolbarItem(placement: .bottomBar) { Text(YY) } } } } } Here is an even simpler ContentView that demonstrates the same error. This occurs for both iOS 26.4 and iPadOS 26.4 The output generated in the Xcode console is: 'UIKitToolbar' as a subview of UIHostingController.view is not supported and may result in a broken view hierarchy. Add your view above UIHostingController.view in a common superview or insert it into your SwiftUI content in a UIViewRepresentable instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to Apple Watch Complication with SF Symbols slightly off-center
Hey, thank you. I used it only or the circular accessory and your first solution worked so far. I also noted that the dash starting point is weird (also the Xcode preview of the dashed circle differs from the actual device) But with your numbers it looks fine. I'll use that as a workaround for now. I opened FB22566148
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to libtool: warning: 'Foo.o' has no symbols on Xcode 26.4
Thanks for confirming. And it turns out that this is easy to reproduce: Using Xcode 26.4, create a new project from the macOS > Library template, and choose to create a Cocoa static library. In the resulting .h file, remove the whole @interface block. And in the .m file, convert the @implementation block to a category. For example: @implementation NSUUID (Foo) - (void)test { } @end Choose Product > Build. This issues the following warning: libtool: warning: 'Foo.o' has no symbols This actually makes some degree of sense: Xcode has run libtool to convert the various object (.o) files in the target into a static library (.a). There’s only one object file. It only contains a category. Objective-C categories don’t publish any symbols. Consider this: % nm …/Foo.o 0000000000000000 t -[NSUUID(Foo) test] U _OBJC_CLASS_$_NSUUID 0000000000000028 s __OBJC_$_CATEGORY_INSTANCE_METHODS_NSUUID_$_Foo 0000000000000048 s __OBJC_$_CATEGORY_NSUUID_$_Foo 0000000000000014 s l_OBJC_CLASS_NAME_ 00000000000000
Replies
Boosts
Views
Activity
2w
libtool: warning: 'Foo.o' has no symbols on Xcode 26.4
I've recently installed Xcode 26.4, and it seems like all of our libraries now give multiple linker error when building of the format libtool: warning: 'Foo.o' has no symbols Most of these errors come from extensions over objc types written in objc. (for instance we have some extensions over NSArray in the file NSArray+NSSet.mm) Is that a new feature of some stricter libtool invocation? or a bug? should I do anything about it?
Replies
3
Boosts
0
Views
146
Activity
2w
Reply to Apple Watch Complication with SF Symbols slightly off-center
I had another think about this. How about using .position(x:, y:) to move the image? Just tried this code, and it looks good for AccessoryCircular, AccessoryInline, AccessoryRectangular, Smart Stack Circular and Smart Stack Rectangular, but is slightly off for AccessoryCorner, so again, you'll have to fiddle with the numbers for at least one of the types: GeometryReader { g in ZStack { // I added this circle to show where it is in the view Circle() .foregroundColor(Color.blue) Image(systemName: circle.dashed) .resizable() .scaledToFit() .foregroundColor(.green) .position(x: g.size.width / 2 + 0.5, y: g.size.height / 2 + 0.5) // The 0.5 is the part that moves it to the right and down a little Text(9/9) .foregroundStyle(.primary) .font(.caption) .fontWeight(.semibold) } .widgetAccentable() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
WatchOS HealthKit HKObserverQuery crashes in background
I have a watchOS app with a connected iOS app using Swift and SwiftUI. The watchOS app should read heart rate date in the background using HKOberserQuery and enableBackgroundDelivery(), send the data to the iPhone app via WCSession. The iPhone app then sends the data to a Firebase project. The issue I am facing now it that the app with the HKObserverQuery works fine when the app is in the foreground, but when the app runs in the background, the observer query gets triggered for the first time (after one hour), but then always get terminated from the watchdog timeout with the following error message: CSLHandleBackgroundHealthKitQueryAction scene-create watchdog transgression: app:14451 exhausted real (wall clock) time allowance of 15.00 seconds I am using Xcode 16.3 on MacOS 15.4 The App is running on iOS 18.4 and watchOS 11.4 What is the reason for this this issue? I only do a simple SampleQuery to fetch the latest heart rate data inside the HKObserverQuery and then call the completionHandler. The qu
Replies
11
Boosts
0
Views
1k
Activity
2w
TESTFLIGHT: The requested app is not available or doesn t exist
Hello, I created an app using the latest version of Xcode (16.2), and I'm having a problem testing this app on my iPhones. I created this app just like all the others I've made for my clients, including one on (03/24/25), but when I went to upload another App to App Store Connect on (03/26/25) I couldn't test it on my phone. Points to consider: The app runs perfectly on the Emulator. All my terms and agreements with Apple are up to date. I tried to download the apps through Testflight on 2 different devices, iPhone 7 Plus (iOS 15.8.1) and iPhone 15 Pro Max (iOS 18.3.2), and I was unsuccessful in neither attempt. I can send my app to the internal testers, but when I click download, the following message appears: Could not install [APP NAME]. The requested App is not available or doesn't exist. I imagine this problem is with Apple itself, I have already contacted support, but I need to resolve this urgently for my customers. Has anyone experienced this and resolved it?
Replies
22
Boosts
0
Views
2k
Activity
2w
Xcode 26 Causing StoreKit Fiasco for macOS?
I submitted my last macOS application with IAP on Oct. 23rd, 2025. I was able to test-purchase a non-consumable product with the StoreKit configuration file at that time. These days, every time I test a new macOS application with the configuration file, a purchase process fails. The thing is they all now fail if I test the store with existing applications that were once working. Xcode shows the following debugging error. Purchase failed with error: systemError(Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={AMSDescription=An unknown error occurred. Please try again., AMSURL=http://localhost:53272/WebObjects/MZBuy.woa/wa/inAppBuy, NSDebugDescription=The connection to service created from an endpoint was invalidated from this process., AMSStatusCode=200, AMSServerPayload={ All my iOS apps don't exhibit the same problem. This StoreKit fiasco only happens for macOS applications. And I'm thinking that it all started
Replies
5
Boosts
0
Views
286
Activity
2w