ITADN

Bug Report: Fail to dump Swift interface for some frameworks

#83OpenLessica 创建于 2026-05-02
bug
L
Lessicacommented
## Steps to reproduce 1. Download iOS 15.4 firmware `19E241__iPhone11,2_4_6_iPhone12,3_5` and extract its dyld shared cache with `ipsw` 2. Build `swift-section` and run following command: ``` $ swift-section --dyld-shared-cache '19E241__iPhone11,2_4_6_iPhone12,3_5/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e' -p /System/Library/PrivateFrameworks/SnippetUI.framework/SnippetUI ``` ``` $ swift-section interface --dyld-shared-cache '19E241__iPhone11,2_4_6_iPhone12,3_5/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm64e' -p /System/Library/PrivateFrameworks/SnippetUI.framework/SnippetUI Preparing to build Swift interface... [21:36:30] [INFO] Extracted 161 Swift types [21:36:30] [INFO] Extracted 3 Swift protocols [21:36:30] [INFO] Extracted 251 protocol conformances [21:36:30] [INFO] Extracted 192 associated types [21:36:30] [INFO] Extracted 883 symbol index [21:36:30] [INFO] Types: 153 successful, 0 failed, 8 C-imported skipped, 26 nested, 8 in extensions [21:36:30] [INFO] Protocols: 3 successful, 0 failed [21:36:30] [INFO] Conformances: 251 extensions, 0 failed [21:36:30] [INFO] Extensions: 16 type, 6 protocol, 0 typealias, 0 failed [21:36:30] [SUCCESS] Indexing completed [21:36:30] [SUCCESS] Preparation completed [21:36:30] [INFO] Found 6 modules to import [21:36:30] [SUCCESS] Preparation completed Building Swift interface... ``` ## Symptoms `swift-section` freezes halfway through output and stops, with no further output. CPU usage remains consistently at 100%. ## Environment ``` $ uname -a Darwin AnyMac.local 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:51:28 PST 2026; root:xnu-12377.91.3~2/RELEASE_ARM64_T6041 arm64 ```
1 条评论