@@ -17,7 +17,9 @@ public struct PrebuiltLoaderSet: LayoutWrapper {
17
17
18
18
extension PrebuiltLoaderSet {
19
19
public func loaders( in cache: DyldCache ) -> [ PrebuiltLoader ] ? {
20
- guard isLatestVersion else { return nil }
20
+ if let version, version. isPre1165_3 {
21
+ return nil
22
+ }
21
23
22
24
guard let offset = cache. fileOffset ( of: numericCast ( address) ) else {
23
25
return nil
@@ -47,7 +49,9 @@ extension PrebuiltLoaderSet {
47
49
48
50
public func loaders( in cache: DyldCacheLoaded ) -> [ PrebuiltLoader ] ? {
49
51
// swiftlint:disable:previous unused_parameter
50
- guard isLatestVersion else { return nil }
52
+ if let version, version. isPre1165_3 {
53
+ return nil
54
+ }
51
55
52
56
guard let basePointer = UnsafeRawPointer ( bitPattern: address) else {
53
57
return nil
@@ -129,8 +133,8 @@ extension PrebuiltLoaderSet {
129
133
public func dyldCacheUUID( in cache: DyldCache ) -> UUID ? {
130
134
guard layout. dyldCacheUUIDOffset != 0 ,
131
135
let offset = cache. fileOffset (
132
- of: numericCast ( address) + numericCast( layout. dyldCacheUUIDOffset)
133
- ) else {
136
+ of: numericCast ( address) + numericCast( layout. dyldCacheUUIDOffset)
137
+ ) else {
134
138
return nil
135
139
}
136
140
let data : ( UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 , UInt8 ) = cache. fileHandle. read ( offset: offset)
@@ -228,9 +232,11 @@ extension PrebuiltLoaderSet {
228
232
case v0x9a661060 = 0x9a661060
229
233
/// from dyld-1231.3
230
234
case v0x173a676e = 0x173a676e
235
+ /// from dyld-1241.17
236
+ case v0x18cf6421 = 0x18cf6421
231
237
232
238
public var isLatest : Bool {
233
- self == . v0x173a676e
239
+ self == . v0x18cf6421
234
240
}
235
241
236
242
public var isPre1165_3 : Bool {
0 commit comments