Search results for

“missing package product”

52,923 results found

Post

Replies

Boosts

Views

Activity

`previousOriginalTransactionId` missing from both `JWSTransactionDecodedPayload` and raw JWS payload (Java App Store Server Library `5.1.1`)
Hi, I’m trying to understand the availability of previousOriginalTransactionId in App Store Server Notifications. According to Apple documentation, the field exists here: https://developer.apple.com/documentation/appstoreservernotifications/previousoriginaltransactionid And the App Store Server Notifications changelog indicates it was added in March 2025: https://developer.apple.com/documentation/appstoreservernotifications/app-store-server-notifications-changelog However, I cannot find this field in practice. What I checked I’m using the Java App Store Server Library version 5.1.1 (latest on Maven Central). JWSTransactionDecodedPayload does not expose a property/getter for previousOriginalTransactionId. Example: JWSTransactionDecodedPayload payload = verifier.verifyAndDecodeTransaction(signedTransaction); There does not appear to be something like: payload.getPreviousOriginalTransactionId() I initially assumed this was an SDK lag issue, so I decoded the raw JWS payload JSON manually. However, I also do not s
0
0
43
4d
Reply to com.apple.developer.automatic-assessment-configuration entitlement missing from manually downloaded Distribution/InHouse Provisioning Profile
Thank you very much for the detailed explanation. Your answer clarified that the behavior is intentional --- the AAC capability is restricted to specific distribution channels --- and we will proceed accordingly. We plan to transition our testing environment to use an App Store Organization team account, following the recommended path of Apple Distribution + TestFlight for internal testing. (As a side note: it is a bit unfortunate that we won't be able to use our internally built stage-based automated build/distribution pipeline for this workflow, but we understand the policy.) One piece of feedback I'd like to share regarding the Apple Developer Portal UX: When downloading an InHouse Distribution Provisioning Profile from the portal, the Enabled Capabilities section displays: App Groups, Associated Domains, Automatic Assessment Configuration, In-App Purchase, Push Notifications This listing implies that AAC is included in the downloaded profile. However, as confirmed in this thread, the entitlement key (com.
Topic: Code Signing SubTopic: Entitlements Tags:
4d
Apple Membership renew issue || Not able to Publish App || Missed Deadline to Accept Terms
I bought Apple Membership [Apple Developer/App Store connect] in Feb 2026 (3 Months before), still, I am getting this issue of Renew membership. Even though, i try to buy again, it showing, Apple Account is already associated with the Account Holder of a membership. I think, I have missed accepting Agreement & terms, which needed to accept before April 15. Now, what to do? Anyone can guide me? I am not able to see anywhere option to accept it.
0
0
53
4d
First auto-renewable subscriptions stuck In Review and no In-App Purchases section on version page
My first auto-renewable subscriptions have been stuck in “In Review” for almost two weeks. Apple’s notice says the first subscription must be submitted with a new app version and selected from the “In-App Purchases and Subscriptions” section on the version page. However, my version page does not show that section, even after creating a new version in Prepare for Submission. The only place I can see the subscriptions is from the Subscriptions side tab. The app itself has already been approved, but StoreKit does not return the products in production, so my paywall cannot sell subscriptions. Has anyone found a working fix for this, or does Apple need to manually reset/review the subscription state?
0
0
48
4d
Reply to Xcode 26.4: Regressions in Intelligence features
Hello everyone, I’m looking for some guidance and, if possible, assistance with an issue I’m experiencing. I’ve been using Codex with Xcode since the beginning of my project, and I used to be able to use both the Codex agent and ChatGPT through my ChatGPT login. I have a paid Pro account. However, two days ago, my Codex agent was signed out, and I lost access to Intelligence features and the ability to send prompts. I can no longer sign in to my Codex agent in Xcode—the only option available now seems to be using an API key. I tried that workaround for a day, but I quickly hit my API usage limit. Has anyone else run into this issue? If so, how did you resolve it? I’ve already tried deleting Xcode and all related files and logs, then reinstalling, but that didn’t fix the problem. Thank you.
5d
Electron app + Apple Music playback: queue works, playback does not start. Looking for guidance.
Hi everyone. I’m building a macOS-first desktop app where music drives the app's behavior loop. The app is currently an Electron prototype. The blocker: we’re testing Apple Music inside an Electron app. MusicKit JS authorization works, catalog search works, and setting the queue works, but playback does not actually start in Electron. What we tried: Created Apple Developer / MusicKit credentials. Generated Apple Music developer tokens successfully. Retrieved a Music User Token through MusicKit JS. Confirmed Apple Music API calls work. Confirmed /v1/test and /me/storefront return 200 OK. Built a local HTTP auth/playback window inside Electron instead of using file://. Tested music.setQueue() with both: { song: songId } { url: catalogUrl } In Electron, the queue loads correctly: queueEmpty=false queueLength=1 volume=1 playbackRate=1 But after music.play(), playbackTime stays at 0 and no audio plays. Then we ran the same MusicKit playback test in normal Chrome using the same token, same local origin, same catalo
0
0
47
5d
Reply to Could not launch app on watchOS downloaded from TestFlight
We are seeing what looks like the same issue with our TestFlight watchOS app. In our case the watch app is paired with an iOS app and was installed from TestFlight. The watch app launched successfully earlier on the same device and same installed build, including from a complication, and successfully recorded/transferred data. Later, tapping the app icon or complication did nothing. We reproduced the failure from the Mac with devicectl device process launch and got: The application failed to launch. (com.apple.dt.CoreDeviceError error 10002) BundleIdentifier = FBSOpenApplicationServiceErrorDomain error 1: RequestDenied FBSOpenApplicationErrorDomain error 3: Security Unable to launch because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. A few details that may be useful: The same TestFlight build had launched successfully earlier on the same watch. The app was still listed as installed by CoreDevice. The companion dev/watch build could stil
Topic: App & System Services SubTopic: General Tags:
5d
Reply to App rejected 13+ times for UIRequiredDeviceCapabilities after adding DeviceActivity extensions — what am I missing?
SOLVED but this needs to be addressed by engineers - both the actual issue and the incorrect auto-generated App Review response that led us on a wild chase. I reproduced the install failure on a physical iOS device through TestFlight, and the real blocking error is not UIRequiredDeviceCapabilities. The device installation log shows MIInstallerErrorDomain Code 152 with AppexBundleContainsClassOrStoryboard, because the [APPNAME]DeviceActivityReport.appex for com.apple.deviceactivityui.report-extension contains NSExtensionMainStoryboard or NSExtensionPrincipalClass, which iOS says is not allowed for that extension point. This seems to be a known issue reproducible on iOS 18 and 26. This creates a validation conflict: removing NSExtensionPrincipalClass makes App Store Connect reject the upload with “Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found,” but including it causes the install to fail on device. In other words, there is no plist configuration t
Topic: App & System Services SubTopic: General Tags:
5d
Detect Configuration Profile state change (DoH .mobileconfig) without VPN/MDM/supervised — any API I missed?
Is there any iOS API, framework, or entitlement (public or beta) that lets an app detect when a user disables or removes a Configuration Profile (specifically a DNS-over-HTTPS profile) — without VPN extension, MDM, or supervised mode? Use case: I need to know server-side, in real time, when the user toggles off a .mobileconfig DoH profile they previously installed. Things I've already reviewed and ruled out: NetworkExtension (NEDNSSettingsManager — only fires while app is running) BGTaskScheduler (iOS-scheduled, not real-time) NEFilterDataProvider (requires supervised) VPN / MDM / supervised Anything I'm missing?
1
0
52
6d
Production StoreKit silently omits one approved auto-renewable subscription product — sandbox returns it correctly, sudden onset 2026-05-09
Hi all, Reporting an active production issue in case anyone else is seeing the same pattern, or has insight into what could cause this. Symptom As of 2026-05-09 morning, one specific auto-renewable subscription product is silently absent from Production StoreKit responses on our live App Store build. The product is still 'Approved' in App Store Connect, all metadata is intact, no error code is returned — the product simply does not appear in the products array. The other 3 products in the same subscription group continue to work normally. 100% of production users are affected. Setup App: live on App Store, version 1.0.0 (build 8) Subscription group with 4 auto-renewable products: standard_monthly_799 ✅ returns correctly standard_annual_6999 ✅ returns correctly unlimited_monthly_1299 ❌ MISSING from production response unlimited_annual_9999 ✅ returns correctly SDK: purchases_flutter (RevenueCat) → StoreKit Same ph
0
0
71
6d
Apple Watch Notification Center timestamp drift on notifications processed by a Notification Service Extension
I'm seeing a timestamp display issue on Apple Watch Notification Center, and I'd like to confirm whether this is a known watchOS behavior or whether there's a setup mistake on our side. Symptom The same APNs notification displays the correct time on iPhone Notification Center and on the initial Apple Watch banner. After the Watch screen turns off and the user later opens Notification Center on Apple Watch, the same notification may show an incorrect relative timestamp such as 3 hours ago or even yesterday. The drift is per-notification and persists for that notification until it's dismissed. iPhone NC always shows the correct time. WhatsApp tested side-by-side on the same iPhone/Watch pair does not show this drift. Setup iOS 26.4.2 on iPhone 16 Pro watchOS 26.4 on Apple Watch Series 10 App with paired Apple Watch A UNNotificationServiceExtension that decrypts E2EE message previews and applies Communication Notification enrichment via INSendMessageIntent and content.updating(from:) Production APNs env
6
0
141
6d
Auto-renewable subscriptions returning false on RevenueCat Purchase — unable to test in sandbox without Xcode
Hello, I am experiencing a persistent issue with auto-renewable subscriptions during App Review. Despite verifying all configurations, the subscription purchase flow fails and the app continues to be rejected under Guideline 2.1(b). Environment App built with FlutterFlow (no Xcode access, Windows-only development environment) purchases_flutter SDK v9.9.5 (RevenueCat) iOS deployment target: iOS 13+ Review device reported by Apple: iPhone 17 Pro Max, iOS 26.4.2 Configuration verified App Store Connect: Subscription group plateup_pro created and configured Products plateup_pro:monthly (1 month) and plateup_pro:yearly (1 year) created with all required fields Both products status: Waiting for Review Paid Apps Agreement: Active as of May 8, 2026 All tax forms active: Brazil Tax Form, W-8BEN-E, W-8BEN Banking account: Active RevenueCat dashboard: In-App Purchase Key configured and validated: Valid credentials confirmed App Store Connect API Key configured and validated: Valid credentials confirmed
2
0
91
6d
Auto-renewable subscriptions returning false on RevenueCat Purchase — unable to test in sandbox without Xcode
Hello, I am experiencing a persistent issue with auto-renewable subscriptions during App Review. Despite verifying all configurations, the subscription purchase flow fails and the app continues to be rejected under Guideline 2.1(b). Environment App built with FlutterFlow (no Xcode access, Windows-only development environment) purchases_flutter SDK v9.9.5 (RevenueCat) iOS deployment target: iOS 13+ Review device reported by Apple: iPhone 17 Pro Max, iOS 26.4.2 Configuration verified App Store Connect: Subscription group plateup_pro created and configured Products plateup_pro:monthly (1 month) and plateup_pro:yearly (1 year) created with all required fields Both products status: Waiting for Review Paid Apps Agreement: Active as of May 8, 2026 All tax forms active: Brazil Tax Form, W-8BEN-E, W-8BEN Banking account: Active RevenueCat dashboard: In-App Purchase Key configured and validated: Valid credentials confirmed App Store Connect API Key configured and validated: Valid credentials confirmed
0
0
27
6d
Reply to Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
I fixed the error in the actor by using this code: private var backgroundCompletionHandler: (() async -> Void)? and func getBackgroundCompletionHandler() -> ((() async -> Void)?) { return backgroundCompletionHandler } func setBackgroundCompletionHandler(_ h: (() -> Void)?){ backgroundCompletionHandler=h } func executeCompletionHandler() async{ await backgroundCompletionHandler?() } Yet my error on the app delegate at: func application( _ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) { let runCompletionHandler = {@MainActor in completionHandler() } Task.init{ await GeoreferenceQueue.shared.setBackgroundCompletionHandler(runCompletionHandler) } } Converting function value of type '@MainActor @Sendable () -> Void' to '() -> Void' loses global actor 'MainActor' is still there. Now I set all functions in the actor to MainActor as well the variable storing the completion: @MainActor private var backgroundCom
Topic: Programming Languages SubTopic: Swift Tags:
6d
`previousOriginalTransactionId` missing from both `JWSTransactionDecodedPayload` and raw JWS payload (Java App Store Server Library `5.1.1`)
Hi, I’m trying to understand the availability of previousOriginalTransactionId in App Store Server Notifications. According to Apple documentation, the field exists here: https://developer.apple.com/documentation/appstoreservernotifications/previousoriginaltransactionid And the App Store Server Notifications changelog indicates it was added in March 2025: https://developer.apple.com/documentation/appstoreservernotifications/app-store-server-notifications-changelog However, I cannot find this field in practice. What I checked I’m using the Java App Store Server Library version 5.1.1 (latest on Maven Central). JWSTransactionDecodedPayload does not expose a property/getter for previousOriginalTransactionId. Example: JWSTransactionDecodedPayload payload = verifier.verifyAndDecodeTransaction(signedTransaction); There does not appear to be something like: payload.getPreviousOriginalTransactionId() I initially assumed this was an SDK lag issue, so I decoded the raw JWS payload JSON manually. However, I also do not s
Replies
0
Boosts
0
Views
43
Activity
4d
stuck in "in review" over 72 hours
My app is stuck in the in review stage for over 3days. . Did my review get stuck or lost or something? Is there anyway to get any clarity on this?
Replies
1
Boosts
0
Views
61
Activity
4d
Reply to com.apple.developer.automatic-assessment-configuration entitlement missing from manually downloaded Distribution/InHouse Provisioning Profile
Thank you very much for the detailed explanation. Your answer clarified that the behavior is intentional --- the AAC capability is restricted to specific distribution channels --- and we will proceed accordingly. We plan to transition our testing environment to use an App Store Organization team account, following the recommended path of Apple Distribution + TestFlight for internal testing. (As a side note: it is a bit unfortunate that we won't be able to use our internally built stage-based automated build/distribution pipeline for this workflow, but we understand the policy.) One piece of feedback I'd like to share regarding the Apple Developer Portal UX: When downloading an InHouse Distribution Provisioning Profile from the portal, the Enabled Capabilities section displays: App Groups, Associated Domains, Automatic Assessment Configuration, In-App Purchase, Push Notifications This listing implies that AAC is included in the downloaded profile. However, as confirmed in this thread, the entitlement key (com.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
4d
Apple Membership renew issue || Not able to Publish App || Missed Deadline to Accept Terms
I bought Apple Membership [Apple Developer/App Store connect] in Feb 2026 (3 Months before), still, I am getting this issue of Renew membership. Even though, i try to buy again, it showing, Apple Account is already associated with the Account Holder of a membership. I think, I have missed accepting Agreement & terms, which needed to accept before April 15. Now, what to do? Anyone can guide me? I am not able to see anywhere option to accept it.
Replies
0
Boosts
0
Views
53
Activity
4d
First auto-renewable subscriptions stuck In Review and no In-App Purchases section on version page
My first auto-renewable subscriptions have been stuck in “In Review” for almost two weeks. Apple’s notice says the first subscription must be submitted with a new app version and selected from the “In-App Purchases and Subscriptions” section on the version page. However, my version page does not show that section, even after creating a new version in Prepare for Submission. The only place I can see the subscriptions is from the Subscriptions side tab. The app itself has already been approved, but StoreKit does not return the products in production, so my paywall cannot sell subscriptions. Has anyone found a working fix for this, or does Apple need to manually reset/review the subscription state?
Replies
0
Boosts
0
Views
48
Activity
4d
Reply to Xcode 26.4: Regressions in Intelligence features
Hello everyone, I’m looking for some guidance and, if possible, assistance with an issue I’m experiencing. I’ve been using Codex with Xcode since the beginning of my project, and I used to be able to use both the Codex agent and ChatGPT through my ChatGPT login. I have a paid Pro account. However, two days ago, my Codex agent was signed out, and I lost access to Intelligence features and the ability to send prompts. I can no longer sign in to my Codex agent in Xcode—the only option available now seems to be using an API key. I tried that workaround for a day, but I quickly hit my API usage limit. Has anyone else run into this issue? If so, how did you resolve it? I’ve already tried deleting Xcode and all related files and logs, then reinstalling, but that didn’t fix the problem. Thank you.
Replies
Boosts
Views
Activity
5d
Electron app + Apple Music playback: queue works, playback does not start. Looking for guidance.
Hi everyone. I’m building a macOS-first desktop app where music drives the app's behavior loop. The app is currently an Electron prototype. The blocker: we’re testing Apple Music inside an Electron app. MusicKit JS authorization works, catalog search works, and setting the queue works, but playback does not actually start in Electron. What we tried: Created Apple Developer / MusicKit credentials. Generated Apple Music developer tokens successfully. Retrieved a Music User Token through MusicKit JS. Confirmed Apple Music API calls work. Confirmed /v1/test and /me/storefront return 200 OK. Built a local HTTP auth/playback window inside Electron instead of using file://. Tested music.setQueue() with both: { song: songId } { url: catalogUrl } In Electron, the queue loads correctly: queueEmpty=false queueLength=1 volume=1 playbackRate=1 But after music.play(), playbackTime stays at 0 and no audio plays. Then we ran the same MusicKit playback test in normal Chrome using the same token, same local origin, same catalo
Replies
0
Boosts
0
Views
47
Activity
5d
Reply to Could not launch app on watchOS downloaded from TestFlight
We are seeing what looks like the same issue with our TestFlight watchOS app. In our case the watch app is paired with an iOS app and was installed from TestFlight. The watch app launched successfully earlier on the same device and same installed build, including from a complication, and successfully recorded/transferred data. Later, tapping the app icon or complication did nothing. We reproduced the failure from the Mac with devicectl device process launch and got: The application failed to launch. (com.apple.dt.CoreDeviceError error 10002) BundleIdentifier = FBSOpenApplicationServiceErrorDomain error 1: RequestDenied FBSOpenApplicationErrorDomain error 3: Security Unable to launch because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. A few details that may be useful: The same TestFlight build had launched successfully earlier on the same watch. The app was still listed as installed by CoreDevice. The companion dev/watch build could stil
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
5d
Reply to App rejected 13+ times for UIRequiredDeviceCapabilities after adding DeviceActivity extensions — what am I missing?
SOLVED but this needs to be addressed by engineers - both the actual issue and the incorrect auto-generated App Review response that led us on a wild chase. I reproduced the install failure on a physical iOS device through TestFlight, and the real blocking error is not UIRequiredDeviceCapabilities. The device installation log shows MIInstallerErrorDomain Code 152 with AppexBundleContainsClassOrStoryboard, because the [APPNAME]DeviceActivityReport.appex for com.apple.deviceactivityui.report-extension contains NSExtensionMainStoryboard or NSExtensionPrincipalClass, which iOS says is not allowed for that extension point. This seems to be a known issue reproducible on iOS 18 and 26. This creates a validation conflict: removing NSExtensionPrincipalClass makes App Store Connect reject the upload with “Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found,” but including it causes the install to fail on device. In other words, there is no plist configuration t
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
5d
Detect Configuration Profile state change (DoH .mobileconfig) without VPN/MDM/supervised — any API I missed?
Is there any iOS API, framework, or entitlement (public or beta) that lets an app detect when a user disables or removes a Configuration Profile (specifically a DNS-over-HTTPS profile) — without VPN extension, MDM, or supervised mode? Use case: I need to know server-side, in real time, when the user toggles off a .mobileconfig DoH profile they previously installed. Things I've already reviewed and ruled out: NetworkExtension (NEDNSSettingsManager — only fires while app is running) BGTaskScheduler (iOS-scheduled, not real-time) NEFilterDataProvider (requires supervised) VPN / MDM / supervised Anything I'm missing?
Replies
1
Boosts
0
Views
52
Activity
6d
Production StoreKit silently omits one approved auto-renewable subscription product — sandbox returns it correctly, sudden onset 2026-05-09
Hi all, Reporting an active production issue in case anyone else is seeing the same pattern, or has insight into what could cause this. Symptom As of 2026-05-09 morning, one specific auto-renewable subscription product is silently absent from Production StoreKit responses on our live App Store build. The product is still 'Approved' in App Store Connect, all metadata is intact, no error code is returned — the product simply does not appear in the products array. The other 3 products in the same subscription group continue to work normally. 100% of production users are affected. Setup App: live on App Store, version 1.0.0 (build 8) Subscription group with 4 auto-renewable products: standard_monthly_799 ✅ returns correctly standard_annual_6999 ✅ returns correctly unlimited_monthly_1299 ❌ MISSING from production response unlimited_annual_9999 ✅ returns correctly SDK: purchases_flutter (RevenueCat) → StoreKit Same ph
Replies
0
Boosts
0
Views
71
Activity
6d
Apple Watch Notification Center timestamp drift on notifications processed by a Notification Service Extension
I'm seeing a timestamp display issue on Apple Watch Notification Center, and I'd like to confirm whether this is a known watchOS behavior or whether there's a setup mistake on our side. Symptom The same APNs notification displays the correct time on iPhone Notification Center and on the initial Apple Watch banner. After the Watch screen turns off and the user later opens Notification Center on Apple Watch, the same notification may show an incorrect relative timestamp such as 3 hours ago or even yesterday. The drift is per-notification and persists for that notification until it's dismissed. iPhone NC always shows the correct time. WhatsApp tested side-by-side on the same iPhone/Watch pair does not show this drift. Setup iOS 26.4.2 on iPhone 16 Pro watchOS 26.4 on Apple Watch Series 10 App with paired Apple Watch A UNNotificationServiceExtension that decrypts E2EE message previews and applies Communication Notification enrichment via INSendMessageIntent and content.updating(from:) Production APNs env
Replies
6
Boosts
0
Views
141
Activity
6d
Auto-renewable subscriptions returning false on RevenueCat Purchase — unable to test in sandbox without Xcode
Hello, I am experiencing a persistent issue with auto-renewable subscriptions during App Review. Despite verifying all configurations, the subscription purchase flow fails and the app continues to be rejected under Guideline 2.1(b). Environment App built with FlutterFlow (no Xcode access, Windows-only development environment) purchases_flutter SDK v9.9.5 (RevenueCat) iOS deployment target: iOS 13+ Review device reported by Apple: iPhone 17 Pro Max, iOS 26.4.2 Configuration verified App Store Connect: Subscription group plateup_pro created and configured Products plateup_pro:monthly (1 month) and plateup_pro:yearly (1 year) created with all required fields Both products status: Waiting for Review Paid Apps Agreement: Active as of May 8, 2026 All tax forms active: Brazil Tax Form, W-8BEN-E, W-8BEN Banking account: Active RevenueCat dashboard: In-App Purchase Key configured and validated: Valid credentials confirmed App Store Connect API Key configured and validated: Valid credentials confirmed
Replies
2
Boosts
0
Views
91
Activity
6d
Auto-renewable subscriptions returning false on RevenueCat Purchase — unable to test in sandbox without Xcode
Hello, I am experiencing a persistent issue with auto-renewable subscriptions during App Review. Despite verifying all configurations, the subscription purchase flow fails and the app continues to be rejected under Guideline 2.1(b). Environment App built with FlutterFlow (no Xcode access, Windows-only development environment) purchases_flutter SDK v9.9.5 (RevenueCat) iOS deployment target: iOS 13+ Review device reported by Apple: iPhone 17 Pro Max, iOS 26.4.2 Configuration verified App Store Connect: Subscription group plateup_pro created and configured Products plateup_pro:monthly (1 month) and plateup_pro:yearly (1 year) created with all required fields Both products status: Waiting for Review Paid Apps Agreement: Active as of May 8, 2026 All tax forms active: Brazil Tax Form, W-8BEN-E, W-8BEN Banking account: Active RevenueCat dashboard: In-App Purchase Key configured and validated: Valid credentials confirmed App Store Connect API Key configured and validated: Valid credentials confirmed
Replies
0
Boosts
0
Views
27
Activity
6d
Reply to Passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution
I fixed the error in the actor by using this code: private var backgroundCompletionHandler: (() async -> Void)? and func getBackgroundCompletionHandler() -> ((() async -> Void)?) { return backgroundCompletionHandler } func setBackgroundCompletionHandler(_ h: (() -> Void)?){ backgroundCompletionHandler=h } func executeCompletionHandler() async{ await backgroundCompletionHandler?() } Yet my error on the app delegate at: func application( _ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) { let runCompletionHandler = {@MainActor in completionHandler() } Task.init{ await GeoreferenceQueue.shared.setBackgroundCompletionHandler(runCompletionHandler) } } Converting function value of type '@MainActor @Sendable () -> Void' to '() -> Void' loses global actor 'MainActor' is still there. Now I set all functions in the actor to MainActor as well the variable storing the completion: @MainActor private var backgroundCom
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
6d