I am running Xcode 16.2 with iOS 18.2. I'm getting the following error when dismissing the .manageSubscriptionSheet (by clicking "x" in the upper right corner). It happens when testing on a physical device - via Xcode and also using Sandbox. Simulator executions do NOT show this error. In addition, on the simulator, it shows the word "cancel" instead of the "x" on the manageSubscriptionSheet. I'm not sure why.
AX Lookup problem - errorCode:1,100 error:Permission denied portName:'com.apple.iphone.axserver' PID:1,472 (
0 AXRuntime 0x00000001cc89e758 _AXGetPortFromCache + 796
1 AXRuntime 0x00000001cc8a402c AXUIElementPerformFencedActionWithValue + 700
2 UIKit 0x000000025266a488 2AD4BCCA-CB04-30CD-91BB-7686517FCB84 + 1537160
3 libdispatch.dylib 0x000000010338488c _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x0000000103386578 _dispatch_client_callout + 20
5 libdispatch.dylib 0x000000010338e454 _dispatch_lane_serial_drain + 840
6 libdispatch.dylib 0x000000010338f25c _dispatch_lane_invoke + 408
7 libdispatch.dylib 0x000000010339c6fc _dispatch_root_queue_drain_deferred_wlh + 328
8 libdispatch.dylib 0x000000010339bd0c _dispatch_workloop_worker_thread + 580
9 libsystem_pthread.dylib 0x000000021fa3b680 _pthread_wqthread + 288
10 libsystem_pthread.dylib 0x000000021fa39474 start_wqthread + 8
)
Simplified code to recreate is:
struct MyView: View {
@State var presentingSubscriptionSheet: Bool = false
var body: some View {
VStack(spacing: 25) {
Text("Hello, World!")
Button{
presentingSubscriptionSheet = true
} label: {
Text("Display managed subscription sheet")
}
.buttonStyle(.borderedProminent)
.manageSubscriptionsSheet(
isPresented: $presentingSubscriptionSheet,
subscriptionGroupID: "12345678"
)
}
}
}
The manage subscription sheet displays fine. I only get this error when closing the sheet. This happens whenever I click "x" to close the sheet; whether I select a subscription to subscribe to or not. Thoughts?