-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Attempting to dump the UIKitCore binary in Xcode 14 beta 1 leads to a crash. The same command used against the latest version of Xcode 13 outputs successfully.
Been a while since I've used this tool so I can't say for sure it's not a problem with my particular incantation. But I tried minimizing the options I was using, and couldn't get anything working.
➜ dsdump_beta ./dsdump --objc -a arm64 --verbose=5 /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore --defined > ~/Desktop/UIKitCore.txt
2022-06-12 16:26:44.286 dsdump[51927:10158746] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x00000001b1bcd198 __exceptionPreprocess + 240
1 libobjc.A.dylib 0x00000001b1917e04 objc_exception_throw + 60
2 CoreFoundation 0x00000001b1c9f16c -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x00000001b1b38bd4 -[__NSArrayM objectAtIndexedSubscript:] + 188
4 dsdump 0x0000000104b2787c __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke_2 + 748
5 dsdump 0x0000000104b31ef4 _ZNK5dyld311MachOLoaded9walkChainER11DiagnosticsPNS0_25ChainedFixupPointerOnDiskEtbjU13block_pointerFvS4_RbE + 96
6 dsdump 0x0000000104b32148 _ZNK5dyld311MachOLoaded27forEachFixupInSegmentChainsER11DiagnosticsPK30dyld_chained_starts_in_segmentbU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskES5_RbE + 180
7 dsdump 0x0000000104b31d78 _ZNK5dyld311MachOLoaded23forEachFixupInAllChainsER11DiagnosticsPK28dyld_chained_starts_in_imagebU13block_pointerFvPNS0_25ChainedFixupPointerOnDiskEPK30dyld_chained_starts_in_segmentRbE + 92
8 dsdump 0x0000000104b27560 __53-[XRMachOLibrary(Opcode) printChainDetails:callback:]_block_invoke + 124
9 dsdump 0x0000000104b400a4 _ZNK5dyld313MachOAnalyzer15withChainStartsER11DiagnosticsyU13block_pointerFvPK28dyld_chained_starts_in_imageE + 140
10 dsdump 0x0000000104b27400 -[XRMachOLibrary(Opcode) printChainDetails:callback:] + 284
11 dsdump 0x0000000104b1ddb0 -[XRMachOLibrary handleLoadCommand:] + 368
12 dsdump 0x0000000104b33a40 _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 160
13 dsdump 0x0000000104b1d6a0 -[XRMachOLibrary initWithPath:] + 956
14 dsdump 0x0000000104b2a954 main + 1588
15 dyld 0x00000001053d108c start + 520
)
libc++abi: terminating with uncaught exception of type NSException
Metadata
Metadata
Assignees
Labels
No labels