Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to Why the navigationBar/shouldPop is no more called?
This is still an issue with Xcode 16.2 and iOS 18.2. The UINavigationBarDelegate method navigationBar(_:shouldPop:) is not called as expected when running an app in debug mode / with debug executable checked (attached to Xcode). It works as expected and according to documentation only in release builds or when unchecking debug executable in Product -> Scheme -> Edit Scheme… -> Run -> Info This issue causes confusion during development and testing. Perhaps the accepted answer should not be accepted, since it is still an issue (that it doesn't work according to documentation in debug mode)?
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’25
I sent Proposal for Apple Silicon.app
Today, I submitted the following proposal to Apple through the Feedback Assistant app. I'm not confident in how I phrased it—I'd appreciate any thoughts or feedback from fellow developers. Proposal: Apple Silicon.app for macOS with Apple Silicon – Enhancing Performance and Swap Memory Control This suggestion has been machine translated into English, so there may be some discrepancies. If you need the actual text, please feel free to reply to this or ask at the email address below. If the author of this proposal is to be credited, I would appreciate being listed under the nickname “DiamondGotCat,” where possible. Summary: - Currently, Apple Silicon-equipped Macs have many system-level features locked down or restricted. - This proposal suggests a new application that enables certain advanced controls for power users. - Tentatively named Apple Silicon.app, the name may be subject to change if a more suitable alternative arises. - I propose this application be added as a pre-installed utility on compat
1
0
144
Mar ’25
Reply to App Crashes on TestFlight but Works in Simulator (Expo React Native App)
Evan Bacon from the Expo team here 👋 This can often happen when a third-party library is missing an API key and throws an exception in production. Try creating a local production iOS build in release mode: npx expo run:ios --configuration Release this will be a nearly identical build to what goes into TestFlight. You can also open the project in Xcode, and customize the scheme to build with the Release configuration. While we do stream the simctl errors to the CLI, building from Xcode directly in cases like this can yield more debug info.
Mar ’25
Termination notice and app removal
Hello, I am a first time app developer and a few days after my app was approved I got a termination notice and an app removal notice from apple without any info, proof or explanation. I do not believe I did anything wrong so I submitted an appeal within an hour after receiving the termination notice. I didn’t receive any confirmation that they received the appeal or any resolution (and it has been 16 days). I contacted support through email and got a generic response something like ‘we are working on our backlog, you need to wait’. the thing is that my account is going to be terminated in less than 2 weeks and I’m panicking and don’t know what to do. did anyone have any similar experiences and how did you resolve it? this is a part of the message I received: Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity, in violation of the A
0
0
190
Mar ’25
Xcode fails to attach to process when building to the Simulator
When trying to build and run our iOS app on the simulator we're hitting the following error: Could not attach to pid: XXXXX failed to get reply to handshake packet within timeout of 6.0 seconds I've included some more details on our project/setup below: We're working on a large project with multiple schemes / app targets. The error only affects one of our targets - however the dependencies between the problematic target and the others are very similar. The issue only affects building to the simulator; building to a physical device works fine. Scheme configuration is the same across all targets. We've faced this issue on multiple versions of Xcode, from 15.x through to the latest 16.3 RC. We've tried a number of workarounds, some of which work intermittently for some colleagues - but none of which have provided a durable solution. These include varying combinations of: Setting the IDEPreferLogStreaming=YES environment variable Unchecking Debug Executable under Edit Scheme -> Run M
4
0
316
Mar ’25
Reply to DNS Proxy network extension doesn't start even after saving preferences successfully
Interestingly, when I get the error delegate: Submitting request to activate system extension... Request failed with error: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 1.) I do see a correlated crash from sysextd Process: sysextd [88810] Path: /System/Library/Frameworks/SystemExtensions.framework/Versions/A/Helpers/sysextd Identifier: sysextd Version: ??? Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 0 Date/Time: 2025-03-25 20:41:37.0472 -0300 OS Version: macOS 14.7 (23H124) Report Version: 12 Anonymous UUID: 603FADAE-E494-E147-DCDB-B19084A67DC1 Sleep/Wake UUID: E39090CA-174C-4227-8E0F-10F5584128BB Time Awake Since Boot: 80000 seconds Time Since Wake: 284 seconds System Integrity Protection: enabled Crashed Thread: 2 Dispatch queue: sysextd.extension_manager Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000104c789e4 Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Terminating Process: exc handler [88810] And whi
Mar ’25
Reply to Xcode copy release build signed target
Thank you for explaining. We discussed your case here and we recommend doing an archive build and then copying the app out of the archive. We expect this will give you the best results using code paths that are currently supported. You can copy the app out of the .xarchive by changing the file name ending from .xarchive to .zip. Then you can open the .zip file and copy the app into the Applications folder. Note ~ Searching on the web I found some folks talking about duplicating the run Scheme and changing the Build Configuration to Release and using the result from that. That may work in some cases, but it may not produce correct results in others. This is not a supported code path. We do not recommend using this duplicate Scheme approach.
Mar ’25
[Suggestion] SwiftUI convenience environment navigation functions
I've been thinking a lot about how navigation and presentation are managed in SwiftUI, and I wanted to propose an idea for a more streamlined approach using environment values. Right now, handling navigation can feel fragmented — especially when juggling default NavigationStack, modals, and tab selections. What if SwiftUI provided a set of convenience environment values for these common actions? Tabs @Environment(.selectedTab) var selectedTab @Environment(.selectTab) var selectTab selectedTab: Read the current tab index selectTab(index: Int): Programmatically switch tabs Stack Navigation @Environment(.stackCount) var stackCount @Environment(.push) var push @Environment(.pop) var pop @Environment(.popToRoot) var popToRoot stackCount: Read how many views are in the navigation stack push(destination: View): Push a new view onto the stack pop(last: Int = 1): Pop the last views popToRoot(): Return to the root view Modals @Environment(.sheet) var sheet @Environment(.fullScreenCover) var fullScreenCover @Environment
4
0
104
Mar ’25
Xcode cloud: xcode build archive error
Hello! I'm trying to build my flutter app through xcode cloud, but im getting following error: Command exited with non-zero exit-code: 65 Run command: 'xcodebuild archive -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /Volumes/workspace/tmp/resultBundleStream97053cd8-9db9-41c6-9dc8-a9fc142bacb6.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM={development_team_here} COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment' When i build locally, it works fine, tried both debug/release modes, but in the cloud archive fails. Also have following message in xcode cloud: `'Flutter/Flutter.h' file not found GeneratedPluginRegistrant.h:10` failed to emit precompile
1
0
219
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
The SwiftUI .backgroundTask modifier can't be there at all otherwise the crash will persist No, that's not correct. What complicates the conversation here is we're using the term background task for two different APIs which then partially overlap. Those are: SwiftUIs backgroundTask API, which is provides of standard code pattern for a number of unrelated APIs that can run in the background. The BackgroundTask framework, more specifically BGAppRefreshTask. The crash here is specifically caused by how SwiftUI is registering BGAppRefreshTask's, however, that also mean that it should only effect appRefresh, not the other task types. Not having the modifier means the old identifier won't be registered and thus if the old background task runs when the user updates but doesn't open the app, it will crash as the launch handler hasn't been registered I don't think this is an issue either. Internally, the BackgroundTask framework has a built in enforcement system which requires: Your app must declare the identifiers it
Mar ’25
Reply to Missing Push Notification Entitlement after building in command line
Thank you @benjfromlondon for showing me the way! I had the same issue while building using the Xcode@5 in Azure Pipelines although the project was otherwise configured as it should and as many StackOverflow threads indicated it should. I will add below more information about how I fixed the issue and troubleshooting. The fix The Xcode@5 Azure Pipelines task does not sign the archive by default: # Signing & provisioning #signingOption: 'nosign' # 'nosign' | 'default' | 'manual' | 'auto'. Signing style. Default: nosign. #signingIdentity: # string. Optional. Use when signingOption = manual. Signing identity. So I added the following to my Yaml pipeline: (signingOption, signingIdentity and provisioningProfileName) - task: Xcode@5 displayName: 'Build IPA' inputs: actions: 'clean build' configuration: 'Release' sdk: 'iphoneos' xcWorkspacePath: 'ios/MyApp.xcworkspace' workingDirectory: '$(Build.SourcesDirectory)' scheme: 'MyApp' packageApp: true signingOption: 'manual' signingIdentity: 'iPhone Distrib
Mar ’25
Reply to How can I trigger the Full Disk Access prompt to write to a raw block device?
[quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I'm not a Swift coder, but I'd like to be [/quote] Well, you’ve chosen a hard place to start |-: I have a lot to say about this but I want to start by addressing two specific comments: [quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I did change Sandbox App to NO in MyApp.entitlements [/quote] Don’t do that. If you don’t want to be sandboxed, remove the App Sandbox capability in the Signing & Capabilities editor. Setting the value to false can cause weird problems (although that’s unlikely to be causing problems for you here). [quote='830567022, coolaj86, /thread/777577?answerId=830567022#830567022, /profile/coolaj86'] using a uri to open system preferences [/quote] That URL scheme changed recently. I have links to docs for it in Supported URL Schemes. [quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I always get permission errno 13 (permission denied). [/quote] macOS has multiple layers of
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
MTLBinaryArchive Size
I'm trying to use MTLBinaryArchive. I collected a BinaryArchive from one device and used metal-tt to translate it for all supported iPhone devices, ranging from iPhone 7 Plus to iPhone 16. However, this BinaryArchive is quite large, around 1.5GB uncompressed, and about 500MB compressed in the IPA. I'm wondering how to address the size issue. I watched the WWDC 2022 video, which mentioned that the operating system or app installation process would handle compatibility. Does this compatibility support different GPU chips? I tried installing an IPA with a BinaryArchive collected only from an iPhone 12 on an iPhone 13, but the BinaryArchive didn't take effect. I also saw that Apple supports App Thinning. However, it seems that resources in the Asset Catalog cannot be accessed via URL, and creating an MTLBinaryArchive requires a URL. Is it possible for MTLBinaryArchive to be distributed through App Thinning? The WWDC 2022 video also mentioned using the -Os optimization flag to reduce size. Can this give a
0
0
116
Mar ’25
Reply to "BAD_REQUEST" in iCloudKit Telemetry
BAD_REQUEST typically means that the CloudKit server receives an invalid request. That can happen when, for example, your request has a CloudKit record or field that doesn't exist in the CloudKit schema. You mentioned your development scheme had been fully deployed to production, but that doesn't completely rule out the possibility of having invalid requests. For example, if you are using Core Data / SwiftData + CloudKit (NSPersistentCloudKitContainer), and the Core Data / SwiftData model in your app isn't completely mapped to the CloudKit schema, a bad request may happen. What CloudKit API are you using? For Core Data / SwiftData + CloudKit and the CloudKit framework, you might consider capturing and analyzing a sysdiagnose to hopefully find detailed messages that indicate the concrete reason of a bad request. If you are only using NSUbiquitousKeyValueStore, or using file system APIs to access iCloud Drive, you don't directly get involved to CloudKit requests, and so I’d suggest that you file a feed
Mar ’25
Reply to Why the navigationBar/shouldPop is no more called?
This is still an issue with Xcode 16.2 and iOS 18.2. The UINavigationBarDelegate method navigationBar(_:shouldPop:) is not called as expected when running an app in debug mode / with debug executable checked (attached to Xcode). It works as expected and according to documentation only in release builds or when unchecking debug executable in Product -> Scheme -> Edit Scheme… -> Run -> Info This issue causes confusion during development and testing. Perhaps the accepted answer should not be accepted, since it is still an issue (that it doesn't work according to documentation in debug mode)?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’25
I sent Proposal for Apple Silicon.app
Today, I submitted the following proposal to Apple through the Feedback Assistant app. I'm not confident in how I phrased it—I'd appreciate any thoughts or feedback from fellow developers. Proposal: Apple Silicon.app for macOS with Apple Silicon – Enhancing Performance and Swap Memory Control This suggestion has been machine translated into English, so there may be some discrepancies. If you need the actual text, please feel free to reply to this or ask at the email address below. If the author of this proposal is to be credited, I would appreciate being listed under the nickname “DiamondGotCat,” where possible. Summary: - Currently, Apple Silicon-equipped Macs have many system-level features locked down or restricted. - This proposal suggests a new application that enables certain advanced controls for power users. - Tentatively named Apple Silicon.app, the name may be subject to change if a more suitable alternative arises. - I propose this application be added as a pre-installed utility on compat
Replies
1
Boosts
0
Views
144
Activity
Mar ’25
Reply to App Crashes on TestFlight but Works in Simulator (Expo React Native App)
Evan Bacon from the Expo team here 👋 This can often happen when a third-party library is missing an API key and throws an exception in production. Try creating a local production iOS build in release mode: npx expo run:ios --configuration Release this will be a nearly identical build to what goes into TestFlight. You can also open the project in Xcode, and customize the scheme to build with the Release configuration. While we do stream the simctl errors to the CLI, building from Xcode directly in cases like this can yield more debug info.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Translation framework error.
Hello. It's strange, but the translation feature in my app works again. I changed nothing. It started working again also for my friends on their devices. Could you please tell me what is FB number and the can I find Feedback Assistant ? Thank you.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Termination notice and app removal
Hello, I am a first time app developer and a few days after my app was approved I got a termination notice and an app removal notice from apple without any info, proof or explanation. I do not believe I did anything wrong so I submitted an appeal within an hour after receiving the termination notice. I didn’t receive any confirmation that they received the appeal or any resolution (and it has been 16 days). I contacted support through email and got a generic response something like ‘we are working on our backlog, you need to wait’. the thing is that my account is going to be terminated in less than 2 weeks and I’m panicking and don’t know what to do. did anyone have any similar experiences and how did you resolve it? this is a part of the message I received: Upon further review of the activity associated with your Apple Developer Program membership, it's been determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity, in violation of the A
Replies
0
Boosts
0
Views
190
Activity
Mar ’25
Xcode fails to attach to process when building to the Simulator
When trying to build and run our iOS app on the simulator we're hitting the following error: Could not attach to pid: XXXXX failed to get reply to handshake packet within timeout of 6.0 seconds I've included some more details on our project/setup below: We're working on a large project with multiple schemes / app targets. The error only affects one of our targets - however the dependencies between the problematic target and the others are very similar. The issue only affects building to the simulator; building to a physical device works fine. Scheme configuration is the same across all targets. We've faced this issue on multiple versions of Xcode, from 15.x through to the latest 16.3 RC. We've tried a number of workarounds, some of which work intermittently for some colleagues - but none of which have provided a durable solution. These include varying combinations of: Setting the IDEPreferLogStreaming=YES environment variable Unchecking Debug Executable under Edit Scheme -> Run M
Replies
4
Boosts
0
Views
316
Activity
Mar ’25
Reply to DNS Proxy network extension doesn't start even after saving preferences successfully
Interestingly, when I get the error delegate: Submitting request to activate system extension... Request failed with error: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 1.) I do see a correlated crash from sysextd Process: sysextd [88810] Path: /System/Library/Frameworks/SystemExtensions.framework/Versions/A/Helpers/sysextd Identifier: sysextd Version: ??? Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 0 Date/Time: 2025-03-25 20:41:37.0472 -0300 OS Version: macOS 14.7 (23H124) Report Version: 12 Anonymous UUID: 603FADAE-E494-E147-DCDB-B19084A67DC1 Sleep/Wake UUID: E39090CA-174C-4227-8E0F-10F5584128BB Time Awake Since Boot: 80000 seconds Time Since Wake: 284 seconds System Integrity Protection: enabled Crashed Thread: 2 Dispatch queue: sysextd.extension_manager Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000104c789e4 Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Terminating Process: exc handler [88810] And whi
Replies
Boosts
Views
Activity
Mar ’25
Reply to Xcode copy release build signed target
Thank you for explaining. We discussed your case here and we recommend doing an archive build and then copying the app out of the archive. We expect this will give you the best results using code paths that are currently supported. You can copy the app out of the .xarchive by changing the file name ending from .xarchive to .zip. Then you can open the .zip file and copy the app into the Applications folder. Note ~ Searching on the web I found some folks talking about duplicating the run Scheme and changing the Build Configuration to Release and using the result from that. That may work in some cases, but it may not produce correct results in others. This is not a supported code path. We do not recommend using this duplicate Scheme approach.
Replies
Boosts
Views
Activity
Mar ’25
[Suggestion] SwiftUI convenience environment navigation functions
I've been thinking a lot about how navigation and presentation are managed in SwiftUI, and I wanted to propose an idea for a more streamlined approach using environment values. Right now, handling navigation can feel fragmented — especially when juggling default NavigationStack, modals, and tab selections. What if SwiftUI provided a set of convenience environment values for these common actions? Tabs @Environment(.selectedTab) var selectedTab @Environment(.selectTab) var selectTab selectedTab: Read the current tab index selectTab(index: Int): Programmatically switch tabs Stack Navigation @Environment(.stackCount) var stackCount @Environment(.push) var push @Environment(.pop) var pop @Environment(.popToRoot) var popToRoot stackCount: Read how many views are in the navigation stack push(destination: View): Push a new view onto the stack pop(last: Int = 1): Pop the last views popToRoot(): Return to the root view Modals @Environment(.sheet) var sheet @Environment(.fullScreenCover) var fullScreenCover @Environment
Replies
4
Boosts
0
Views
104
Activity
Mar ’25
Xcode cloud: xcode build archive error
Hello! I'm trying to build my flutter app through xcode cloud, but im getting following error: Command exited with non-zero exit-code: 65 Run command: 'xcodebuild archive -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /Volumes/workspace/tmp/resultBundleStream97053cd8-9db9-41c6-9dc8-a9fc142bacb6.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM={development_team_here} COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment' When i build locally, it works fine, tried both debug/release modes, but in the cloud archive fails. Also have following message in xcode cloud: `'Flutter/Flutter.h' file not found GeneratedPluginRegistrant.h:10` failed to emit precompile
Replies
1
Boosts
0
Views
219
Activity
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
The SwiftUI .backgroundTask modifier can't be there at all otherwise the crash will persist No, that's not correct. What complicates the conversation here is we're using the term background task for two different APIs which then partially overlap. Those are: SwiftUIs backgroundTask API, which is provides of standard code pattern for a number of unrelated APIs that can run in the background. The BackgroundTask framework, more specifically BGAppRefreshTask. The crash here is specifically caused by how SwiftUI is registering BGAppRefreshTask's, however, that also mean that it should only effect appRefresh, not the other task types. Not having the modifier means the old identifier won't be registered and thus if the old background task runs when the user updates but doesn't open the app, it will crash as the launch handler hasn't been registered I don't think this is an issue either. Internally, the BackgroundTask framework has a built in enforcement system which requires: Your app must declare the identifiers it
Replies
Boosts
Views
Activity
Mar ’25
Reply to Missing Push Notification Entitlement after building in command line
Thank you @benjfromlondon for showing me the way! I had the same issue while building using the Xcode@5 in Azure Pipelines although the project was otherwise configured as it should and as many StackOverflow threads indicated it should. I will add below more information about how I fixed the issue and troubleshooting. The fix The Xcode@5 Azure Pipelines task does not sign the archive by default: # Signing & provisioning #signingOption: 'nosign' # 'nosign' | 'default' | 'manual' | 'auto'. Signing style. Default: nosign. #signingIdentity: # string. Optional. Use when signingOption = manual. Signing identity. So I added the following to my Yaml pipeline: (signingOption, signingIdentity and provisioningProfileName) - task: Xcode@5 displayName: 'Build IPA' inputs: actions: 'clean build' configuration: 'Release' sdk: 'iphoneos' xcWorkspacePath: 'ios/MyApp.xcworkspace' workingDirectory: '$(Build.SourcesDirectory)' scheme: 'MyApp' packageApp: true signingOption: 'manual' signingIdentity: 'iPhone Distrib
Replies
Boosts
Views
Activity
Mar ’25
Reply to How can I trigger the Full Disk Access prompt to write to a raw block device?
[quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I'm not a Swift coder, but I'd like to be [/quote] Well, you’ve chosen a hard place to start |-: I have a lot to say about this but I want to start by addressing two specific comments: [quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I did change Sandbox App to NO in MyApp.entitlements [/quote] Don’t do that. If you don’t want to be sandboxed, remove the App Sandbox capability in the Signing & Capabilities editor. Setting the value to false can cause weird problems (although that’s unlikely to be causing problems for you here). [quote='830567022, coolaj86, /thread/777577?answerId=830567022#830567022, /profile/coolaj86'] using a uri to open system preferences [/quote] That URL scheme changed recently. I have links to docs for it in Supported URL Schemes. [quote='777577021, coolaj86, /thread/777577, /profile/coolaj86'] I always get permission errno 13 (permission denied). [/quote] macOS has multiple layers of
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’25
MTLBinaryArchive Size
I'm trying to use MTLBinaryArchive. I collected a BinaryArchive from one device and used metal-tt to translate it for all supported iPhone devices, ranging from iPhone 7 Plus to iPhone 16. However, this BinaryArchive is quite large, around 1.5GB uncompressed, and about 500MB compressed in the IPA. I'm wondering how to address the size issue. I watched the WWDC 2022 video, which mentioned that the operating system or app installation process would handle compatibility. Does this compatibility support different GPU chips? I tried installing an IPA with a BinaryArchive collected only from an iPhone 12 on an iPhone 13, but the BinaryArchive didn't take effect. I also saw that Apple supports App Thinning. However, it seems that resources in the Asset Catalog cannot be accessed via URL, and creating an MTLBinaryArchive requires a URL. Is it possible for MTLBinaryArchive to be distributed through App Thinning? The WWDC 2022 video also mentioned using the -Os optimization flag to reduce size. Can this give a
Replies
0
Boosts
0
Views
116
Activity
Mar ’25
Reply to "BAD_REQUEST" in iCloudKit Telemetry
BAD_REQUEST typically means that the CloudKit server receives an invalid request. That can happen when, for example, your request has a CloudKit record or field that doesn't exist in the CloudKit schema. You mentioned your development scheme had been fully deployed to production, but that doesn't completely rule out the possibility of having invalid requests. For example, if you are using Core Data / SwiftData + CloudKit (NSPersistentCloudKitContainer), and the Core Data / SwiftData model in your app isn't completely mapped to the CloudKit schema, a bad request may happen. What CloudKit API are you using? For Core Data / SwiftData + CloudKit and the CloudKit framework, you might consider capturing and analyzing a sysdiagnose to hopefully find detailed messages that indicate the concrete reason of a bad request. If you are only using NSUbiquitousKeyValueStore, or using file system APIs to access iCloud Drive, you don't directly get involved to CloudKit requests, and so I’d suggest that you file a feed
Replies
Boosts
Views
Activity
Mar ’25