Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,673 results found

Post

Replies

Boosts

Views

Activity

During the process of uploading a large file, I moved it to the trash can. How can I directly interrupt this upload process
I am currently encountering a problem: during the process of uploading a large file, I have moved the file that was not successfully uploaded to the trash can. These two operations have been tested to be serial (triggering the 'create Item' callback first, followed by the 'modify Item' callback), which means that the file must be uploaded before it can be moved to the recycle bin (which can also result in the file being stored in the cloud recycle bin). I want to implement: directly interrupt this upload process and then do not complete the upload. How can I achieve this? Please help me. Thank you
2
0
108
1w
Reply to Zsh kills Python process with plenty of available VM
Thank you for sharing. The following is an AI-generated overview, but if it is correct, it seems that the only thing that vm_compression_limit would change is the compression of physical memory, not virtual memory. That AI description is a mixed bag of semi-nonsense. As a general warning, this is not an area where I'd trust AI to produce a reliable answer. The AI system is generating its answer by making up an answer based on scraping the internet, but the problem is that this doesn't really work when very little conversation/information has been published. Amusingly, if you tell the AI system it's wrong, it will helpfully accept your feedback and start making up new nonsense that's closer to the truth. In terms of the specific description, there are a few different issues: The percentage description is simply wrong. It's true that the default value is based on a percentage of RAM, but the whole point of the boot-arg is to override the default by providing a fixed value. The description of how compressed memo
1w
Xcode Cloud: Command line name "app-store" is deprecated
Since Dec 18th, my Xcode Cloud builds (for multiple apps) have been failing with this error: Command line name app-store is deprecated. Use app-store-connect instead. I haven't made any changes to my system, signing, etc, and two separate apps started failing at the same time. No matter what I change on my Workflows (environment, new workflow from scratch, etc), nothing seems to fix it, which leads me to believe this is a bug with Xcode Cloud itself. I've logged FB21456291 already, but just wanted to post here to see if I'm missing something.
1
0
64
1w
Reply to Xcode 26.2 does not allow for real-time updates warning
Thanks for taking the time to share your question here. Unfortunately, it hasn't received an answer yet. Here are a few suggestions that might help it attract more attention: Provide more details: Expanding on your post to include any error messages, code snippets, steps you've already taken to troubleshoot, and the expected/actual outcomes would be very helpful. Be specific about your technology stack: Clearly state the programming languages, frameworks, or tools you are using. Check for duplicates: Before posting, make sure your question hasn't been asked before. You can use the search bar to find similar threads. I'm sure someone in the community will be able to help once you have a chance to update your post. I would love to help you in this issue, examples or code will help me understand better your issue. Albert Pascual
  Worldwide Developer Relations.
