Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,374 results found

Post

Replies

Boosts

Views

Activity

XCode Quick Help panel
I'm a big fan of keeping documentation in the code, so it appears at the point of use. Obviously, DocC and the Quick Help panel are a pretty important part of that strategy. Unfortunately, it only works randomly, so even if I've just build documentation (which should not even matter, the doc is just a cmd+click away), Quick Help stays blank, often even on system items like Label. It seems totally accidental, which makes it hard to make to reproduce. Sometimes an Xcode restart helps, sometimes not. Sometimes changing the editor display helps, sometimes not. Any tips on that?
1
0
130
2w
I need help , Enrollment issue
A while ago, I was able to go through the enrollment process all the way to the payment step, but I didn’t have an app ready to publish at that time, so I didn’t complete the payment. Two days ago, I finished developing my app and wanted to publish it on the App Store, so I tried to enroll in the Apple Developer Program. I attempted the enrollment on both my iPhone and Mac. On the Mac, after taking the required photo, I got an “unknown error”. Then I tried on my iPhone, but when I tapped the “Enroll Now” button, I was immediately shown a message saying “Contact Support”. After contacting Apple Support, I was told that my enrollment cannot be completed for “one or more reasons”. They couldn’t tell me the specific reason, nor could they tell me when I might be able to enroll again. I’m very confused — I was able to reach the payment step before, and when I searched online for “one or more reasons”, some people said it means being permanently blacklisted. But I have no idea what I did wrong, or why I wo
1
0
168
2w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
[quote='826273021, jaikiran, /thread/826273, /profile/jaikiran'] we even printed the details of an already signed binary … and that prints [a] similar warning message [/quote] OK. Lemme explain how that message comes about, and I think you’ll be able to extrapolate from there. The codesign tool calls SecCodeCopySigningInformation and looks at two properties: kSecCodeInfoTime and kSecCodeInfoTimestamp. If the values differ significantly (3 minutes IIRC) you get this message. While these properties are covered reasonably well by the documentation, the best source of info about them is the doc comments in . In summary: kSecCodeInfoTimestamp is secure, having been issued by Apple’s timestamp service. For more on that, see the Certificate expiration section of TN3161 Inside Code Signing: Certificates. kSecCodeInfoTime is based on your Mac’s time setting. So I suspect that the Mac doing the signing has a clock that’s way of sync with reality, so these two values end up significantly diffe
Topic: Code Signing SubTopic: General Tags:
2w
[Urgent] Bug Fix Update in Review for 12 Days — Collaboration Event Ends May 29
Hello Apple Review Team and Community, We are requesting expedited review of the bug fix update for App ID 6449141384. Despite multiple appeals and supporting materials submitted, rejections under Guideline 4.1(a) have continued for 12 days, and only 15 days remain until the event ends. Please review the details below. App Information App Name: HungryAliens / QWER x HungryAliens (iOS) App ID: 6449141384 Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) → Resubmitted with explanation of why the app is not a copycat May 7–8: Rejected again under Guideline 4.1(a) (Copycat) → Resubmitted with detailed explanation and supporting materials May 12: Contacted Apple Developer Support to explain the situation and request assistance → No response received to date May 13: New build resubmitted → Currently delayed in review Why This Is Urgent This update contains bug fixes for an active, ongoing collaboration event. The event ends on May 29 — 15 days from now. If the update is n
2
0
426
2w
Reply to Developer ID Application certificate creation
[quote='826232021, oddeyed, /thread/826232, /profile/oddeyed'] we were posed with the option of choosing a Developer ID Certificate Intermediary [/quote] Oh, that’s a new one. [quote='826232021, oddeyed, /thread/826232, /profile/oddeyed'] Can you please let us know which Developer ID Certificate Intermediary we should choose … ? [/quote] I don’t think there’s a one-size-fits-all answer to that, which is why we give you the choice. My general advice is that you pick the new one, but the old one might make sense if: You have infrastructure that relies on ancient versions of Xcode (or the Command Line Tools package). Or infrastructure that’s tied to a specific intermediate. Picking the new one may require you to install the new intermediate on your build infrastructure, but that’s not a particularly onerous task. From a deployment perspective, this choice shouldn’t matter. When codesign signs code, it builds a chain of trust and embeds that full chain into the code signature. So when a Mac goes
2w
Reply to How much practical benefit is there to XPC-based privilege separation?
There are a couple of ways XPC services can help with security. The first is the one you’re talking about, that is, where you give the XPC service elevated privileges. Your ‘delete a user’ example isn’t great though, because deleting arbitrary users is problematic and it also requires BSD privileged escalation. So let’s consider a different example. Consider a sandboxed app that wants to install an item in ~/Library/PDF Services. There are no BSD level blocks to doing that, but it is blocked by the App Sandbox. To get around that block you sign the app with the com.apple.security.temporary-exception.files.home-relative-path.read-write temporary exception entitlement. Cool, problem solved! Note For links to more about temporary exception entitlements, and the App Sandbox in general, see App Sandbox Resources. However, if your app gets compromised then it might install arbitrary stuff into ~/Library/PDF Services, which isn’t great. So instead you move that code into an XPC service and the app tells the
Topic: Privacy & Security SubTopic: General Tags:
2w
My new thing I made
FirstByte: Code-Core is a floating developer HUD for iPad that helps decode technical acronyms, coding terminology, and infrastructure concepts in real time. Designed for developers, students, operators, and AI-assisted workflows, the app features draggable transparent overlays, flip-card explanations, customizable themes, adjustable transparency, and a compact non-intrusive interface built for multitasking. Perfect for GitHub workflows, Web3 tooling, cloud infrastructure, SwiftUI development, and learning complex technical stacks without breaking focus.
0
0
738
2w
Family Controls Distribution entitlement — requests submitted 2+ weeks ago, all still "Submitted"
I've been waiting on the Family Controls distribution entitlement for my app for over two weeks with use case to self direct app and sites blocking Setup: Development entitlement: ✅ approved and working Request ID: 27684X55GC The blocker: Xcode warns: Bundle identifier is using development only version of Family Controls (Development) capability. Please request access to Family Controls (Distribution). Archiving for App Store fails with provisioning profile errors on all my targets Questions: Is 2+ weeks normal for distribution entitlement approval? Any recommended path to escalate besides the request form and have also emailed apple support?
0
0
151
2w
Reply to Protecting sensitive data in memory.
I am developing a library called MemoryCryptor for macOS. Its purpose is to protect sensitive data of the calling process (including launchd daemons), e.g. user passwords and other secrets, from being written to disk or read directly by debuggers or malware. So, the first thing I need to clarify here is what you're threat model is and to what degree you're willing to trust the operating system itself. The problem here is that there's a spectrum of trust that runs from: If you trust the operating system, then the solution is fairly simple. As described here, if a process has Get task allow set to false, then the system will not allow any process to retrieve that processes task port. Without that port, there's no way for an app to gain access to another apps process, solving the issue. Are many other mechanism at work that reenforce and/or prevent other attack vectors, but the general answer here is that that standard system configuration makes ensures that one process cannot read the memory of another process
2w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
The stack you've posted is entirely within the ShareSheet framework — no app frames are visible. -[__NSArrayM insertObject:atIndex:] + 1276 is the code path that throws NSInvalidArgumentException when you pass a nil object, so something inside SHSheetActivityItemsManager loadItemProvidersForRequest:activity:completion: is receiving a nil item provider for one of the activity items and adding it to an array without a nil check. That suggests a framework issue, but I'll need more to be confident. It's also possible that the specific item you're passing to UIDocumentInteractionController is what triggers the nil-provider path. A few things would help narrow this down: A full .ips crash report. Beyond the top frames, the thread that crashed, the other threads' states, and the binary images list all matter for diagnosis. The exception reason string matters most — the *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '...' line that usually precedes this kind of stack. Tha
Topic: UI Frameworks SubTopic: UIKit Tags:
2w
Reply to Multipeer Connectivity connection is flaky on iOS 26
Thank you very much for the very quick replies. Almost an honor to hear from two literal dev forum legends so quickly. This is much, much funnier than you'd realized. Up until COVID took WWDC virtual, Quinn and I would regularly end up hanging out together in the WWDC labs... talking someone out of using MultipeerConnectivity. Apparently, we've continued that habit into the forums. To the feedback FB22691771 I now added: Fabulous, all of that was perfect. In terms of what the logs show, if you narrow down to the MultipeerConnectivity library, you'll clearly see that it's repeatedly discovering the device and attempting to connect, only to have the connection fail over and over again. What's causing the full failure pattern isn't clear, but it's likely tied to these messages on the receiver side: 2026-05-11 08:30:50.990771+0200 wifip2pd: [com.apple.awdl:subscribe] AWDLBrowse _rps-service._tcp.local will attempt to stop 2026-05-11 08:30:50.991521+0200 wifip2pd: [com.apple.awdl:subscribe] AWDLBrowse _rp
2w
Reply to My macOS app is getting closed by the system
Based on the documentation, this is intended to quickly terminate the app during logout or system shutdown. I'm not sure why we wrote it that way, but I believe that description is somewhat misleading. What sudden termination actually does is change how an app is expected to handle quit. The standard quit flow is that an app receives kAEQuitApplication, which then lets in opt in/out of exiting through applicationShouldTerminate(). Sudden termination reverses that approach. When sudden termination is enabled, the system quits your app by directly terminating it without any notice or warning. Your app is then responsible for telling the system NOT to do that by using disableSuddenTermination()/enableSuddenTermination(). You can read more about it here, but my guess is that it's probably not a factor. That's primarily because it's hard to send kAEQuitApplication to an FBA (Faceless Background App) unless you really dig into the system, but also because I believe we start with sudden termination disabled, so your
Topic: UI Frameworks SubTopic: AppKit Tags:
2w
Reply to Xcode 26.4: IBOutlets/IBActions gutter circles missing — cannot connect storyboard to code (works in 26.3)
Is it only with objC code or Swift as well ? Xcode 26.5: In new iOS storyboard project I can connect IBOutlets from the Assistant editor in Swift...looks fixed there. Connection bubbles show. But in Objective-C the connection bubbles are completely gone from source files so in ObjC the problem is not fixed, actually worse. You can connect from the Connections Inspector though, but Xcode won't display connection status in ObjC source. So for me, because I still use ObjC the problem is worse. Hope that's not intentional. That would be very very negative evolution. You mean typing xibs by hand doesn't make you more productive!? 😂
2w
Question regarding app ownership and payment processing by separate legal entities
I have a question regarding your policies on app ownership and payment processing. We have two separate legal entities: • Company A: owns the app and the Apple Developer account • Company B: operates the business and processes all payments (via a third-party payment provider, Klarna) Klarna’s merchant agreement is signed with Company B, and all payments go to Company B’s bank account. Company A has no involvement in the payment flow. Is this setup permitted under Apple’s App Store guidelines? Specifically, is it acceptable for the developer account and app ownership to be held by Company A, while all in-app payments are processed and received by Company B?
0
0
80
2w
XCode Quick Help panel
I'm a big fan of keeping documentation in the code, so it appears at the point of use. Obviously, DocC and the Quick Help panel are a pretty important part of that strategy. Unfortunately, it only works randomly, so even if I've just build documentation (which should not even matter, the doc is just a cmd+click away), Quick Help stays blank, often even on system items like Label. It seems totally accidental, which makes it hard to make to reproduce. Sometimes an Xcode restart helps, sometimes not. Sometimes changing the editor display helps, sometimes not. Any tips on that?
Replies
1
Boosts
0
Views
130
Activity
2w
I need help , Enrollment issue
A while ago, I was able to go through the enrollment process all the way to the payment step, but I didn’t have an app ready to publish at that time, so I didn’t complete the payment. Two days ago, I finished developing my app and wanted to publish it on the App Store, so I tried to enroll in the Apple Developer Program. I attempted the enrollment on both my iPhone and Mac. On the Mac, after taking the required photo, I got an “unknown error”. Then I tried on my iPhone, but when I tapped the “Enroll Now” button, I was immediately shown a message saying “Contact Support”. After contacting Apple Support, I was told that my enrollment cannot be completed for “one or more reasons”. They couldn’t tell me the specific reason, nor could they tell me when I might be able to enroll again. I’m very confused — I was able to reach the payment step before, and when I searched online for “one or more reasons”, some people said it means being permanently blacklisted. But I have no idea what I did wrong, or why I wo
Replies
1
Boosts
0
Views
168
Activity
2w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
[quote='826273021, jaikiran, /thread/826273, /profile/jaikiran'] we even printed the details of an already signed binary … and that prints [a] similar warning message [/quote] OK. Lemme explain how that message comes about, and I think you’ll be able to extrapolate from there. The codesign tool calls SecCodeCopySigningInformation and looks at two properties: kSecCodeInfoTime and kSecCodeInfoTimestamp. If the values differ significantly (3 minutes IIRC) you get this message. While these properties are covered reasonably well by the documentation, the best source of info about them is the doc comments in . In summary: kSecCodeInfoTimestamp is secure, having been issued by Apple’s timestamp service. For more on that, see the Certificate expiration section of TN3161 Inside Code Signing: Certificates. kSecCodeInfoTime is based on your Mac’s time setting. So I suspect that the Mac doing the signing has a clock that’s way of sync with reality, so these two values end up significantly diffe
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
[Urgent] Bug Fix Update in Review for 12 Days — Collaboration Event Ends May 29
Hello Apple Review Team and Community, We are requesting expedited review of the bug fix update for App ID 6449141384. Despite multiple appeals and supporting materials submitted, rejections under Guideline 4.1(a) have continued for 12 days, and only 15 days remain until the event ends. Please review the details below. App Information App Name: HungryAliens / QWER x HungryAliens (iOS) App ID: 6449141384 Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) → Resubmitted with explanation of why the app is not a copycat May 7–8: Rejected again under Guideline 4.1(a) (Copycat) → Resubmitted with detailed explanation and supporting materials May 12: Contacted Apple Developer Support to explain the situation and request assistance → No response received to date May 13: New build resubmitted → Currently delayed in review Why This Is Urgent This update contains bug fixes for an active, ongoing collaboration event. The event ends on May 29 — 15 days from now. If the update is n
Replies
2
Boosts
0
Views
426
Activity
2w
Reply to Developer ID Application certificate creation
[quote='826232021, oddeyed, /thread/826232, /profile/oddeyed'] we were posed with the option of choosing a Developer ID Certificate Intermediary [/quote] Oh, that’s a new one. [quote='826232021, oddeyed, /thread/826232, /profile/oddeyed'] Can you please let us know which Developer ID Certificate Intermediary we should choose … ? [/quote] I don’t think there’s a one-size-fits-all answer to that, which is why we give you the choice. My general advice is that you pick the new one, but the old one might make sense if: You have infrastructure that relies on ancient versions of Xcode (or the Command Line Tools package). Or infrastructure that’s tied to a specific intermediate. Picking the new one may require you to install the new intermediate on your build infrastructure, but that’s not a particularly onerous task. From a deployment perspective, this choice shouldn’t matter. When codesign signs code, it builds a chain of trust and embeds that full chain into the code signature. So when a Mac goes
Replies
Boosts
Views
Activity
2w
Reply to How much practical benefit is there to XPC-based privilege separation?
There are a couple of ways XPC services can help with security. The first is the one you’re talking about, that is, where you give the XPC service elevated privileges. Your ‘delete a user’ example isn’t great though, because deleting arbitrary users is problematic and it also requires BSD privileged escalation. So let’s consider a different example. Consider a sandboxed app that wants to install an item in ~/Library/PDF Services. There are no BSD level blocks to doing that, but it is blocked by the App Sandbox. To get around that block you sign the app with the com.apple.security.temporary-exception.files.home-relative-path.read-write temporary exception entitlement. Cool, problem solved! Note For links to more about temporary exception entitlements, and the App Sandbox in general, see App Sandbox Resources. However, if your app gets compromised then it might install arbitrary stuff into ~/Library/PDF Services, which isn’t great. So instead you move that code into an XPC service and the app tells the
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
My new thing I made
FirstByte: Code-Core is a floating developer HUD for iPad that helps decode technical acronyms, coding terminology, and infrastructure concepts in real time. Designed for developers, students, operators, and AI-assisted workflows, the app features draggable transparent overlays, flip-card explanations, customizable themes, adjustable transparency, and a compact non-intrusive interface built for multitasking. Perfect for GitHub workflows, Web3 tooling, cloud infrastructure, SwiftUI development, and learning complex technical stacks without breaking focus.
Replies
0
Boosts
0
Views
738
Activity
2w
Family Controls Distribution entitlement — requests submitted 2+ weeks ago, all still "Submitted"
I've been waiting on the Family Controls distribution entitlement for my app for over two weeks with use case to self direct app and sites blocking Setup: Development entitlement: ✅ approved and working Request ID: 27684X55GC The blocker: Xcode warns: Bundle identifier is using development only version of Family Controls (Development) capability. Please request access to Family Controls (Distribution). Archiving for App Store fails with provisioning profile errors on all my targets Questions: Is 2+ weeks normal for distribution entitlement approval? Any recommended path to escalate besides the request form and have also emailed apple support?
Replies
0
Boosts
0
Views
151
Activity
2w
Reply to Protecting sensitive data in memory.
I am developing a library called MemoryCryptor for macOS. Its purpose is to protect sensitive data of the calling process (including launchd daemons), e.g. user passwords and other secrets, from being written to disk or read directly by debuggers or malware. So, the first thing I need to clarify here is what you're threat model is and to what degree you're willing to trust the operating system itself. The problem here is that there's a spectrum of trust that runs from: If you trust the operating system, then the solution is fairly simple. As described here, if a process has Get task allow set to false, then the system will not allow any process to retrieve that processes task port. Without that port, there's no way for an app to gain access to another apps process, solving the issue. Are many other mechanism at work that reenforce and/or prevent other attack vectors, but the general answer here is that that standard system configuration makes ensures that one process cannot read the memory of another process
Replies
Boosts
Views
Activity
2w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
The stack you've posted is entirely within the ShareSheet framework — no app frames are visible. -[__NSArrayM insertObject:atIndex:] + 1276 is the code path that throws NSInvalidArgumentException when you pass a nil object, so something inside SHSheetActivityItemsManager loadItemProvidersForRequest:activity:completion: is receiving a nil item provider for one of the activity items and adding it to an array without a nil check. That suggests a framework issue, but I'll need more to be confident. It's also possible that the specific item you're passing to UIDocumentInteractionController is what triggers the nil-provider path. A few things would help narrow this down: A full .ips crash report. Beyond the top frames, the thread that crashed, the other threads' states, and the binary images list all matter for diagnosis. The exception reason string matters most — the *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '...' line that usually precedes this kind of stack. Tha
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w
Reply to Multipeer Connectivity connection is flaky on iOS 26
Thank you very much for the very quick replies. Almost an honor to hear from two literal dev forum legends so quickly. This is much, much funnier than you'd realized. Up until COVID took WWDC virtual, Quinn and I would regularly end up hanging out together in the WWDC labs... talking someone out of using MultipeerConnectivity. Apparently, we've continued that habit into the forums. To the feedback FB22691771 I now added: Fabulous, all of that was perfect. In terms of what the logs show, if you narrow down to the MultipeerConnectivity library, you'll clearly see that it's repeatedly discovering the device and attempting to connect, only to have the connection fail over and over again. What's causing the full failure pattern isn't clear, but it's likely tied to these messages on the receiver side: 2026-05-11 08:30:50.990771+0200 wifip2pd: [com.apple.awdl:subscribe] AWDLBrowse _rps-service._tcp.local will attempt to stop 2026-05-11 08:30:50.991521+0200 wifip2pd: [com.apple.awdl:subscribe] AWDLBrowse _rp
Replies
Boosts
Views
Activity
2w
Reply to AVFoundation: Strange error while trying to switch camera formats with the touch of a single button.
I re-wrote the code after much experimentation, some time ago, and solved the issue. Please ignore.
Replies
Boosts
Views
Activity
2w
Reply to My macOS app is getting closed by the system
Based on the documentation, this is intended to quickly terminate the app during logout or system shutdown. I'm not sure why we wrote it that way, but I believe that description is somewhat misleading. What sudden termination actually does is change how an app is expected to handle quit. The standard quit flow is that an app receives kAEQuitApplication, which then lets in opt in/out of exiting through applicationShouldTerminate(). Sudden termination reverses that approach. When sudden termination is enabled, the system quits your app by directly terminating it without any notice or warning. Your app is then responsible for telling the system NOT to do that by using disableSuddenTermination()/enableSuddenTermination(). You can read more about it here, but my guess is that it's probably not a factor. That's primarily because it's hard to send kAEQuitApplication to an FBA (Faceless Background App) unless you really dig into the system, but also because I believe we start with sudden termination disabled, so your
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
2w
Reply to Xcode 26.4: IBOutlets/IBActions gutter circles missing — cannot connect storyboard to code (works in 26.3)
Is it only with objC code or Swift as well ? Xcode 26.5: In new iOS storyboard project I can connect IBOutlets from the Assistant editor in Swift...looks fixed there. Connection bubbles show. But in Objective-C the connection bubbles are completely gone from source files so in ObjC the problem is not fixed, actually worse. You can connect from the Connections Inspector though, but Xcode won't display connection status in ObjC source. So for me, because I still use ObjC the problem is worse. Hope that's not intentional. That would be very very negative evolution. You mean typing xibs by hand doesn't make you more productive!? 😂
Replies
Boosts
Views
Activity
2w
Question regarding app ownership and payment processing by separate legal entities
I have a question regarding your policies on app ownership and payment processing. We have two separate legal entities: • Company A: owns the app and the Apple Developer account • Company B: operates the business and processes all payments (via a third-party payment provider, Klarna) Klarna’s merchant agreement is signed with Company B, and all payments go to Company B’s bank account. Company A has no involvement in the payment flow. Is this setup permitted under Apple’s App Store guidelines? Specifically, is it acceptable for the developer account and app ownership to be held by Company A, while all in-app payments are processed and received by Company B?
Replies
0
Boosts
0
Views
80
Activity
2w