Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,351 results found

Post

Replies

Boosts

Views

Activity

Reply to CKQuerySubscription on public database failing with BAD_REQUEST in Production — distinct from iOS 26.4 silent-push regression
Quick follow-up on point #2 (Security Roles): checked Schema → Security Roles. GuardianRequest and GuardianResponse grant Read via _world, Create via _icloud, Write via _creator — a standard public-DB config. The Read permission query subscriptions need is present, so Security Roles don't appear to be the cause.
Topic: App & System Services SubTopic: iCloud Tags:
1w
Reply to App Transfer Impact on Universal Linking/AASA
Thanks for your new post. I thought I have covered those scenarios on my previous post, I guess I missed something. I would recommend you to look at the documentation and see how AASA files works and how you register the different appIDs do that will give you the knowledge that the most important is to have multiple AppID into the AASA file so you can have 2 apps that will use a unique AASA file. Because the App Store is still distributing that original binary, any brand new user downloading the app for the first time is installing an app signed with the original Team ID. When iOS installs the app and fetches the Apple App Site Association (AASA) file from your server, it will be looking for a match with the original. As long as your AASA file still includes the original and new App ID, Universal Links will continue to function completely normally for these new users during the interim period. This exact behavior is why it is highly recommended to host an AASA file that contains both the original and
Topic: App & System Services SubTopic: General Tags:
1w
Best practices for blocking traffic: Transparent Proxy vs Content Filter, and Multiple Network Extensions
Hello, I am working on a DLP system for macOS. The application must analyze and potentially block network traffic. Currently, I am using NETransparentProxyProvider for traffic analysis and looking for the best solution to block network traffic. I believe the blocking can be implemented by capturing the flow and choosing not to proxy/forward it further (dropping it). However, I am unsure how the OS and other applications will react to this approach. As far as I know, macOS provides a dedicated NEFilterDataProvider (Content Filter) specifically designed for traffic filtering and blocking. I have two questions regarding the architecture: Is it safe to block flows directly using a Transparent Proxy? Will dropping/ignoring the flow without forwarding it cause any unexpected system behavior, socket hangups, or performance issues? Or is it highly recommended to strictly use a Content Filter (NEFilterDataProvider) for the blocking aspect? Can a single container app install and manage more than one Network Ex
2
0
151
1w
mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
Hello, I am currently working on iOS application development using Swift, targeting iOS 17 and above, and need to implement mTLS for network connections. In the registration API flow, the app generates a private key and CSR on the device, sends the CSR to the server (via the registration API), and receives back the signed client certificate (CRT) along with the intermediate/CA certificate. These certificates are then imported on the device. The challenge I am facing is pairing the received CRT with the previously generated private key in order to create a SecIdentity. Could you please suggest the correct approach to generate a SecIdentity in this scenario? If there are any sample code snippets, WWDC videos, or documentation references available, I would greatly appreciate it if you could share them. Thank you for your guidance.
5
0
843
1w
Reply to mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
Sorry I didn’t reply to this earlier. I’m not sure how I missed your replies last August. I’m also not sure why your code is failing, and there’s too much there for me to check line-by-line. However, I have a general debugging process for issues like this. The basic idea idea is to dump the contents of the keychain after each step to make sure that the stuff you think you’ve set is actually set. In your case that means three probes: One after you create the private key, to see its attributes. One after you add the certificate, to see its attributes. One after the identity lookup fails, to see if any identities are available and what they’re attributes are. As to what these probes look like, I recently updated SecItem: Pitfalls and Best Practices with some suggestions on that front. First, the Starting from Scratch section explains how to reset the keychain so that each of your tests starts from a known clear state. Second, the Lost Keychain Items, Redux section explains how to dump all the attributes
1w
Reply to Best practices for blocking traffic: Transparent Proxy vs Content Filter, and Multiple Network Extensions
If you haven’t already done so, I recommend that watch WWDC 2025 Session 234 Filter and tunnel network traffic with NetworkExtension. Alice gives a good overview of the expected use cases for this stuff. Regarding your specific questions, lemme tackle the second one first: [quote='827106021, Pavel, /thread/827106, /profile/Pavel'] 2- Can a single container app install and manage more than one Network Extension in the system? [/quote] Yes. There are actually two ways to slice this: Put each provider in a separate sysex. Create a single sysex with multiple providers. Additionally, you can combine different sysex types into a single sysex. For example, folks often combine an ES client and NE providers into one sysex. My general advice is that you use as few sysexen as possible. Managing sysexen is a bit of a pain, so life is easier if you have just one. If your sysex has multiple providers, you can enable and disable them independently by enabling or disabling each provider configuration using
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to I need the proper format for adding an application ID to an entitlements file (developing outside of Xcode)
I presume you’ve read TestFlight, Provisioning Profiles, and the Mac App Store. If not, please do so now. As to what’s going wrong, it’s hard to say because I’m not confident that the XML snippets you posted survived the trip into DevForums. In future, I recommend that you put them in a code block. See tip 3 in Quinn’s Top Ten DevForums Tips. Having said that, there’s an easy way to see what this file should look like: Create a dummy Xcode project with the same bundle ID as your app. Make sure that automatic code signing is enabled. Add some restricted entitlement to the app. See TestFlight, Provisioning Profiles, and the Mac App Store for more about that. Build the app. Dump its entitlements: % codesign -d --entitlements - --xml /path/to/your.app Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
1w
‌Xcode26-built apps cannot run on iPhone 6 or earlier devices‌
‌Using Xcode 26, the built package encounters device compatibility issues — while it installs successfully on supported iPhone devices, but it crashes immediately upon launch and cannot run normally.‌‌In previous versions of Xcode, the same minimum deployment setting in the project did not cause such compatibility issues.‌ The app built with Xcode 26 shows the following behavior when installed and tested on various devices:‌ iPhone6p iOS12.5.8 fails to run 2.iPhone6 iOS11 fails to run 3.Iphone6 iOS12.5.7 fails to run 4.iPhone7 iOS12.1.3 ok 5.iPhoneX iOS 12.2 ok 6.iphone6s plus iOS10.3.1 ok 7.iphoneXS. iOS 12.1.4 ok 8.iPhone11 iOS 13.6.1 ok 9.iPhone7. iOS 13.7 ok We have tested and found that an iPhone 6s Plus running iOS 10.3.1 can normally run the app. We would like to know whether apps built with Xcode 26 are inherently incompatible with iPhone 6 and older devices. Has Xcode 26’s underlying build environment removed full support for the A8 chip, resulting in binary files containing instructions or
11
0
942
1w
Reply to CKQuerySubscription on public database failing with BAD_REQUEST in Production — distinct from iOS 26.4 silent-push regression
Hi Ziqiao, thank you, both suggestions were worth testing. Unfortunately neither resolves it. Reporting back with results and fresh request IDs you can correlate server-side. Setup: container iCloud.com.luiz.PandaApp, PUBLIC database. Two CKQuerySubscriptions, options: [.firesOnRecordCreation], simple equality predicates (guardianRecordName == %@, requesterRecordName == %@). Visible NotificationInfo (your point #3). Set alertBody, shouldBadge = true, and category; did not set shouldSendContentAvailable. Subscription save still fails: CKError code 12; CKInternalErrorDomain 2006 BadSyntax; ServerErrorDescription: attempting to create a subscription in a production container. Server log: RequestUUID 9BD2E50A-60DF-4DDA-86EF-B91E27192F33 (Op 46EA29B4FF3AFC28), SubscriptionCreate / PUBLIC / USER_ERROR / BAD_REQUEST, ~65–82 ms (20 May 2026 ~15:07 UTC). 2) CKModifySubscriptionsOperation instead of CKDatabase.save(_:). Same failure: Server logs (21 May 2026 ~04:12 UTC): RequestUUID 3276D248-
Topic: App & System Services SubTopic: iCloud Tags:
1w
Reply to macOS 26 – NSSound/CoreAudio causes SIGILL crash in caulk allocator
Hello , Yes, we have been able to reproduce this issue in our office as well, but only 2 times so far on macOS 26.4.1. It appears to be an intermittent issue, and we are not able to reproduce it consistently or quickly. Based on our investigation, this seems to occur in scenarios involving audio playback. We also made changes to ensure sound playback happens on the main thread and shared that build with the customer. However, the customer is still encountering the crash on their end. We are attaching the customer crash log for reference. Please let us know if there are any specific areas in the crash log that we should focus on or if additional diagnostics would help. crash.crash
Topic: Media Technologies SubTopic: Audio Tags:
1w
Popover in Toolbar Causes Crash in Catalyst App on macOS 26
Hi everyone, I’ve encountered an issue where using a popover inside the toolbar of a Catalyst app causes a crash on macOS 26 beta 5 with Xcode 26 beta 5. Here’s a simplified code snippet: import SwiftUI struct ContentView: View { @State private var isPresentingPopover = false var body: some View { NavigationStack { VStack { } .padding() .toolbar { ToolbarItem { Button(action: { isPresentingPopover.toggle() }) { Image(systemName: bubble) } .popover(isPresented: $isPresentingPopover) { Text(Hello) .font(.largeTitle) .padding() } } } } } } Steps to reproduce: Create a new iOS app using Xcode 26 beta 5. Enable Mac Catalyst (Match iPad). Add the above code to show a Popover from a toolbar button. Run the app on macOS 26, then click the toolbar button. The app crashes immediately upon clicking the toolbar button. Has anyone else run into this? Any workarounds or suggestions would be appreciated! Thanks!
6
0
592
1w
409 ENTITY_ERROR.RELATIONSHIP.INVALID — Cannot attach build or create version, affecting 2 separate accounts for 1 week
I am unable to submit any app for review. Every attempt to add a build to an App Store version results in a 409 error, both through the App Store Connect website and directly through the App Store Connect REST API. Affected accounts: Account 1: My personal Apple Developer account Account 2: A company-owned Apple Developer account where I have Admin access Both accounts are completely separate — different legal entities, different enrollments — but exhibit the exact same behavior simultaneously. API errors observed When calling PATCH /v1/appStoreVersions/{id}/relationships/build: 409 ENTITY_ERROR.RELATIONSHIP.INVALID The specified pre-release build could not be added. When calling POST /v1/appStoreVersions to create a new version: 409 ENTITY_ERROR.RELATIONSHIP.INVALID You cannot create a new version of the App in the current state. What I have verified All builds are processingState: VALID and not expired usesNonExemptEncryption: false is set on all builds No build is already attached to another versi
11
0
600
1w
Reply to CKQuerySubscription on public database failing with BAD_REQUEST in Production — distinct from iOS 26.4 silent-push regression
Quick follow-up on point #2 (Security Roles): checked Schema → Security Roles. GuardianRequest and GuardianResponse grant Read via _world, Create via _icloud, Write via _creator — a standard public-DB config. The Read permission query subscriptions need is present, so Security Roles don't appear to be the cause.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
1w
Reply to App Transfer Impact on Universal Linking/AASA
Thanks for your new post. I thought I have covered those scenarios on my previous post, I guess I missed something. I would recommend you to look at the documentation and see how AASA files works and how you register the different appIDs do that will give you the knowledge that the most important is to have multiple AppID into the AASA file so you can have 2 apps that will use a unique AASA file. Because the App Store is still distributing that original binary, any brand new user downloading the app for the first time is installing an app signed with the original Team ID. When iOS installs the app and fetches the Apple App Site Association (AASA) file from your server, it will be looking for a match with the original. As long as your AASA file still includes the original and new App ID, Universal Links will continue to function completely normally for these new users during the interim period. This exact behavior is why it is highly recommended to host an AASA file that contains both the original and
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
Reply to Solving AVFoundation FigCaptureSourceRemote err=-17281 on iOS 26 — reliable workaround for repeated camera initialization
I think I have a related problem in my code. Please see this link: https://developer.apple.com/forums/thread/822717 I'd like to understand better how your solution works and how you are using lockForConfiguration as a hardware readiness check.
Replies
Boosts
Views
Activity
1w
Best practices for blocking traffic: Transparent Proxy vs Content Filter, and Multiple Network Extensions
Hello, I am working on a DLP system for macOS. The application must analyze and potentially block network traffic. Currently, I am using NETransparentProxyProvider for traffic analysis and looking for the best solution to block network traffic. I believe the blocking can be implemented by capturing the flow and choosing not to proxy/forward it further (dropping it). However, I am unsure how the OS and other applications will react to this approach. As far as I know, macOS provides a dedicated NEFilterDataProvider (Content Filter) specifically designed for traffic filtering and blocking. I have two questions regarding the architecture: Is it safe to block flows directly using a Transparent Proxy? Will dropping/ignoring the flow without forwarding it cause any unexpected system behavior, socket hangups, or performance issues? Or is it highly recommended to strictly use a Content Filter (NEFilterDataProvider) for the blocking aspect? Can a single container app install and manage more than one Network Ex
Replies
2
Boosts
0
Views
151
Activity
1w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
maybe the timestamp difference message should be a warning and the tool should exit with an exit code of zero? Agreed. Again, I’d appreciate you filing a second bug about that. Filed FB22826836 for this one, under Developer Technologies & SDKs -> macOS -> Something else not on this list.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
Hello, I am currently working on iOS application development using Swift, targeting iOS 17 and above, and need to implement mTLS for network connections. In the registration API flow, the app generates a private key and CSR on the device, sends the CSR to the server (via the registration API), and receives back the signed client certificate (CRT) along with the intermediate/CA certificate. These certificates are then imported on the device. The challenge I am facing is pairing the received CRT with the previously generated private key in order to create a SecIdentity. Could you please suggest the correct approach to generate a SecIdentity in this scenario? If there are any sample code snippets, WWDC videos, or documentation references available, I would greatly appreciate it if you could share them. Thank you for your guidance.
Replies
5
Boosts
0
Views
843
Activity
1w
Reply to mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
Sorry I didn’t reply to this earlier. I’m not sure how I missed your replies last August. I’m also not sure why your code is failing, and there’s too much there for me to check line-by-line. However, I have a general debugging process for issues like this. The basic idea idea is to dump the contents of the keychain after each step to make sure that the stuff you think you’ve set is actually set. In your case that means three probes: One after you create the private key, to see its attributes. One after you add the certificate, to see its attributes. One after the identity lookup fails, to see if any identities are available and what they’re attributes are. As to what these probes look like, I recently updated SecItem: Pitfalls and Best Practices with some suggestions on that front. First, the Starting from Scratch section explains how to reset the keychain so that each of your tests starts from a known clear state. Second, the Lost Keychain Items, Redux section explains how to dump all the attributes
Replies
Boosts
Views
Activity
1w
Reply to Developer Program enrollment not completing - Apple Support unresponsive
Same here, it's been 2 weeks since I paid for the developer program. I contacted support service and still haven't gotten any response.
Replies
Boosts
Views
Activity
1w
Reply to Best practices for blocking traffic: Transparent Proxy vs Content Filter, and Multiple Network Extensions
If you haven’t already done so, I recommend that watch WWDC 2025 Session 234 Filter and tunnel network traffic with NetworkExtension. Alice gives a good overview of the expected use cases for this stuff. Regarding your specific questions, lemme tackle the second one first: [quote='827106021, Pavel, /thread/827106, /profile/Pavel'] 2- Can a single container app install and manage more than one Network Extension in the system? [/quote] Yes. There are actually two ways to slice this: Put each provider in a separate sysex. Create a single sysex with multiple providers. Additionally, you can combine different sysex types into a single sysex. For example, folks often combine an ES client and NE providers into one sysex. My general advice is that you use as few sysexen as possible. Managing sysexen is a bit of a pain, so life is easier if you have just one. If your sysex has multiple providers, you can enable and disable them independently by enabling or disabling each provider configuration using
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to I need the proper format for adding an application ID to an entitlements file (developing outside of Xcode)
I presume you’ve read TestFlight, Provisioning Profiles, and the Mac App Store. If not, please do so now. As to what’s going wrong, it’s hard to say because I’m not confident that the XML snippets you posted survived the trip into DevForums. In future, I recommend that you put them in a code block. See tip 3 in Quinn’s Top Ten DevForums Tips. Having said that, there’s an easy way to see what this file should look like: Create a dummy Xcode project with the same bundle ID as your app. Make sure that automatic code signing is enabled. Add some restricted entitlement to the app. See TestFlight, Provisioning Profiles, and the Mac App Store for more about that. Build the app. Dump its entitlements: % codesign -d --entitlements - --xml /path/to/your.app Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
‌Xcode26-built apps cannot run on iPhone 6 or earlier devices‌
‌Using Xcode 26, the built package encounters device compatibility issues — while it installs successfully on supported iPhone devices, but it crashes immediately upon launch and cannot run normally.‌‌In previous versions of Xcode, the same minimum deployment setting in the project did not cause such compatibility issues.‌ The app built with Xcode 26 shows the following behavior when installed and tested on various devices:‌ iPhone6p iOS12.5.8 fails to run 2.iPhone6 iOS11 fails to run 3.Iphone6 iOS12.5.7 fails to run 4.iPhone7 iOS12.1.3 ok 5.iPhoneX iOS 12.2 ok 6.iphone6s plus iOS10.3.1 ok 7.iphoneXS. iOS 12.1.4 ok 8.iPhone11 iOS 13.6.1 ok 9.iPhone7. iOS 13.7 ok We have tested and found that an iPhone 6s Plus running iOS 10.3.1 can normally run the app. We would like to know whether apps built with Xcode 26 are inherently incompatible with iPhone 6 and older devices. Has Xcode 26’s underlying build environment removed full support for the A8 chip, resulting in binary files containing instructions or
Replies
11
Boosts
0
Views
942
Activity
1w
Reply to CKQuerySubscription on public database failing with BAD_REQUEST in Production — distinct from iOS 26.4 silent-push regression
Hi Ziqiao, thank you, both suggestions were worth testing. Unfortunately neither resolves it. Reporting back with results and fresh request IDs you can correlate server-side. Setup: container iCloud.com.luiz.PandaApp, PUBLIC database. Two CKQuerySubscriptions, options: [.firesOnRecordCreation], simple equality predicates (guardianRecordName == %@, requesterRecordName == %@). Visible NotificationInfo (your point #3). Set alertBody, shouldBadge = true, and category; did not set shouldSendContentAvailable. Subscription save still fails: CKError code 12; CKInternalErrorDomain 2006 BadSyntax; ServerErrorDescription: attempting to create a subscription in a production container. Server log: RequestUUID 9BD2E50A-60DF-4DDA-86EF-B91E27192F33 (Op 46EA29B4FF3AFC28), SubscriptionCreate / PUBLIC / USER_ERROR / BAD_REQUEST, ~65–82 ms (20 May 2026 ~15:07 UTC). 2) CKModifySubscriptionsOperation instead of CKDatabase.save(_:). Same failure: Server logs (21 May 2026 ~04:12 UTC): RequestUUID 3276D248-
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
1w
Reply to macOS 26 – NSSound/CoreAudio causes SIGILL crash in caulk allocator
Hello , Yes, we have been able to reproduce this issue in our office as well, but only 2 times so far on macOS 26.4.1. It appears to be an intermittent issue, and we are not able to reproduce it consistently or quickly. Based on our investigation, this seems to occur in scenarios involving audio playback. We also made changes to ensure sound playback happens on the main thread and shared that build with the customer. However, the customer is still encountering the crash on their end. We are attaching the customer crash log for reference. Please let us know if there are any specific areas in the crash log that we should focus on or if additional diagnostics would help. crash.crash
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
1w
Popover in Toolbar Causes Crash in Catalyst App on macOS 26
Hi everyone, I’ve encountered an issue where using a popover inside the toolbar of a Catalyst app causes a crash on macOS 26 beta 5 with Xcode 26 beta 5. Here’s a simplified code snippet: import SwiftUI struct ContentView: View { @State private var isPresentingPopover = false var body: some View { NavigationStack { VStack { } .padding() .toolbar { ToolbarItem { Button(action: { isPresentingPopover.toggle() }) { Image(systemName: bubble) } .popover(isPresented: $isPresentingPopover) { Text(Hello) .font(.largeTitle) .padding() } } } } } } Steps to reproduce: Create a new iOS app using Xcode 26 beta 5. Enable Mac Catalyst (Match iPad). Add the above code to show a Popover from a toolbar button. Run the app on macOS 26, then click the toolbar button. The app crashes immediately upon clicking the toolbar button. Has anyone else run into this? Any workarounds or suggestions would be appreciated! Thanks!
Replies
6
Boosts
0
Views
592
Activity
1w
409 ENTITY_ERROR.RELATIONSHIP.INVALID — Cannot attach build or create version, affecting 2 separate accounts for 1 week
I am unable to submit any app for review. Every attempt to add a build to an App Store version results in a 409 error, both through the App Store Connect website and directly through the App Store Connect REST API. Affected accounts: Account 1: My personal Apple Developer account Account 2: A company-owned Apple Developer account where I have Admin access Both accounts are completely separate — different legal entities, different enrollments — but exhibit the exact same behavior simultaneously. API errors observed When calling PATCH /v1/appStoreVersions/{id}/relationships/build: 409 ENTITY_ERROR.RELATIONSHIP.INVALID The specified pre-release build could not be added. When calling POST /v1/appStoreVersions to create a new version: 409 ENTITY_ERROR.RELATIONSHIP.INVALID You cannot create a new version of the App in the current state. What I have verified All builds are processingState: VALID and not expired usesNonExemptEncryption: false is set on all builds No build is already attached to another versi
Replies
11
Boosts
0
Views
600
Activity
1w