1w
Reply to The Liquid Glass effect disappeared after being released online
Thanks for taking the time to share your question here. Unfortunately, it hasn't received an answer yet. Here are a few suggestions that might help it attract more attention: Provide more details: Expanding on your post to include any error messages, code snippets, steps you've already taken to troubleshoot, and the expected/actual outcomes would be very helpful. Be specific about your technology stack: Clearly state the programming languages, frameworks, or tools you are using. Check for duplicates: Before posting, make sure your question hasn't been asked before. You can use the search bar to find similar threads. I'm sure someone in the community will be able to help once you have a chance to update your post. Looking forward to help you with your Liquid Glass issue. Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: UIKit
1w
Reply to iOS 26: Unable to Transition from CallKit Screen to App when remoteHandle is nil or empty string
Are you asking if there's a reason we're not setting Unknown Caller in update.localizedCallerName? No. I was actually asking why you weren't using a CXHandle with a type set to generic and a string value to set to Unknown Caller (or whatever you wanted). So, let me actually step back for a moment and clarify the general roles these two different properties have: CXHandle -> This is intended to be the unique identifier for a particular call source. Phone calls use phone numbers, while other systems might use email addresses or string values (like user names). CXCallUpdate.localizedCallerName -> The name you actually want to show the user. Note that the mapping between these two values is definitely not one-to-one. For example: The same person can have multiple handles associated with it (for example, because a user has multiple account/phone numbers). Totally unrelated CXHandles may have the same localizedCallerName, either because of simple name overlap (there's more than one Kevin Ell
Topic: App & System Services SubTopic: General Tags:
1w
iOS 26: Unable to Transition from CallKit Screen to App when remoteHandle is nil or empty string
Hello, I am developing an internal phone application using CallKit. I am experiencing an issue with the behavior of remoteHandle settings in iOS 26 and would appreciate any insights you can provide towards a solution. 1. Problem Description When an iPhone running iOS 26 is in a sleep state and receives a VoIP incoming call where remoteHandle is set to nil or an empty string (@), we are unable to transition to our application (the UIExtension provided by the provider) from the CallKit UI's More (…) button after answering the call. 2. Conditions and Symptoms OS Version: iOS 26 Initial State: iPhone is in a sleep state Call Type: An unsolicited(unknown number) VoIP incoming call where the CXCallUpdate's remoteHandle is set to either nil or [[CXHandle alloc] initWithType:CXHandleTypePhoneNumber value:@] Symptoms: After answering the VoIP call by sliding the button, selecting the More (…) button displayed on the CallKit screen does not launch our application's UIExtension (custom UI), and the iPhone inste
3
0
169
1w
Live Activity – crashes on ActivityAuthorizationInfo() and Activity.activities
Hey! I'm working on enabling remotely started live activities. I'm running into 2 crashes: Upon initializing ActivityAuthorizationInfo Upon calling Activity<...>.activities array Both stack traces look like this: 0 libsystem_kernel.dylib +0xce0 _mach_msg2_trap 1 libsystem_kernel.dylib +0x4398 _mach_msg2_internal 2 libsystem_kernel.dylib +0x42b4 _mach_msg_overwrite 3 libsystem_kernel.dylib +0x40fc _mach_msg 4 libdispatch.dylib +0x1cc04 __dispatch_mach_send_and_wait_for_reply 5 libdispatch.dylib +0x1cfa4 _dispatch_mach_send_with_result_and_wait_for_reply 6 libxpc.dylib +0x107ec _xpc_connection_send_message_with_reply_sync 7 BoardServices +0xaea8 -[BSXPCServiceConnectionMessage _sendWithMode:] 8 BoardServices +0x17938 -[BSXPCServiceConnectionMessage sendSynchronouslyWithError:] 9 BoardServices +0xeef0 ___71+[BSXPCServiceConnectionProxy createImplementationOfProtocol:forClass:]_block_invoke They happen to a limited number of users, but not insignificant. Most are on iOS 18.6.2 and iOS 26.1
2
0
197
1w
Background App Refresh
Hi, I have a couple questions about background app refresh. First, is the function RefreshAppContentsOperation() where to implement code that needs to be run in the background? Second, despite importing BackgroundTasks, I am getting the error cannot find operationQueue in scope. What can I do to resolve that? Thank you. func scheduleAppRefresh() { let request = BGAppRefreshTaskRequest(identifier: peaceofmindmentalhealth.RoutineRefresh) // Fetch no earlier than 15 minutes from now. request.earliestBeginDate = Date(timeIntervalSinceNow: 15 * 60) do { try BGTaskScheduler.shared.submit(request) } catch { print(Could not schedule app refresh: (error)) } } func handleAppRefresh(task: BGAppRefreshTask) { // Schedule a new refresh task. scheduleAppRefresh() // Create an operation that performs the main part of the background task. let operation = RefreshAppContentsOperation() // Provide the background task with an expiration handler that cancels the operation. task.expirationHandler = { operation.cancel() }
27
0
648
1w
Reply to Background App Refresh
I think I understand what you are saying; however, with the code I have above, wouldn't the task run after the app being closed for a minute? Note that NSTimeInterval is based on seconds, not minutes, so a value of 1 is one second, not one minute. or is there an error in that code? There isn't an error in your code as such; however, I think you've misunderstood what the API means. The key issue is here: request.earliestBeginDate = Date(timeIntervalSinceNow: 1) The earliestBeginDate property is the system’s earliest time the system is allowed to run your task. That is, if you set that interval to 3600 (1 hour in seconds), then the system guarantees that it won't run your task until at LEAST 1 hour from now. The key words there are at LEAST“ - that is, the system is ONLY guaranteeing that the work won't run BEFORE that time, NOT making any promises about when the work will fire AFTER that time. The thing to understand here is that the larger goal here is to let the system better manag
1w
Announcing the Swift Student Challenge 2026
Announcing the Swift Student Challenge 2026 Every year, Apple’s Swift Student Challenge celebrates the creativity and ingenuity of student developers from around the world, inviting them to use Swift and Xcode to solve real-world problems in their own communities and beyond. Learn more → https://developer.apple.com/swift-student-challenge/ Submissions for the 2026 challenge will open February 6 for three weeks, and students can prepare with new Develop in Swift tutorials and Meet with Apple code-along sessions. The Apple Developer team is here is to help you along the way - from idea to app, post your questions at any stage of your development here in this forum board or be sure to add the Swift Student Challenge tag to your technology-specific forum question. Your designs. Your apps. Your moment.
9
0
1.4k
1w
Reply to Announcing the Swift Student Challenge 2026
[quote='870922022, XXY_CH, /thread/806582?answerId=870922022#870922022, /profile/XXY_CH'] I am a bit confused about the 25MB limit for zip file size [/quote] You submit your source code and its required resources as a zipped up app playground (.swiftpm). The submission size limit applies to that. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Swift Playgrounds macOS repeatedly asks “My App would like to access data from other apps”
Environment: Swift Playgrounds (macOS) SwiftUI App Preview macOS version: 26.2 (25C56) Issue: In Swift Playgrounds on macOS, the app repeatedly shows the system permission dialog: “My App would like to access data from other apps. Keeping app data separate makes it easier to manage your privacy and security.” Steps to Reproduce: Create a new SwiftUI app in Swift Playgrounds. Run the SwiftUI App Preview. When the permission dialog appears, click “Allow”. Expected Result: The permission should be granted once and persist, allowing the preview to continue normally. Actual Result: After clicking “Allow”, the SwiftUI App Preview crashes and restarts. When the preview restarts, the same permission dialog appears again. This repeats indefinitely, creating a loop. Notes: This occurs even when no explicit file system or inter-app data access code is written. The permission choice does not appear to persist between preview restarts. Question: Is this a known limitation of Swift Playgrounds sandboxing or SwiftU
2
0
119
1w
Pre-inference AI Safety Governor for FoundationModels (Swift, On-Device)
Hi everyone, I've been building an on-device AI safety layer called Newton Engine, designed to validate prompts before they reach FoundationModels (or any LLM). Wanted to share v1.3 and get feedback from the community. The Problem Current AI safety is post-training — baked into the model, probabilistic, not auditable. When Apple Intelligence ships with FoundationModels, developers will need a way to catch unsafe prompts before inference, with deterministic results they can log and explain. What Newton Does Newton validates every prompt pre-inference and returns: Phase (0/1/7/8/9) Shape classification Confidence score Full audit trace If validation fails, generation is blocked. If it passes (Phase 9), the prompt proceeds to the model. v1.3 Detection Categories (14 total) Jailbreak / prompt injection Corrosive self-negation (I hate myself) Hedged corrosive (Not saying I'm worthless, but...) Emotional dependency (You're the only one who understands) Third-person manipulation (If you refuse, you're proving nobody
1
0
504
1w
Reply to LanguageModelSession with multiple tools and structured outpout
Hello! Sorry for the delay, most of us at Apple have been on winter break :) For this particular problem, we don't currently have a great solution. To be clear, from your description I'm interpreting your problem as: Given 2 tools Tool A and Tool B Each tool should return a different kind of structured output, OutA and OutB. Currently the model can correctly choose between Tool A and Tool B, but you're stuck with the model returning a single type: either string, OutA, or OutB. But really you want OutA or OutB depending on the user's query. The best I can currently offer you is a workaround, which would work as follows: Create a struct kinda like a view model (let's call it ResponseViewModel), that you give Tool A and Tool B upon initializing each tool. Still use the model to choose the correct tool based on the user's requests, and let the model call Tool A or Tool B with the correct dynamically-generated arguments. If Tool A is called, in the call body, set the return structure you want, OutA, on th
1w