Search results for

DTiPhoneSimulatorErrorDomain Code 2

159,888 results found

Post

Replies

Boosts

Views

Activity

Reply to First time SSC contestant here. Need some advice.
[quote='877433022, mlgiPhone7plus, /thread/812911?answerId=877433022#877433022, /profile/mlgiPhone7plus'] Could it be okay to leave a note in the Other comments section of the form for the judges to run apps on a live iPhone or iPad? [/quote] Leaving a note is OK, obviously, but I can’t promise that it’ll have any effect. There are two ways to submit your app. One of them guarantees that your submission will be run on device, but it has a significant limitation. I just posted a summary of the current state of affairs here. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
36m
First time SSC contestant here. Need some advice.
I hope you’re having a fantastic New Year and that your apps are doing great! This is my first time entering SSC , and I’m excited to share that I’m developing a screen timer app. The idea is to encourage you to take breaks by suggesting a run or workout instead of spending too much time on your screens. I was wondering, have anyone else included short videos or animations in their entries before? Also, could my screen time timer be running in the background? I know there are some limitations with integrations like HealthKit and Screen Time, which is why I’m using a regular countdown timer on the App Store as a prototype. I’m just trying to clarify the rules below to make sure that it’s all good to go : “If your submission includes any open source software, music, photos, artwork, or any other content that you do not have ownership rights in, you agree to (a) comply with all applicable licensing terms and copyright obligations and (b) provide an explanation of why it was used.” And regarding any tracking stuf
8
0
848
36m
LaunchAgent (Mac) as peripheral doesn't show a pairing request.
The same code built in a regular Mac app (with UI) does get paired. The characteristic properties are [.read, .write, .notify, .notifyEncryptionRequired] The characteristic permissions are [.readEncryptionRequired, .writeEncryptionRequired] My service is primary. In the iOS app (central) I try to read the characteristic, but an error is reported: Error code: 5, Description: Authentication is insufficient.
8
0
284
57m
Translation framework use in Swift 6
I’m trying to integrate Apple’s Translation framework in a Swift 6 project with Approachable Concurrency enabled. I’m following the code here: https://developer.apple.com/documentation/translation/translating-text-within-your-app#Offer-a-custom-translation And, specifically, inside the following code .translationTask(configuration) { session in do { // Use the session the task provides to translate the text. let response = try await session.translate(sourceText) // Update the view with the translated result. targetText = response.targetText } catch { // Handle any errors. } } On the try await session.translate(…) line, the compiler complains that “Sending ‘session’ risks causing data races”. Extended error message: Sending main actor-isolated 'session' to @concurrent instance method 'translate' risks causing data races between @concurrent and main actor-isolated uses I’ve downloaded Apple’s sample code (at the top of linked webpage), it compiles fine as-is on Xcode 26.4, but fails w
3
0
61
2h
Reply to Can my submission be ran on iPhone?
Right. The submission form has two options: Swift Playground 4.6 or later Xcode 26 or later (with a note saying “Xcode app playgrounds are run in Simulator.”) In the first case, your submission must necessarily be run on an iPad. In the second, your submission will be run on the simulator, not a real device. There are some caveats here: In the first case, the Swift Playground app doesn’t yet include support for the iOS 26 SDK )-: See this thread. In the second case, the form doesn’t currently say whether it’ll be an iPhone on iPad simulator. See this thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
2h
Status Inquiry: Apps Still in “Waiting for Review”
Hello Apple Review Team, I am writing to inquire about the review status of my two apps, which are still in the “Waiting for Review” stage: Healthoria: Health Diary – Submitted on Feb 5 at 7:01 PM OrbitGoals – Submitted on Feb 17 at 4:11 PM Could you please provide an update on the expected review timeline? I want to ensure there are no issues or missing information delaying the process. Thank you for your assistance. Best regards, Berkay
2
0
58
3h
nonisolated Execution Differences Before and After Xcode 26.2
I have an older project that was created before Xcode 26.2. In Xcode versions prior to 26.2, there was no Swift Compiler – Concurrency build setting. With those older versions, the following behavior occurs: a nonisolated function executes off the main thread. class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() run() } private func run() { Task { await runInMainThread() } } func runInMainThread() async { print(>>>> IN runInMainThread(), Thread.isMainThread (Thread.isMainThread)) await runInBackgroundThread() } private nonisolated func runInBackgroundThread() async { print(>>>> IN runInBackgroundThread(), Thread.isMainThread (Thread.isMainThread)) } } Output: >>>> IN runInMainThread(), Thread.isMainThread true >>>> IN runInBackgroundThread(), Thread.isMainThread false However, starting with Xcode 26.2, Apple introduced the Swift Compiler – Concurrency settings. When running the same code with the default configurati
3
0
132
3h
My EndpointSecurity Client process is kicked by OS on Mac sleep/wake cycle
Hi, I develop an ES client applying rule-engine evaluating ES events (mostly File-system events). It is a bit non-standard not being deployed as a System-Extension, but rather as a global daemon. On some Macs, I sometimes see crash reports for the ES process, all sharing Termination Reason: Namespace ENDPOINTSECURITY, Code 2 EndpointSecurity client terminated because it failed to respond to a message before its deadline All of these happen not while normal Mac usage, but rather right at Mac wakeup time after sleep. My guess is, some ES_AUTH events (with deadline) arrive when Mac goes to sleep, and somehow my high-priority dispatch_queue handling them is put to sleep mid processing them, so when the Mac wakes up - event handling continues long after the deadline passed, and MacOS decides to kick the process. Questions: What is the recommended behavior with ES vs Sleep/Wake cycles? (we're not an antivirus, and we don't care much to clear events or go blind for such time) Can I specify somewher
2
0
41
4h
Reply to My EndpointSecurity Client process is kicked by OS on Mac sleep/wake cycle
Thank you so much for the elaborate and helpful reply. I will try to address each point, to try and see how to close in on my problem. I will also attach a sample crash-report. My rule engine is very fast, based on NSPredicates over ObjC custom classes (No core-data etc.). Rule evaluation is completely internal to my daemon, no API calls and no external calls. There IS , however a stage prior to rule evaluation, where I Parse ES messages into my custom ObjC class, and in that stage there are few API calls one of which has given me grief in the past. I need to decide whether a file-system object (from the ES message) is a Document, in my own semantics. A document is any normal file, or -- package directories. If the file-system object exists and is a directory, and it has a file-name extension, I use something like: _isDocument = [[NSWorkspace sharedWorkspace] isFilePackageAtPath:_filePath ]; If it is non-existing (to be created etc.) Then I use this heuristics and API: { // non-existing directory object about
Topic: App & System Services SubTopic: Core OS Tags:
4h
macOS 26.4 Dev Beta 2 Install Fails
Hardware: • Mac Studio (M1 Ultra) • Apple Silicon • Sufficient free disk space (~35GB+ available) • SIP enabled • 4 local Time Machine snapshots present Current System: • Already running macOS Tahoe beta • Attempting upgrade to macOS Tahoe 26.4 Beta (Build 25E5207k) Primary Issue: Software Update downloads successfully, then moves to “Preparing…”. It stalls at “About 5 minutes remaining” for ~10–15 minutes and fails with: “Failed to prepare the software update. Please try again. An error occurred while downloading the selected updates.” The error appears network-related, but download always completes. Observed Behaviour: • “Checking for Updates” completes in <3 minutes. • softwareupdated and mobileassetd CPU usage <1%. • softwareupdate --history shows no record of the failed beta install. • No excessive system load or obvious disk pressure. Steps Already Attempted: 1. Standard Software Update retries • Multiple download/retry cycles from System Settings. • Same Preparing failure every time. 2.
8
0
209
7h
StoreKit Sandbox – Unfinished Consumable Transaction Across Devices
I’d like to confirm the expected behavior of StoreKit 2 in the Sandbox environment regarding unfinished consumable transactions across devices. Scenario: Device A and Device B are signed in with the same Sandbox Apple ID A consumable in-app purchase is completed on Device A The transaction may be verified or unverified, but transaction.finish() is not called The app is then launched on Device B and listens for Transaction.updates Question: In this scenario, is it expected that Device B will or will not receive a callback for this unfinished consumable transaction? Or is it by design that unfinished consumable transactions are not guaranteed to be delivered across devices, regardless of verification state?
2
0
81
8h
Reply to UITabBarController crashes when editing the items
Until 26.4 is generally available, I have found an ugly, but usable, workaround: First perform method swizzling to replace addSubiew:, then in the replacement implementation do nothing when a view is being added to it self This will avoid the crash, but results in a graphic glitch where the selection overlay is opaque over some tabs. Very ugly. To solve this problem: Implement the tab-bar-controller delegate method to detect when customization has ended. When it has ended, set the tab-bar-controller's view-controllers to just the first view-controller, without animation. Then immediately restore the original set of view-controllers, again without animation. This will force the tab-bar to refresh and resolve the graphic glitch from (1) Finally, set the more-view-controller as the selected-view-controller again, since the re-setting of view-controllers in (2) will reset the selected tab. With the above, I do not experience crashes, and there is about 1/2 a second of visual glitching, but thing
Topic: UI Frameworks SubTopic: UIKit
9h
Reply to Apple App Store
Es tut mir leid zu hören, dass Sie Probleme mit der App Store-Leistung auf Ihrer Beta 2 iOS 26.4-Version haben. Hier sind ein paar Schritte, die Sie ausprobieren könnten, um die Situation zu verbessern: Neustart des Geräts: Manchmal kann ein einfacher Neustart helfen, kleinere Softwareprobleme zu beheben. Prüfen auf Updates: Stellen Sie sicher, dass Sie die neuesten Beta-Updates installiert haben. Manchmal werden in nachfolgenden Beta-Versionen Leistungsverbesserungen vorgenommen. Schließen anderer Apps: Stellen Sie sicher, dass nicht zu viele Apps im Hintergrund laufen, da diese die Leistung beeinträchtigen können. Freier Speicherplatz: Prüfen Sie, ob auf Ihrem Gerät noch ausreichend Speicherplatz vorhanden ist. Ein Mangel an Speicherplatz kann die Leistung beeinträchtigen. Temporäre Dateien löschen: Gehen Sie zu Einstellungen > Allgemein > iPhone-Speicher und löschen Sie temporäre Dateien oder Apps, die Sie nicht mehr benützen. Netzwerkverbindung prüfen: Stellen Sie sicher, dass Sie eine stab
9h