Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,676 results found

Post

Replies

Boosts

Views

Activity

Why does NSEvent.addGlobalMonitorForEvents still work in a Sandboxed macOS app
I am building a macOS utility using SwiftUI and Swift that records and displays keyboard shortcuts (like Cmd+C, Cmd+V) in the UI. To achieve this, I am using NSEvent.addGlobalMonitorForEvents(matching: [.keyDown]). I am aware that global monitoring usually requires the app to be non-sandboxed. However, I am seeing some behavior I don't quite understand during development: I started with a fresh SwiftUI project and disabled the App Sandbox. I requested Accessibility permissions using AXIsProcessTrustedWithOptions, manually enabled it in System Settings, and the global monitor worked perfectly. I then re-enabled the App Sandbox in Signing & Capabilities. To my surprise, the app still records global events from other applications, even though the Sandbox is now active. Is this expected behavior? Does macOS remember the trust because the Bundle ID was previously authorized while non-sandboxed, or is there a specific reason a Sandboxed app can still use addGlobalMonitor if the user has manually granted Accessi
1
0
432
2w
Reply to App Clip Experience Does Not Update Content After Initial Creation (Persistent Caching Issue)
It seems like it's happening to everyone regardless of the number of app clips. It's happening to us (around 2x less app clips) and I found at least two more bug reports that were filled this month. One user has only one app clip, the other one has two app clips. https://developer.apple.com/forums/thread/810544 https://developer.apple.com/forums/thread/811156 https://developer.apple.com/forums/thread/811148 What's interesting is someone else had that issue back in 2024 (https://developer.apple.com/forums/thread/763374) and it eventually got fixed. So I think that's just the same issue and needs to be fixed again, we need to get Apple's attention on this matter. Do you mind pinging DTS Engineer at that thread from 2024?
Topic: App & System Services SubTopic: General Tags:
2w
Xcode 26.1 Simulator download fails with DVTDownloadableErrorDomain code 41 and code 49 on macOS 26.1
I'm trying to download an iOS Simulator runtime in Xcode 26.2 or 26.1 on macOS 26.1, but the download keeps failing with the following error: Download failed. Domain: DVTDownloadableErrorDomain Code: 41 Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({ RequestedBuild = 23C54;}) Domain: DVTDownloadsUtilitiesErrorDomain. Code: -1. Download failed due to a bad URL. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime) Domain: com.apple.MobileAssetError.Download Code: 49 User Info: {checkConfiguration = 1;} macOS & Xcode Info: macOS Version: 26.1 (Build 25B78) Xcode Version: 26.2 (24553) (Build 17C52) What I've tried so far: Formatted my Mac and reinstalled Xcode multiple times. Completely deleted Xcode and its related files several times (/Applications/Xcode.app, caches, preferences). Tried different internet connections from multiple locations. Checked Apple servers and verified network. Attempted downloading other si
2
0
290
2w
NSPersistentCloudKitContainer in duplicate processes
I have a single multiplatform application that I use NSPersistentCloudKitContainer on. This works great, except I noticed when I open two instances of the same process (not windows) on the same computer, which share the same store, data duplication and Metadata Inconsistency errors start appearing. This answer (https://stackoverflow.com/a/67243833) says this is not supported with NSPersistentCloudKitContainer. Is this indeed true? If it isn't allowed, is the only solution to disable multiple instances of the process via a lock file? I was thinking one could somehow coordinate a single leader process that syncs to the cloud, with the others using NSPersistentContainer, but this would be complicated when the leader process terminates. Currently, it seems iPad split views are new windows, not processes -- but overall I'm still curious :0 Thank you!
1
0
210
2w
Bug apple Health
Hello everyone, I’m experiencing a visual issue when dismissing a sheet on iOS 26. I’m using the same implementation shown in the official Apple documentation. While testing, I noticed that some apps do not exhibit this behavior. However, when running this code on iOS 26, the issue consistently occurs. Issue description: The sheet dismisses abruptly A white screen briefly appears for a few milliseconds and then disappears This results in a noticeable visual glitch and a poor user experience I tested the exact same code on iOS 18, where the sheet dismisses smoothly and behaves as expected, without any visual artifacts. Has anyone else encountered this issue on iOS 26? Is this a known bug, or is there a recommended workaround? Any insights would be greatly appreciated. Thank you.
5
0
174
2w
iOS Safari Rendering Issue: Sticky Header Sometimes Fails to Update After DOM Changes
I’m encountering an issue on iOS when rendering a list using React. Each list item uses the array index as the React key and consists of two parts: a header section that uses position: sticky for dynamic sticking behavior, and a body section whose height is automatically adjusted based on its content. When the list data is updated, I sometimes observe that the sticky header content does not update visually in time, even though the underlying data and DOM have changed. // demo.jsx import React, { useState } from 'react'; import { Button } from '@iftide/mobile'; import './style2.less'; // import data1 from './data1.json'; // import data2 from './data2.json'; const prefixCls = 'im-detaillist'; const data1 = [ { sectionTitle: '2025年05月' }, { sectionTitle: '2025年04月' }, { sectionTitle: '2025年03月' } ]; const data2 = [ { sectionTitle: '2023年08月' }, { sectionTitle: '2023年07月' }, { sectionTitle: '2023年06月' }, { sectionTitle: '2023年05月' } ]; export default function App() { const [list, setList] = useState(data
Topic: Safari & Web SubTopic: General Tags:
0
0
116
2w
LanguageModelSession with multiple tools and structured outpout
Hi, I'm using LanguageModelSession and giving it two different tools to query data from a local database. I'm wondering how I can have the session generate structured content as the response that includes data one or both tools (or no tool at all). Here is an example of what I'm trying to do: Let's say the app has access to a database that contains information about exercise and sleep data (this is just an analogy). There are two tools, GetExerciseData() and GetSleepData(). The user may then prompt something like, how well did I sleep in November. I have this working so that it calls through to the right tool, which would return a SleepSummary. However, I can't figure out how to have the session return the right structured data. I can do this and get back good text data: let response = session.respond(to: userInput), but I believe I want to do something like: let response = session.respond(to: trimmed, generating: ) Sometimes the model I run one tool or the other, or both tools, or no tool a
1
0
404
2w
Steal some The Browser Company Arc browser side tab ideas
Please kindly improve the Safari browser side bar implementation further along with what The Browser Company has done with their Arc browser. Arc is about to retire soon too and they're willing to sell their SwiftUI code perhaps too for a decent pile of dollars, not the Jony Ive piles at least it should not. The toggle for side bar is nice and works perfect though!
Topic: Safari & Web SubTopic: General Tags:
1
0
369
2w
Reply to Finding out what code is creating some hidden files
That doesn't look like standard code for Apple platforms. Are you including any 3rd party frameworks or other code? That's most likely the source of these kinds of files. They could even come from 4th party code including in your 3rd party libraries. I'm sure it's device analytics/tracking code. You probably won't see it when run from Xcode or probably even from a developer machine. Such code is designed to detect this kind of usage and only execute on end user scenarios.
2w
Reply to Phone Crashing
Not enough information to help you. What phone are you using? What version of iOS did you install? When does the phone crash? And do you mean the actual phone crashes and reboots, or do you mean apps just crash immediately when you try to launch them? Why doesn't it send messages? What happens? Any errors? No one can help you unless you provide the right information. It's like walking up to a mechanic and telling him your car won't start, but not telling him what model of car it is, where it is, what you've tried to get it to start, and into which lake you threw the keys. Besides, this isn't the place for your query. These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
2w
Reply to WebView makes website content unaccessible on the top/bottom edges
@DTS Engineer Do you know if there's any progress on a fix for it or if there's any workaround? I tried injecting custom CSS, but that breaks many websites, and I can't be adding custom code for every single website out there 🤪 The bottom safe area seems to work as expected, the problem is just at the top with the navigation bar + top safe area. Here's a quick sample code that can be pasted anywhere to run and observe the issue on three different websites: import WebKit import SwiftUI @main struct WebViewSafeAreaApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { let urls: [URL] = [ URL(string: https://mastodon.social)!, URL(string: https://substack.com)!, URL(string: https://apple.com)! ] @State private var selection: URL? var body: some View { NavigationSplitView { List(selection: $selection) { ForEach(urls, id: .absoluteString) { url in Text(url.absoluteString).tag(url) } } .navigationTitle(Sidebar) .navigationBarTitleDisplayMode(.inline) } deta
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
CompileMetalFile Failed With Xcode Cloud
Hello guys, recently I integrated a third-party library into my code to handle blur effects (Glur). This library leverages Metal's compute capabilities and appears to automatically depend on the Metal toolchain during the build process. When using Xcode Cloud, the archive step consistently fails with a CompileMetalFile Failed error. However, when I manually archive the project in Xcode locally, everything works fine without any issues. I’ve confirmed that the macOS and Xcode versions specified in my Xcode Cloud workflow are correct. Reply if you know how to fix it or it will be fixed future, thanks. I'm using Xcode 26.2(17C52) and macOS(15.7.1 (24G231))
0
0
51
2w