Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,679 results found

Post

Replies

Boosts

Views

Activity

Is it possible to distinguish real vs manually added running data in HealthKit?
I am developing an iOS application that utilizes running workout data from the iOS Health app / Fitness app via HealthKit, with explicit user permission. Before finalizing the app design, I would like to clarify several technical aspects related to data reliability, manual entry, record modification, and GPS route availability in HealthKit. My questions are as follows: 1. Identifying manually added (non-physical) running workouts When a running workout is created in the Health app without actual physical movement (for example, a workout manually added by the user), is there any metadata, flag, or key in HealthKit that allows developers to distinguish these records from workouts generated through actual motion tracking (iPhone or Apple Watch)? 2. Editing existing running workout records Is it possible for users, or for third-party apps with HealthKit write permission, to edit an existing running workout (e.g., distance, duration, calories) after it has been saved? • If edits are allowed, are the origi
1
0
64
3w
App Clip URLs Save Error
I am encountering a persistent error in App Store Connect when attempting to save URLs in the App Clip URLs section of my app version. The issue is as follows: When I enter the URL (e.g., https://4o.c.smart321.com/c/l0) and click save, I receive a 409 Conflict error with the code ENTITY_ERROR.ATTRIBUTE.TYPE. The error detail states: does not match the uri pattern must be a valid RFC 3986 URI. The Error Log: { errors : [ { id : 9f032dd6-f456-4c90-ad9c-245c5ed041d7, status : 409, code : ENTITY_ERROR.ATTRIBUTE.TYPE, title : An attribute in the provided entity has the wrong type, detail : does not match the uri pattern must be a valid RFC 3986 URI, source : { pointer : /data/attributes/invocationUrls/1 } } ] } Conflicting Status: Interestingly, the exact same URL has already been configured under Advanced App Clip Experiences, where it currently shows a status of Received. My AASA file is https://4o.c.smart321.com/.well-known/apple-app-site-association I have verified that the URL follows the st
2
0
170
3w
Reply to ExtendedDistanceMeasurement in Nearby Interaction Framework not working on iOS 26
Problem Description: After upgrading to iOS 26, I discovered that the ExtendedDistanceMeasurement feature in the Nearby Interaction framework is not working as expected. On the same device model, the issue did not occur on iOS 18, but it is present on iOS 26 (including the latest iOS 26.2), and it has started affecting the functionality of my app. I hope this issue can be resolved as soon as possible. Problem Details: On iOS 26 and later versions (including iOS 26.2), when using an iPhone and an Apple Watch both equipped with second-generation UWB chips, enabling isExtendedDistanceMeasurementEnabled initiates the distance measurement process successfully, but the distance information fails to update. The real-time distance between the devices does not display within the app. Affected Devices and Versions: iPhone Model: iPhone 15 Pro Max iOS Version: iOS 26.2 Apple Watch Model: Apple Watch 10 watchOS Version: 26.2 Example Code: The issue can be reproduced by adding the following code to the o
Topic: App & System Services SubTopic: General Tags:
3w
Reply to SwiftUI @State Updates Not Reflecting in UI Until View Reconstruction (Xcode Preview & Device)
Thanks for your reply! Here's the complete code and detailed information: Issue Description I'm experiencing a strange behavior with Xcode Preview in my SwiftUI app: On first Preview load: Button taps don't respond at all Temporary workaround: Click any other file, then click back to ContentView - buttons work perfectly Reproducibility: Happens 100% of the time after cleaning and restarting Preview Environment Xcode Version: Version 26.2 iOS Target: iOS 26.1 macOS Version: 26.1 Reproducibility: 100% consistent Relevant Code App Entry Point import SwiftUI import AVFoundation @main struct MyApp: App { init() { setupAudioSession() } private func setupAudioSession() { do { try AVAudioSession.sharedInstance().setCategory( .playback, mode: .default, options: [.mixWithOthers] ) try AVAudioSession.sharedInstance().setActive(true) } catch { print(Failed to setup audio session: (error)) } } var body: some Scene { WindowGroup { ContentView() } } }### ContentView - Simplified Version import SwiftUI stru
Topic: UI Frameworks SubTopic: SwiftUI
3w
Using Content Inset Adjustments on macOS Tahoe with Liquid Glass in nested NSScrollViews inside Sidebar
I have the following code (compile as a standalone file): #import @interface AppDelegate : NSObject @property (strong) NSWindow *window; @end @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)notification { // Create main window self.window = [[NSWindow alloc] initWithContentRect:NSMakeRect(100, 100, 800, 600) styleMask:(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable) backing:NSBackingStoreBuffered defer:NO]; [self.window setTitle:@Nested ScrollView Demo]; [self.window makeKeyAndOrderFront:nil]; // Split view controller NSSplitViewController *splitVC = [[NSSplitViewController alloc] init]; // Sidebar NSViewController *sidebarVC = [[NSViewController alloc] init]; sidebarVC.view = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 200, 600)]; sidebarVC.view.wantsLayer = YES; NSSplitViewItem *sidebarItem = [NSSplitViewItem sidebarWithViewController:sidebarVC]; sidebarItem.minimumThickness = 150; sidebarIt
0
0
129
3w
Tkinter module in Python 3 is broken on macOS 26
When I try to invoke the tkinter module in Python 3 that is bundled with Xcode Developer Tools, I get a message saying that my system version is too low: $ /usr/bin/python3 -m tkinter macOS 26 (2602) or later required, have instead 16 (1602) ! zsh: abort /usr/bin/python3 -m tkinter It seems like the system version reported is macOS 16, which I assume is the version code before the decision to rename all OS platforms to 26. This is a very low level mistake and should be fixed as soon as possible.
1
0
1.3k
3w
Reply to Matter commissioning issue with Matter support extension
@DTS Engineer Add in the log details for HomeService. 10:51:34.065680+0800 HomeUIService [A4B23DBC] Could not find CHIP setup payload string in response payload (null): Error Domain=HMErrorDomain Code=2 (null) 10:51:34.066071+0800 HomeUIService -[HSSetupStateMachineConfiguration setPairingError:] *** Setting pairingError *** = Error Domain=HMErrorDomain Code=2 (null) 10:51:34.066205+0800 HomeUIService pairStagedCHIPAccessoryToPartnerAppHome succeeded. 10:51:34.067111+0800 HomeUIService Calculating potential skip of: Error 10:51:34.067526+0800 HomeUIService Show step: Error 10:51:34.066587+0800 HomeUIService HSProximityCardHostViewController 318 -[HSProximityCardHostViewController coordinator:updatedConfiguration:]: Pairing 10:51:34.067718+0800 HomeUIService HSProxCardCoordinator tuple 0x5ca2373f0 accessory (null) nextViewController Pairing->Error 10:51:34.067900+0800 HomeUIService Presenting error card with error Error Domain=HMErrorDomain Code=2 (null)
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to How to properly register a macOS System Extension in an Electron app?
I don't know if there's anything Electron-specific, but if your app has com.apple.developer.system-extension.install, you need a NSSystemExtensionUsageDescriptionKey or OSBundleUsageDescriptionKey (for DriverKit extensions). Your failure to launch may not be what you think it is. Your program may have some code which unconditionally registers your extension at launch time, and your lack of the required usage description causes the system to terminate your app very early in its life cycle. You may be able to see what is going on my monitoring the console log (filter on your app's bundle ID)
3w
Reply to ToolbarItem with .sharedBackgroundVisibility(.hidden) causes rectangular rendering artifact during navigation transitions on iOS 26
Hello kevin2025, Thank you for your post and your sample code. It looks like when placed in a sample app, the custom ToolbarItem is not showing any rectangle rendering artifact when transitioning between views. Could you please supplement your sample code with an example navigation that reproduces the navigation bar transition animations with artifacting? Thank you for your patience, Richard Yeh ||  Developer Technical Support
Topic: UI Frameworks SubTopic: SwiftUI
3w
App rejected for using non-public API __SwiftValue in Runner – Swift runtime false positive?
Hello, Our iOS app (Flutter + Swift) was rejected under Guideline 2.5.1 with the following message: The app uses or references the following non-public or deprecated APIs: Runner Classes: __SwiftValue From our investigation, __SwiftValue appears to be an internal Swift runtime class automatically generated by the Swift compiler for Swift–Objective-C bridging. It is not imported, referenced, or used directly in our source code. We verified that: The symbol exists only in the compiled Runner binary It is not referenced by any third-party framework explicitly It appears in standard Swift runtime behavior We previously removed a legitimate private API (PGHostedWindow) from a dependency and resubmitted, after which this new rejection appeared. Questions: Is __SwiftValue considered a private API usage by App Review, or is this a false positive? Are there recommended build settings or mitigations to prevent this symbol from being flagged? Should this be escalated for manual review? Any guidance from Apple e
4
0
429
3w
Reply to findNavigator
I'm coding in swiftUI. I've a TextEditor. When I make appear the findNavigator of this TextEditor I want to copy a string to the searchText by program when it appears. I think it's possible to copy this string to the findNavigator but I don't know how to do this. Perhaps sending a copy command to the view ancestor ?
3w