Since I moved to Xcode 26.1 and Xcode 26.2 then, my UI tests all fail only for iOS 26+, for both simulator and real device. Everything worked perfectly with Xcode 26.0, and the code base of the application under test and the test cases are the same. With Xcode 26.0, the tests pass for iOS 26+ and iOS < 26, for both simulator and real device. In addition, even the Accessibility Inspector tool fails to display the view hierarchy for iOS 26+ with Xcode 26.2. With Xcode 26.0, whatever are the devices and the OS versions, the tool was able to display the view hierarchy. Otherwise the tool is empty even if the device and app are selected. This failing tests issue occurs both on my local environment and on GitHub Actions runners, excluding the hypothesis I have troubles with my own side. The error message for failing tests explains the element cannot be found anymore. Given for example the test case: @MainActor func testMakeScreenshotsForDocumentation_Button() { let app = launchApp() goToComponentsSheet(
Search results for
DTiPhoneSimulatorErrorDomain Code 2
158,607 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
This is unique situation, save your rhetoric calling me crazy unless you’re willing to look at the evidence I’ve collected over the last 2 years. My entire family is being stalked and harassed by a DOD Contractor named Galapagos Federal Systems. They are literally using our identities to and accounts they’ve created to run Amazon Marketplace Business Accounts as sellers. They have amended my tax returns and they have hijacked my domain, which is MauiEasyRiders.Com. It’s pretty easy to see that they’ve hikacked my domain as they are using more than 20 ports around the clock, and I had to walk away from my business of 15 years because of a DDoS attack that is literally impossible to escape. These people are the lowest of the low. They have 250 million dollars in DODcontracts and they are registered as a small section 8a Native Hawaiian owned business, regardless of the fact that the owner is not Hawaiian and not from Hawaii, and the business was formed in Delaware. Their headquarters is literally a hou
Topic:
Community
SubTopic:
Apple Developers
Update: I got a response for my ticket. I got a refund 2-3 days later. Thanks Apple support
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
final class AlarmScheduler { private let manager = AlarmManager.shared private let holidayProvider = HolidayProvider.shared ... func cancel(_ alarm: AlarmModel) throws { try manager.cancel(id: alarm.id) Task { await AlarmLiveActivityManager.end(alarmID: alarm.id) } } ... enum AlarmLiveActivityManager { static func upsert( alarmID: UUID, attributes: AlarmAttributes, content: ActivityContent ) async { let matches = activeActivities(for: alarmID) if let activity = matches.first { await activity.update(content) await endActivities(matches.dropFirst()) return } _ = try? Activity.request( attributes: attributes, content: content, pushType: nil ) } static func end(alarmID: UUID) async { let matches = activeActivities(for: alarmID) await endActivities(matches) } private static func activeActivities(for alarmID: UUID) -> [Activity< AlarmAttributes >] { Activity>.activities.filter { activity in guard isActive(activity.activityState) else { return false } return activity.content.state.alarmID == alarmID } }
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags:
Hi. I'm not sure this is relevant for developer forums. But I'm not sure where else to turn. I've been trying to open an Apple Ads account for nearly a month. Every time I try to submit the form, I get Server encountered an error processing your request followed by reason code: befe5482-e13e-4439-ae0d-badb3ca398a7_1767983516160.C67AC66. I can't contact Apple Ads, because every time I try to fill in the contact form I get Please correct the errors below. But there are no errors to correct. I've tried every possible combination of phone number formatting, special characters, spaces and all the usual suspects. Nothing works. I have a UK developer account in good standing. No issues, 2 live apps. I have reached out to Developer Support. No reply. I reached out to regular consumer support. They suggested Developer Support. I've got an app I'm trying to market and a budget ready to spend. Any ideas anyone?
The same error occurs to me. I assigned guardians to iPhones logged in with my child's account and activated communication restrictions. In addition, the following alerts and apps pop up on the console despite the fact that requests are made only when you are under a certain age using the AgeService before calling permissionKit. Error Domain=AskToCore.ATMessageComposeValidationError Code=4 The user is in a region that does not support this type of ask. NSLocalizedDescription: The user is in a region that does not support this type of ask. NSLocalizedFailureReason: The user must be in a supported region to use this feature. I'm not living in texas.
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
That is not the behavior I see. When I schedule a local notification with UNCalendarNotificationTrigger and only specify the hour and minute in the date component it still locks to an absolute time based on the timezone when scheduled. For example, I set the phone's timezone to PST and schedule a local notification to fire at 9:00 AM - the date component only sets hours and minutes. When I change the phone's timezone to MST, the notification will not fire at 9:00 AM MST and instead will fire at 10:00 AM MST (which is 9am PST). Afaik, there is no way to schedule a local notification to always fire at 9:00 AM regardless of timezone without extra coding to detect a timezone change and update the scheduled local notifications.
Topic:
App & System Services
SubTopic:
Notifications
My goal is to print a debug message from a shader. I follow the guide that orders to set -fmetal-enable-logging metal compiler flag and following environment variables: MTL_LOG_LEVEL=MTLLogLevelDebug MTL_LOG_BUFFER_SIZE=2048 MTL_LOG_TO_STDERR=1 However there's an issue with the guide, it's only covers Xcode project setup, however I'm working on a Swift Package. It has a Metal-only target that's included into main target like this: targets: [ // A separate target for shaders. .target( name: MetalShaders, resources: [ .process(Metal) ], plugins: [ // https://github.com/schwa/MetalCompilerPlugin .plugin(name: MetalCompilerPlugin, package: MetalCompilerPlugin) ] ), // Main target .target( name: MegApp, dependencies: [MetalShaders] ), .testTarget( name: MegAppTests, dependencies: [ MegApp, MetalShaders, ] ] So to apply compiler flag I use MetalCompilerPlugin which emits debug.metallib, it also allows to define DEBUG macro for shaders. This code compiles: #ifdef DEBUG logger.log_error(Hello There!); os_log
I had updated the github code here for the setting . Please advise the specific setting The configuration that I see in the GitHub repository looks correct now in terms of overall configuration of your Launch Storyboard and the overall keys. However, I will reiterate what I said earlier to make sure that the contents of your launch screen match the Human Interface Guidelines. — Ed Ford, DTS Engineer
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
I want to add the Sign In with Apple feature to my iPadOS application. I've already done the following: Include com.apple.developer.applesignin in mobileprovision Include com.apple.developer.applesignin in entitlements However, I'm getting the following errors: `Authorization failed: Error Domain=AKAuthenticationError Code=-7026 (null) UserInfo={AKClientBundleID=xxxx} LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={_LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSFile=LSDReadService.mm, NSDebugDescription=process may not map database} Attempt to map database failed: permission was denied. This attempt will not be retried. Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={_LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSFile=LSDReadService.mm, N
Hi @Ankita-Shrivastava, These forums for intended for code-level questions from our Developer community. This question is about a user-facing feature of macOS. Please see the following support page for more details about Full Disk Access: Mac User Guide: Change Privacy & Security settings on Mac https://support.apple.com/guide/mac-help/change-privacy-security-settings-on-mac-mchl211c911f/15.0/mac/15.0#:~:text=Full%20Disk%20Access Cheers, Paris X Pinkney | WWDR | DTS Engineer
Topic:
Privacy & Security
SubTopic:
General
Thanks for the replies. You are both quite right that I should have provided more information. When I say that notarization succeeds, I mean that I submit the dmg file produced by the build to the Apple notarization service and receive a status of 'Accepted'. I take this to mean all is well. When I say that notarization fails, I mean that the notarization step produces a status of 'Invalid'. Retrieving the notarization log indicates that the binaries were not signed. I've just gone through this again with my two machines. The build here is performed by scripts that are maintained in source code control and forced to be identical in both setups. The build infrastructure is also the same for both. Before beginning, both machines were powered off for a period of time. Power up one machine. Ensure the source tree is up-to-date. Run the build to produce a signed dmg. Submit it for notarization. The submission produces a status of Accepted. Power down the first machine. Power up the second machine
Topic:
Code Signing
SubTopic:
Notarization
Hello, Can you please provide the code in which you created and configured the NSPrintOperation? Thank you for your patience, Richard Yeh Developer Technical Support
Topic:
UI Frameworks
SubTopic:
AppKit
Tags:
Dimension can be subclassed to create the custom units. You probably don't want to subclass Dimension for reciprocal units since there's no good way to convert between measurements of different Dimension types. Instead, you can extend the existing classes to add the new reciprocal units, and then conversion will work like usual. subclass [UnitConverter] to something like UnitConverterInverse Yep you'll need that. Interestingly, there's already a reciprocal unit buried in the existing measurement API. It uses a reciprocal converter that is exactly what you need, but unfortunately isn't part of the public API. Check this out: Welcome to Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2). Type :help for assistance. 1> import Foundation 2> print(UnitFuelEfficiency.litersPer100Kilometers.converter) <_NSStatic_NSStaticUnitConverterLinear_NoConst: 0x20761bfc8> coefficient = 1.000000, constant = 0.000000 3> print(UnitFuelEfficiency.milesPerGallon.converter) reciprocalValue = 23
Topic:
App & System Services
SubTopic:
General
Tags:
On MacBook Pro M3 14 I can profile the Metal App performance by running it, then clicking on the M icon and choosing profile after replay. On Mac Studio M2 Ultra I cannot: the profiler starts and crashes. I have tried everything including reinstalling the OS, Xcode, the Metal SDK, you name it. The app uses the Metal 4 API. The content of the replayer errorinfo report is shown at the end. Any ideas what is going on here and/or what else I can do do root cause this and fix it? FWIW, it was worse on 26.1 (Xcode just reported Metal 4 profiling not available). In 26.2 Xcode attempts to profile and invariably crashes. === Error summary: === 1x DYErrorDomain (512) - guest app crashed (512) 1x com.apple.gputools.MTLReplayer (100) - Abort trap: 6 === First Error === Domain: DYErrorDomain Error code: 512 Description: guest app crashed (512) GTErrorKeyPID: 26913 GTErrorKeyProcessName: GPUToolsReplayService GTErrorKeyCrashDate: 2026-01-09 19:22:52 +0000 === Underlying Error #1 === Domain: com.apple.gputools.MTLR
Topic:
Graphics & Games
SubTopic:
Metal