There is also an answer to this question from DTS Engineer here in another thread:
https://developer.apple.com/forums/thread/723109
Post
Replies
Boosts
Views
Activity
You probably should declare two different intents: one with non-optional parameter and perform() function implementation; and another one that implements WidgetConfigurationIntent, has optional parameter, and no perform() function.
You'd also want to declare that second one as non-discoverable.
static let isDiscoverable = false
That approach worked well for me.
I'm wondering about submitting an TSI request...
I did this last week, sent a request to DTS. The only thing I got back was this auto-acknowledgement:
Thanks for contacting Apple Developer Technical Support. We’ll review your request soon and advise whether your request will be managed via email or should be directed to the Developer Forums.
Some more folks with the same question here, also without an answer.
https://developer.apple.com/forums/thread/732731
Still there on Version 15.3 (15E204a) and iOS Simulator 17.2.
Unable to capture the view hierarchy
Domain: DBGViewDebuggerErrorDomain
Code: 0
Failure Reason: "Classic" encountered an unexpected error when processing the request for a view hierarchy snapshot. Some properties and images may not be available.
User Info: {
DVTErrorCreationDateKey = "2024-04-30 13:37:00 +0000";
DVTRadarComponentKey = 547420;
Environment = "Xcode 15.3 (15E204a) debugging iPad Air (5th generation) iOS Simulator 17.2 (21C62).";
}
The operation couldn’t be completed. Log Title: Data source expression execution failure.
Log Details: error evaluating expression “(BOOL)[[(Class)objc_getClass("DebugHierarchyTargetHub") sharedHub] performRequestInPlaceWithRequestInBase64:@"eyJEQkdIaWVyYXJjaHlSZXF1ZXN0TmFtZSI6IkZldGNoIHJlbWFpbmluZyBsYXp5IHByb3BlcnRpZXMiLCJEQkdIaWVyYXJjaHlSZXF1ZXN0SW5pdGlhdG9yVmVyc2lvbktleSI6NCwiREJHSGllcmFyY2h5UmVxdWVzdFByaW9yaXR5IjowLCJEQkdIaWVyYXJjaHlPYmplY3REaXNjb3ZlcnkiOjIsIkRCR0hpZXJhcmNoeVJlcXVlc3RBY3Rpb25zIjpbeyJvYmplY3RJZGVudGlmaWVycyI6bnVsbCwib3B0aW9ucyI6MCwicHJvcGVydHlOYW1lcyI6WyJlbmNvZGVkUHJlc2VudGF0aW9uTGF5ZXIiLCJlbmNvZGVkUHJlc2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mVFeGNsdXNpdmUiOmZhbHNlLCJhY3Rpb25DbGFzcyI6IkRlYnVnSGllcmFyY2h5UHJvcGVydHlBY3Rpb25MZWdhY3lWMSIsInByb3BlcnR5TmFtZXNBcmVFeGNsdXNpdmUiOnRydWV9XSwiREJHSGllcmFyY2h5UmVxdWVzdElkZW50aWZpZXIiOiI2QjZGNTNGRC0zRDRGLTRGQkYtODYxRS0xRERFMUVBMzI3NjIiLCJEQkdIaWVyYXJjaHlSZXF1ZXN0VHJhbnNwb3J0Q29tcHJlc3Npb24iOnRydWV9"]”: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x20).
The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
Thread status: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x20)
frame #0: 0x0000000180059c54 libobjc.A.dylibobjc_retain + 16 libobjc.A.dylibobjc_retain:
-> 0x180059c54 <+16>: ldr x17, [x17, #0x20]
0x180059c58 <+20>: tbz w17, #0x2, 0x180059c00 ; ___lldb_unnamed_symbol1345
0x180059c5c <+24>: tbz w16, #0x0, 0x180059c2c ; ___lldb_unnamed_symbol1345 + 44
0x180059c60 <+28>: lsr x17, x16, #55
frame #1: 0x00000001e3ebfdd8 libViewDebuggerSupport.dylib+[NSLayoutConstraint(DebugHierarchyAdditionsFallback) fallback_debugHierarchyValueForPropertyWithName:onObject:outOptions:outError:] + 288 frame #2: 0x00000001cbe32a20 DebugHierarchyFoundation+[DebugHierarchyObjectProtocolHelper debugHierarchyValueForPropertyWithName:onObject:vendingClass:outOptions:outError:] + 184
frame #3: 0x00000001cbe3d628 DebugHierarchyFoundation+[DebugHierarchyObjectInterface valueForProperty:withOutOptions:onObject:inContext:error:] + 444 frame #4: 0x00000001cbe3d1bc DebugHierarchyFoundation+[DebugHierarchyObjectInterface valueAndOptionsForProperty:onObject:inContext:] + 100
frame #5: 0x00000001cbe3c844 DebugHierarchyFoundation-[DebugHierarchyPropertyAction _fetchValuesForPropertiesWithNames:onObject:inContext:] + 336 frame #6: 0x00000001cbe3c110 DebugHierarchyFoundation-[DebugHierarchyPropertyAction performInContext:withObject:] + 736
frame #7: 0x00000001cbe3f998 DebugHierarchyFoundation+[DebugHierarchyRequestActionExecutor _executeObjectActions:withObject:inContext:] + 172 frame #8: 0x00000001cbe3f7d0 DebugHierarchyFoundation-[DebugHierarchyRequestActionExecutor executeActionsWithObject:] + 92
frame #9: 0x00000001cbe3b528 DebugHierarchyFoundation-[DebugHierarchyRequestExecutor _executeRequestActionsWithKnownObjects] + 480 frame #10: 0x00000001cbe3a00c DebugHierarchyFoundation-[DebugHierarchyRequestExecutor runWithError:] + 788
frame #11: 0x00000001cbe41670 DebugHierarchyFoundation__48-[DebugHierarchyTargetHub performRequest:error:]_block_invoke + 60 frame #12: 0x00000001cbe414ec DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequest:error:] + 340
frame #13: 0x00000001cbe41320 DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequestWithRequestInBase64:] + 140 frame #14: 0x00000001cbe416c8 DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequestInPlaceWithRequestInBase64:] + 20
frame #15: 0x000000010ff18aa8
frame #16: 0x0000000100e086b4 Classiclazy protocol witness table accessor for type FIRRemoteConfigSource and conformance FIRRemoteConfigSource at <compiler-generated>:0 frame #17: 0x0000000102cd1798 libsystem_kernel.dylibmach_msg_overwrite + 532
frame #18: 0x0000000102cc98e8 libsystem_kernel.dylibmach_msg + 20 frame #19: 0x00000001803f1754 CoreFoundation__CFRunLoopServiceMachPort + 156
frame #20: 0x00000001803ebe34 CoreFoundation__CFRunLoopRun + 1148 frame #21: 0x00000001803eb5a4 CoreFoundationCFRunLoopRunSpecific + 572
frame #22: 0x000000018e9fbae4 GraphicsServicesGSEventRunModal + 160 frame #23: 0x00000001852f02e4 UIKitCore-[UIApplication _run] + 868
frame #24: 0x00000001852f3f5c UIKitCoreUIApplicationMain + 124 frame #25: 0x0000000100e0881c Classicmain at main.swift:21:6
frame #26: 0x000000010224d544 dyld_simstart_sim + 20 frame #27: 0x0000000101c4e0e0 dyldstart + 2360
...
macOS Version 14.4.1 (Build 23E224)
Xcode 15.3 (22618) (Build 15E204a)
Timestamp: 2024-04-30T09:37:00-04:00
Same observation as Matt's above, which is once it starts using Wi-Fi, it is not switching to USB, even though Xcode explicitly asked me to connect iPhone with USB in order to enable debugging. Environment: M3 MacBook Pro, iPhone 13 Pro, both on Wi-Fi, no ethernet, no VPN, nothing fancy.
Step 1:
Connect iPhone via USB cable to Xcode, pair;
Xcode starts copying symbols. At a rate of about 3% in 3 minutes or slower. !!!
Step 2:
Turn on Airplane mode on the iPhone;
Xcode re-starts downloading symbols from scratch, but now at a rate of 100% in 3 minutes. !!!
Hope this helps.
@MyMattes
iOS (armv7, arm64)
iOS simulator (x8664, arm64)
How are you configuring your project though to pick the right archive based on the platform?
I see that there is "macOS + iOS / macOS / iOS" drop down in "Link Library With Libraries", but it has no option to pick one library for Simulator and another library for device.