Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,370 results found

Post

Replies

Boosts

Views

Activity

Client-Side PDF Download Performance Issue in Safari
Hi Team, We are observing a noticeable performance difference in client-side PDF generation between Safari and Chrome. Use Case We have an AI modal with a “Download PDF” feature. The PDF is generated on the client side using HTML content from the modal. Observation Chrome: PDF generation completes in ~1–2 seconds Safari: Same flow takes ~25–30 seconds Additional Details The functionality works correctly in both browsers, and the PDF downloads successfully. The issue is mainly the increased processing time in Safari. The modal content may include: Large formatted text Markdown/code blocks Images/styled UI We suspect the delay may be related to Safari’s handling of: Canvas rendering DOM-to-image conversion Blob/PDF generation Font/image processing Libraries/approaches involved: html2canvas jsPDF window.print() (in some cases) Question Is this considered expected behavior in Safari/WebKit for client-side PDF generation? Has anyone found effective Safari-specific optimizations or best practices
2
0
751
1w
17 days without approval — new build stuck in review queue. Is this a process issue?
Hi, App ID 6449141384 has been stuck in App Review for 17 days. After repeated rejections on a previous build, I submitted a new build — but review hasn't started at all. I'd like to request that an Apple reviewer check the status and expedite the review process. If anyone has experienced the same issue or knows the escalation path, your input would also be appreciated. Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) May 7: Resubmitted with official collaboration authorization document → Rejected again under the same guideline May 12: Contacted Developer Support → No response to date May 13: New build submitted → Review has not started as of today Supporting Documentation The following was submitted in the review notes: Official collaboration authorization document from the IP holder (QWER, a K-pop group) Link to the IP holder's official channel promoting the app: https://youtu.be/vI6QCGZ5t0s Despite this, we have not received any specific guidance on why the reje
1
0
343
1w
AppKit & State Restoration: Windows Auto Closing On App Quit Breaks State Restoration
I probably should know the answer to this but I don't, so I'll ask. When I enable state restoration and have like three windows open, and I quit the app (via Quit menu, not 'Stop In Xcode') the following happens: -NSApplication calls _closeForTermination on all the windows and this causes state restoration to fail to restore these open windows on next app launch. This behavior is not aligned with the behavior of apps like Mail. If I have two Viewer Windows open in Mail and I quit the app, when I relaunch the two viewer windows are restored. I can of course track this and write data to restore for these auto closed window myself but shouldn't there be an easy way to opt in to this behavior?
1
0
193
1w
How can users dismiss the iOS 18 second-stage Contacts permission prompt?
In iOS 18, requesting Contacts access via CNContactStore.requestAccess(for:) triggers a two-stage authorization flow: First stage: the standard Allow / Don't Allow alert Second stage: a sheet titled How do you want to share contacts? with two options — Select Contacts and Share All [N] Contacts My question is about the second-stage sheet specifically. It does not appear to have a Cancel or Close button, and swipe-down to dismiss does not work on the devices I've tested (iOS 18.x). If a user reaches this second prompt and decides they don't want to choose either option, how are they expected to dismiss it? Is this intentional behavior?
1
0
182
1w
Reply to Which storage capacity key should be used for offline video downloads: volumeAvailableCapacityKey or volumeAvailableCapacityForImportantUsageKey?
I'll start with the short answer, then follow with more details: Should offline media downloads generally be treated as “important usage” in the sense intended by this API? Yes, you should be using important. You might also look at the availability key, but mainly as a diagnostic tool to tweak your app’s behavior, not to fundamentally alter what you do. For example, if you're downloading very large files very quickly, it's possible for you to be adding new important data to the device faster than the device can delete cache data, which will cause available to spike to a low value. If that happens, simply waiting for a little while may resolve the issue. Similarly, if available and opportunistic are both low and your app stores large amounts of cached data, then you might want to delete your own cached data during/before you transfer in important data. but I still don’t fully understand the intended usage difference between: So, let me lay out the meaning of the three keys: volumeAvailableCapacityKey-> This
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Inexplicable Metal crash ever since iOS 26.5 beta 4
Thanks for posting and for sharing the repo — being able to look at the actual code makes a real difference here. The phone-restart class of crash matters. App-level Metal exceptions normally crash the app, not the device. A full phone reboot from a compute shader means whatever's failing crossed out of user-space into the GPU driver or kernel. That can happen two ways: A driver-side bug provoked by some specific user-space pattern, which would be a Metal/driver issue Apple needs to address. Memory corruption in your app — for example, an over-write of an MTLBuffer's contents past its allocated size, a stale gpuResourceID for a resource that's been freed, a race between threads populating argument-table entries, or wrong format/stride assumptions — that lands the GPU on garbage data and the driver panics. Allocator layouts and hardening change between iOS versions, so a dormant memory issue under beta 3 can become a reliable kernel panic under beta 4. The worked, then stopped working timing
Topic: Graphics & Games SubTopic: Metal Tags:
1w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
Thank you Quinn for these additional details. In the meantime, we have been able to make some progress here. To recap, the error message we have been investigating is the following one when codesign command is executed on a host, let's say H2, to do adhoc signing of some binary: $> /usr/bin/codesign -s - -vvvv --force /home/me/FooBarCalculator.app /home/me/FooBarCalculator.app: replacing existing signature /home/me/FooBarCalculator.app: signed app bundle with Mach-O thin (arm64) [Hello] /home/me/FooBarCalculator.app: timestamps differ by 185 seconds - check your system clock codesign then exits with a non-zero exit code and thus errors out. Our investigation so far shows that the message about timestamps differing turns out to be misleading. What we have been able to narrow down is that, if on some host H1, a binary (FooBarCalculator.app in this case) was signed with a (valid) identity and if for whatever reason, during codesigning there was a timestamp difference, then that difference gets embedd
Topic: Code Signing SubTopic: General Tags:
1w
Reply to WKWebView iOS 26 preventing javascript injections
Thanks for the careful diagnostic work. Two observations from your post jump out: Same source code, two builds: the Xcode 16.4 / iOS 18 SDK build runs correctly in iOS 26, the Xcode 26 / iOS 26 SDK build does not. The page itself runs correctly in Safari with Web Inspector attached. Together, those localize the problem to how the WKWebView is being set up or driven inside your app at the iOS 26 SDK build, rather than the page or the device. The some JavaScript executes while others don't pattern is the most useful clue for narrowing further. That pattern is consistent with WKContentWorld isolation in WKWebView. WKContentWorld separates JavaScript execution into distinct namespaces: The page world (WKContentWorld.pageWorld) — JavaScript executed here can see page-defined globals, including functions defined in the page's
Topic: Safari & Web SubTopic: General
1w
Apple Developer Program enrollment still pending and blocking Mac app notarization
Hello Apple Developer Support, Our Apple Developer Program enrollment is still pending, and we need help understanding the status and next steps. We are planning to launch our Mac app in approximately two weeks, around June 1, 2026, and the continued pending status is becoming a serious blocker because we need to complete Developer ID signing and notarization. Could someone please review the application or let us know if any additional information is required from our side? Thank you.
2
0
141
1w
Reply to EndpointSecurity AUTH_SIGNAL Handler Causes Dock UI Desync and Activity Monitor Force Quit Failure
Part 2... Getting into the sequence here: The Dock icon disappears — loginwindow removes the app's UI via its applicationQuit event, even though the process is still running The system was told to quit the app, so the first step was to remove its visible parts, like its dock icon. LaunchServices loses track of the application's PID — it can no longer determine the PID from the LSASN The system removed it from system #2, so it disappears from LaunchServices. Now, there's some interesting nuance here: When I respond with ES_AUTH_RESULT_DENY to an AUTH_SIGNAL event targeting a GUI application, the system enters an inconsistent state: I don't think that's actually true, at least not on its own. That is, if you send kill -9 from the terminal, I don't think any of the above would happen. What I'd expect to happen is that your app just sits there doing nothing and continues working normally. That's because there are two different ways for an app to disappear. The first is that the system n
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to EndpointSecurity AUTH_SIGNAL Handler Causes Dock UI Desync and Activity Monitor Force Quit Failure
Part 1... Hypothesis: loginwindow observes the AUTH_SIGNAL event (or a related notification) and proactively removes the Dock UI entry when a termination signal targets a GUI app — regardless of whether the signal was ultimately denied. This seems like a coordination gap between EndpointSecurity's signal interception and loginwindow/LaunchServices' app lifecycle management. No, that’s what's going on. What's actually going on is that the system has two different systems that track stuff that's running on the system: The low level system is the POSIX pid-based mechanism you're familiar with. This is also the level the ES system operates at and is the core mechanism used to track processes. Every process running on the system exists within this system. The high level system is built on top of #1 and is what manages the concept of Apps. It doesn't have as clear an API layer (much of its API is private), but its origins were the Carbon Process Manager and it's what APIs like LaunchServices and NSWorkspac
Topic: App & System Services SubTopic: Core OS Tags:
1w
After the last update, the Undo button is not appearing in the chat screen.
I enter the following example code into the chat screen, the code is applied, but the Undo button does not appear. The Undo button is also grayed out in the Edit menu. I don't know if this is due to the update or a settings issue, as this is my first time using Xcode. Before the update, there were no problems; the Undo button would appear right next to the chat screen after the code was applied, but now it's gone. Can you help me with this? Edit only: MetalPortfolio/MetalPortfolio/Models/Transaction.swift Goal: Make Transaction decoding backward-compatible so older saved transactions do not fail to load when newer fields are missing. Critical rules: - Do not edit any other file. - Do not change Transaction stored property names. - Do not change encoding format. - Do not change UI. - Do not change storage/export/import logic yet. - Do not change calculations. - Keep existing behavior for valid current JSON. Implementation: In Transaction.init(from:), change only optional/backward-com
1
0
159
1w
Reply to SwiftData with CloudKit Error: Error updating background task request
A similar question was discussed here. The error code is different (3 vs. 8), but the technical nature is pretty much the same: The error was triggered by the framework, and is not something that can be fixed from the app side. SwiftData + CloudKit creates a new task when it detects that the previous task failed, or that there is unsynchronized data, which can eventually get the data synchronized. So in case your app data is synchronized, you can ignore the error. If your app doesn’t synchronize data at all, that will be a coding level issue on your side, and you can follow TN3164 and TN3163 to debug the issue. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: App & System Services SubTopic: iCloud Tags:
1w
App Review Status
My game has been stuck in “Waiting for Review” since March 18 (2 months now). I already received confirmation that my expedited review request was accepted (although it was only accepted about a week ago, despite requesting it much earlier), but the app still has not entered active review. Developer Support keeps confirming that the app is in queue and that it will be “reviewed shortly,” but I have heard that four times already, with no concrete action or explanation provided. Has anyone experienced something similar recently or found a solution?
0
0
231
1w
Client-Side PDF Download Performance Issue in Safari
Hi Team, We are observing a noticeable performance difference in client-side PDF generation between Safari and Chrome. Use Case We have an AI modal with a “Download PDF” feature. The PDF is generated on the client side using HTML content from the modal. Observation Chrome: PDF generation completes in ~1–2 seconds Safari: Same flow takes ~25–30 seconds Additional Details The functionality works correctly in both browsers, and the PDF downloads successfully. The issue is mainly the increased processing time in Safari. The modal content may include: Large formatted text Markdown/code blocks Images/styled UI We suspect the delay may be related to Safari’s handling of: Canvas rendering DOM-to-image conversion Blob/PDF generation Font/image processing Libraries/approaches involved: html2canvas jsPDF window.print() (in some cases) Question Is this considered expected behavior in Safari/WebKit for client-side PDF generation? Has anyone found effective Safari-specific optimizations or best practices
Replies
2
Boosts
0
Views
751
Activity
1w
17 days without approval — new build stuck in review queue. Is this a process issue?
Hi, App ID 6449141384 has been stuck in App Review for 17 days. After repeated rejections on a previous build, I submitted a new build — but review hasn't started at all. I'd like to request that an Apple reviewer check the status and expedite the review process. If anyone has experienced the same issue or knows the escalation path, your input would also be appreciated. Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) May 7: Resubmitted with official collaboration authorization document → Rejected again under the same guideline May 12: Contacted Developer Support → No response to date May 13: New build submitted → Review has not started as of today Supporting Documentation The following was submitted in the review notes: Official collaboration authorization document from the IP holder (QWER, a K-pop group) Link to the IP holder's official channel promoting the app: https://youtu.be/vI6QCGZ5t0s Despite this, we have not received any specific guidance on why the reje
Replies
1
Boosts
0
Views
343
Activity
1w
AppKit & State Restoration: Windows Auto Closing On App Quit Breaks State Restoration
I probably should know the answer to this but I don't, so I'll ask. When I enable state restoration and have like three windows open, and I quit the app (via Quit menu, not 'Stop In Xcode') the following happens: -NSApplication calls _closeForTermination on all the windows and this causes state restoration to fail to restore these open windows on next app launch. This behavior is not aligned with the behavior of apps like Mail. If I have two Viewer Windows open in Mail and I quit the app, when I relaunch the two viewer windows are restored. I can of course track this and write data to restore for these auto closed window myself but shouldn't there be an easy way to opt in to this behavior?
Replies
1
Boosts
0
Views
193
Activity
1w
Reply to After the last update, the Undo button is not appearing in the chat screen.
While the code is being executed, a stop button appears, but after the code is finished, there is no undo button; it returns to the message screen shown in the previous message.
Replies
Boosts
Views
Activity
1w
How can users dismiss the iOS 18 second-stage Contacts permission prompt?
In iOS 18, requesting Contacts access via CNContactStore.requestAccess(for:) triggers a two-stage authorization flow: First stage: the standard Allow / Don't Allow alert Second stage: a sheet titled How do you want to share contacts? with two options — Select Contacts and Share All [N] Contacts My question is about the second-stage sheet specifically. It does not appear to have a Cancel or Close button, and swipe-down to dismiss does not work on the devices I've tested (iOS 18.x). If a user reaches this second prompt and decides they don't want to choose either option, how are they expected to dismiss it? Is this intentional behavior?
Replies
1
Boosts
0
Views
182
Activity
1w
Reply to Which storage capacity key should be used for offline video downloads: volumeAvailableCapacityKey or volumeAvailableCapacityForImportantUsageKey?
I'll start with the short answer, then follow with more details: Should offline media downloads generally be treated as “important usage” in the sense intended by this API? Yes, you should be using important. You might also look at the availability key, but mainly as a diagnostic tool to tweak your app’s behavior, not to fundamentally alter what you do. For example, if you're downloading very large files very quickly, it's possible for you to be adding new important data to the device faster than the device can delete cache data, which will cause available to spike to a low value. If that happens, simply waiting for a little while may resolve the issue. Similarly, if available and opportunistic are both low and your app stores large amounts of cached data, then you might want to delete your own cached data during/before you transfer in important data. but I still don’t fully understand the intended usage difference between: So, let me lay out the meaning of the three keys: volumeAvailableCapacityKey-> This
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Inexplicable Metal crash ever since iOS 26.5 beta 4
Thanks for posting and for sharing the repo — being able to look at the actual code makes a real difference here. The phone-restart class of crash matters. App-level Metal exceptions normally crash the app, not the device. A full phone reboot from a compute shader means whatever's failing crossed out of user-space into the GPU driver or kernel. That can happen two ways: A driver-side bug provoked by some specific user-space pattern, which would be a Metal/driver issue Apple needs to address. Memory corruption in your app — for example, an over-write of an MTLBuffer's contents past its allocated size, a stale gpuResourceID for a resource that's been freed, a race between threads populating argument-table entries, or wrong format/stride assumptions — that lands the GPU on garbage data and the driver panics. Allocator layouts and hardening change between iOS versions, so a dormant memory issue under beta 3 can become a reliable kernel panic under beta 4. The worked, then stopped working timing
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
1w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
Thank you Quinn for these additional details. In the meantime, we have been able to make some progress here. To recap, the error message we have been investigating is the following one when codesign command is executed on a host, let's say H2, to do adhoc signing of some binary: $> /usr/bin/codesign -s - -vvvv --force /home/me/FooBarCalculator.app /home/me/FooBarCalculator.app: replacing existing signature /home/me/FooBarCalculator.app: signed app bundle with Mach-O thin (arm64) [Hello] /home/me/FooBarCalculator.app: timestamps differ by 185 seconds - check your system clock codesign then exits with a non-zero exit code and thus errors out. Our investigation so far shows that the message about timestamps differing turns out to be misleading. What we have been able to narrow down is that, if on some host H1, a binary (FooBarCalculator.app in this case) was signed with a (valid) identity and if for whatever reason, during codesigning there was a timestamp difference, then that difference gets embedd
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
Reply to WKWebView iOS 26 preventing javascript injections
Thanks for the careful diagnostic work. Two observations from your post jump out: Same source code, two builds: the Xcode 16.4 / iOS 18 SDK build runs correctly in iOS 26, the Xcode 26 / iOS 26 SDK build does not. The page itself runs correctly in Safari with Web Inspector attached. Together, those localize the problem to how the WKWebView is being set up or driven inside your app at the iOS 26 SDK build, rather than the page or the device. The some JavaScript executes while others don't pattern is the most useful clue for narrowing further. That pattern is consistent with WKContentWorld isolation in WKWebView. WKContentWorld separates JavaScript execution into distinct namespaces: The page world (WKContentWorld.pageWorld) — JavaScript executed here can see page-defined globals, including functions defined in the page's
Topic: Safari & Web SubTopic: General
Replies
Boosts
Views
Activity
1w
Apple Developer Program enrollment still pending and blocking Mac app notarization
Hello Apple Developer Support, Our Apple Developer Program enrollment is still pending, and we need help understanding the status and next steps. We are planning to launch our Mac app in approximately two weeks, around June 1, 2026, and the continued pending status is becoming a serious blocker because we need to complete Developer ID signing and notarization. Could someone please review the application or let us know if any additional information is required from our side? Thank you.
Replies
2
Boosts
0
Views
141
Activity
1w
Reply to EndpointSecurity AUTH_SIGNAL Handler Causes Dock UI Desync and Activity Monitor Force Quit Failure
Part 2... Getting into the sequence here: The Dock icon disappears — loginwindow removes the app's UI via its applicationQuit event, even though the process is still running The system was told to quit the app, so the first step was to remove its visible parts, like its dock icon. LaunchServices loses track of the application's PID — it can no longer determine the PID from the LSASN The system removed it from system #2, so it disappears from LaunchServices. Now, there's some interesting nuance here: When I respond with ES_AUTH_RESULT_DENY to an AUTH_SIGNAL event targeting a GUI application, the system enters an inconsistent state: I don't think that's actually true, at least not on its own. That is, if you send kill -9 from the terminal, I don't think any of the above would happen. What I'd expect to happen is that your app just sits there doing nothing and continues working normally. That's because there are two different ways for an app to disappear. The first is that the system n
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to EndpointSecurity AUTH_SIGNAL Handler Causes Dock UI Desync and Activity Monitor Force Quit Failure
Part 1... Hypothesis: loginwindow observes the AUTH_SIGNAL event (or a related notification) and proactively removes the Dock UI entry when a termination signal targets a GUI app — regardless of whether the signal was ultimately denied. This seems like a coordination gap between EndpointSecurity's signal interception and loginwindow/LaunchServices' app lifecycle management. No, that’s what's going on. What's actually going on is that the system has two different systems that track stuff that's running on the system: The low level system is the POSIX pid-based mechanism you're familiar with. This is also the level the ES system operates at and is the core mechanism used to track processes. Every process running on the system exists within this system. The high level system is built on top of #1 and is what manages the concept of Apps. It doesn't have as clear an API layer (much of its API is private), but its origins were the Carbon Process Manager and it's what APIs like LaunchServices and NSWorkspac
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
After the last update, the Undo button is not appearing in the chat screen.
I enter the following example code into the chat screen, the code is applied, but the Undo button does not appear. The Undo button is also grayed out in the Edit menu. I don't know if this is due to the update or a settings issue, as this is my first time using Xcode. Before the update, there were no problems; the Undo button would appear right next to the chat screen after the code was applied, but now it's gone. Can you help me with this? Edit only: MetalPortfolio/MetalPortfolio/Models/Transaction.swift Goal: Make Transaction decoding backward-compatible so older saved transactions do not fail to load when newer fields are missing. Critical rules: - Do not edit any other file. - Do not change Transaction stored property names. - Do not change encoding format. - Do not change UI. - Do not change storage/export/import logic yet. - Do not change calculations. - Keep existing behavior for valid current JSON. Implementation: In Transaction.init(from:), change only optional/backward-com
Replies
1
Boosts
0
Views
159
Activity
1w
Reply to SwiftData with CloudKit Error: Error updating background task request
A similar question was discussed here. The error code is different (3 vs. 8), but the technical nature is pretty much the same: The error was triggered by the framework, and is not something that can be fixed from the app side. SwiftData + CloudKit creates a new task when it detects that the previous task failed, or that there is unsynchronized data, which can eventually get the data synchronized. So in case your app data is synchronized, you can ignore the error. If your app doesn’t synchronize data at all, that will be a coding level issue on your side, and you can follow TN3164 and TN3163 to debug the issue. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
1w
App Review Status
My game has been stuck in “Waiting for Review” since March 18 (2 months now). I already received confirmation that my expedited review request was accepted (although it was only accepted about a week ago, despite requesting it much earlier), but the app still has not entered active review. Developer Support keeps confirming that the app is in queue and that it will be “reviewed shortly,” but I have heard that four times already, with no concrete action or explanation provided. Has anyone experienced something similar recently or found a solution?
Replies
0
Boosts
0
Views
231
Activity
1w