peachsim 0.1.1635 → 0.1.1641

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +10 -1
  2. package/cli/app-config.ts +14 -5
  3. package/cli/app-stubs.ts +96 -22
  4. package/cli/bridge-flow-runner.ts +2 -2
  5. package/cli/cloud-client.ts +60 -40
  6. package/cli/cloud-session.ts +16 -0
  7. package/cli/commands/assert.ts +17 -4
  8. package/cli/commands/box.ts +33 -19
  9. package/cli/commands/doctor.ts +37 -20
  10. package/cli/commands/flow.ts +1 -1
  11. package/cli/commands/inspect/actions.ts +3 -2
  12. package/cli/commands/inspect/core.ts +0 -8
  13. package/cli/commands/inspect/shared.ts +9 -4
  14. package/cli/commands/inspect.ts +65 -61
  15. package/cli/commands/platform.ts +2 -1
  16. package/cli/commands/preview.ts +1 -1
  17. package/cli/commands/record.ts +154 -68
  18. package/cli/commands/swift.ts +18 -4
  19. package/cli/commands/three-mode.ts +4 -38
  20. package/cli/commands/upload.ts +55 -49
  21. package/cli/drivers/playwright-sim-host.ts +65 -42
  22. package/cli/flow-live-status.ts +0 -2
  23. package/cli/main.ts +2 -2
  24. package/cli/outbound-endpoints.ts +7 -5
  25. package/cli/pause-aware-timeout.ts +4 -0
  26. package/cli/ws-bridge.ts +19 -16
  27. package/detox/attempt-events.cjs +99 -6
  28. package/detox/attempt-events.d.cts +7 -0
  29. package/detox/expectations.ts +7 -3
  30. package/detox/index.ts +259 -139
  31. package/detox/jest-environment.cjs +5 -1
  32. package/detox/motion-change.cjs +170 -21
  33. package/detox/motion-change.d.cts +32 -0
  34. package/detox/navigation-lifecycle.ts +35 -3
  35. package/dist-lib/agent-daemon-client.cjs +1 -1
  36. package/dist-lib/agent-events.cjs +1 -1
  37. package/dist-lib/attached-projects.cjs +1 -1
  38. package/dist-lib/auth/shared-session.cjs +1 -1
  39. package/dist-lib/backend-origin.cjs +17 -7
  40. package/dist-lib/beta.cjs +1 -1
  41. package/dist-lib/beta.mjs +1 -1
  42. package/dist-lib/bridge-constants.cjs +1 -1
  43. package/dist-lib/bridge-contract-input.cjs +1 -1
  44. package/dist-lib/bridge-contract-input.mjs +1 -1
  45. package/dist-lib/bridge-contract.cjs +1 -1
  46. package/dist-lib/bridge-contract.mjs +1 -1
  47. package/dist-lib/bundle-channel.cjs +5014 -2268
  48. package/dist-lib/capture-contract.cjs +1 -1
  49. package/dist-lib/capture-contract.mjs +1 -1
  50. package/dist-lib/cloud-contract.cjs +1 -1
  51. package/dist-lib/cloud-contract.mjs +1 -1
  52. package/dist-lib/cloud-test-args.cjs +1 -1
  53. package/dist-lib/cloud-test-args.mjs +1 -1
  54. package/dist-lib/cloud.cjs +1 -1
  55. package/dist-lib/cloud.mjs +1 -1
  56. package/dist-lib/config.cjs +1 -1
  57. package/dist-lib/config.mjs +1 -1
  58. package/dist-lib/detox/index.cjs +1036 -166
  59. package/dist-lib/detox/jest-environment.cjs +5 -1
  60. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  61. package/dist-lib/expo-swift-bundle.cjs +4613 -1963
  62. package/dist-lib/expo-swift-metadata.cjs +9 -7
  63. package/dist-lib/expo-swift-metadata.mjs +9 -7
  64. package/dist-lib/home-paths.cjs +1 -1
  65. package/dist-lib/host/bridge-host.cjs +58072 -16400
  66. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  67. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  68. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  69. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  70. package/dist-lib/host/websocket-proxy.cjs +1 -1
  71. package/dist-lib/index.cjs +2790 -143
  72. package/dist-lib/jump-to-source-babel.cjs +1 -1
  73. package/dist-lib/jump-to-source-native.cjs +1 -1
  74. package/dist-lib/kotlin-host.cjs +1 -1
  75. package/dist-lib/menu.cjs +1 -1
  76. package/dist-lib/menu.mjs +1 -1
  77. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  78. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  79. package/dist-lib/metro-production-bundle.cjs +1 -1
  80. package/dist-lib/metro-production-bundle.mjs +1 -1
  81. package/dist-lib/metro.cjs +2579 -95
  82. package/dist-lib/native-app-identity-project.cjs +243 -53
  83. package/dist-lib/native-app-identity-project.mjs +243 -53
  84. package/dist-lib/native-app-identity.cjs +29 -30
  85. package/dist-lib/native-app-identity.mjs +29 -30
  86. package/dist-lib/native-firebase-metadata.cjs +1 -1
  87. package/dist-lib/native-firebase-metadata.mjs +1 -1
  88. package/dist-lib/plist.cjs +1 -1
  89. package/dist-lib/plist.mjs +1 -1
  90. package/dist-lib/profiles.cjs +1 -1
  91. package/dist-lib/public-brand.cjs +1 -1
  92. package/dist-lib/react-native-host-modules.cjs +2 -2
  93. package/dist-lib/react-native-host-modules.mjs +2 -2
  94. package/dist-lib/scripts/dev-server-scanner.cjs +8 -6
  95. package/dist-lib/sdk.cjs +4 -3
  96. package/dist-lib/sdk.mjs +4 -3
  97. package/dist-lib/skills.cjs +66475 -23097
  98. package/dist-lib/swift-compile.cjs +452 -260
  99. package/dist-lib/swift-compile.mjs +451 -252
  100. package/dist-lib/swift-package.cjs +1 -1
  101. package/dist-lib/swift-package.mjs +1 -1
  102. package/dist-lib/swift-submit.cjs +14 -7
  103. package/dist-lib/swift-submit.mjs +14 -7
  104. package/dist-lib/swift-toolchain.cjs +316 -41
  105. package/dist-lib/swift.cjs +1 -1
  106. package/dist-lib/vite-swift.cjs +8188 -5636
  107. package/dist-lib/vite.cjs +2857 -12
  108. package/dist-lib/worklet-executable.cjs +14 -2
  109. package/dist-lib/worklet-executable.mjs +14 -2
  110. package/package.json +1 -1
  111. package/src/backend-origin.ts +21 -6
  112. package/src/expo-swift-host.ts +5 -2
  113. package/src/expoKotlinContract.ts +4 -7
  114. package/src/expoSwiftContract.ts +4 -6
  115. package/src/host/staged-host-files.ts +9 -0
  116. package/src/native-app-identity-project.ts +1 -4
  117. package/src/native-app-identity.ts +1 -4
  118. package/src/nativeAppIconContract.ts +1 -4
  119. package/src/output-lock-stdio.ts +36 -0
  120. package/src/react-native-bridge-modules.ts +106 -78
  121. package/src/react-native-host-modules.ts +4 -1
  122. package/src/settings-bundle.ts +1 -4
  123. package/src/swift-compile.ts +224 -139
  124. package/src/swift-distribution.lock.json +23 -12
  125. package/src/swift-distribution.ts +103 -4
  126. package/src/swift-host.ts +95 -30
  127. package/src/swift-icu.ts +16 -10
  128. package/src/swift-objc-compile.ts +547 -0
  129. package/src/swift-objc-metadata.ts +204 -0
  130. package/src/swift-objc-sdk.ts +883 -19
  131. package/src/swift-objc-standin.ts +126 -14
  132. package/src/swift-package-manifest.ts +42 -1
  133. package/src/swift-packages.ts +35 -21
  134. package/src/swift-root-lock.ts +153 -0
  135. package/src/swift-standin-emit.ts +40 -7
  136. package/src/swift-standins.ts +404 -138
  137. package/src/swift-submit.ts +18 -7
  138. package/src/swift-toolchain.ts +378 -46
  139. package/src/swiftContract.ts +12 -0
  140. package/src/worker-system-chunks.ts +11 -12
  141. package/src/worklet-executable.ts +19 -1
  142. package/src/xcode-project.ts +280 -33
@@ -11,6 +11,21 @@ export const IOS_SDK_TARGET = 'arm64-apple-ios16.0-simulator'
11
11
 
12
12
  /** the clang headers and module maps, by path under the sdk root. */
13
13
  export const IOS_SDK_HEADERS: Record<string, string> = {
14
+ 'usr/include/sys/xattr.h': `#pragma once
15
+ #include <sys/types.h>
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+ int setxattr(const char *path, const char *name, const void *value, size_t size, u_int32_t position, int options);
20
+ int removexattr(const char *path, const char *name, int options);
21
+ #ifdef __cplusplus
22
+ }
23
+ #endif
24
+ `,
25
+ 'usr/include/MacTypes.h': `#pragma once
26
+ enum { noErr = 0 };
27
+ enum { kNilOptions = 0 };
28
+ `,
14
29
  // darwin pointer and mach port identities used in public native headers.
15
30
  'usr/include/pthread.h': `#pragma once
16
31
  struct _opaque_pthread_t;
@@ -48,6 +63,21 @@ typedef natural_t mach_msg_type_number_t;
48
63
  #define TARGET_CPU_ARM64 1
49
64
  #define TARGET_CPU_X86_64 0
50
65
  #define TARGET_RT_64_BIT 1
66
+ `,
67
+ 'usr/include/assert.h': `#include <sys/cdefs.h>
68
+ #undef assert
69
+ #ifdef NDEBUG
70
+ #define assert(e) ((void)0)
71
+ #else
72
+ #ifdef __cplusplus
73
+ extern "C" {
74
+ #endif
75
+ void __assert_rtn(const char *, const char *, int, const char *) __attribute__((noreturn, cold, disable_tail_calls));
76
+ #ifdef __cplusplus
77
+ }
78
+ #endif
79
+ #define assert(e) (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE_NAME__, __LINE__, #e) : (void)0)
80
+ #endif
51
81
  `,
52
82
  'usr/include/stdlib.h': `#pragma once
53
83
  #include <stddef.h>
@@ -67,11 +97,57 @@ char *strdup(const char *);
67
97
  void *memcpy(void *, const void *, size_t);
68
98
  void *memset(void *, int, size_t);
69
99
  int strcmp(const char *, const char *);
100
+ `,
101
+ 'usr/include/limits.h': `#pragma once
102
+ #define LONG_MAX 0x7fffffffffffffffL
103
+ #define LONG_MIN (-LONG_MAX - 1L)
104
+ #define ULONG_MAX 0xffffffffffffffffUL
105
+ `,
106
+ 'usr/include/os/log.h': `#pragma once
107
+ #import <objc/NSObject.h>
108
+ @protocol OS_os_log <NSObject>
109
+ @end
110
+ typedef NSObject<OS_os_log> *os_log_t;
111
+ typedef uint8_t os_log_type_t;
112
+ `,
113
+ 'usr/include/dispatch/dispatch.h': `#pragma once
114
+ #include <stdint.h>
115
+ #import <objc/NSObject.h>
116
+ #define OS_OBJECT_USE_OBJC 1
117
+ @protocol OS_dispatch_queue <NSObject>
118
+ @end
119
+ typedef NSObject<OS_dispatch_queue> *dispatch_queue_t;
120
+ @protocol OS_dispatch_source <NSObject>
121
+ @end
122
+ typedef NSObject<OS_dispatch_source> *dispatch_source_t;
123
+ typedef uint64_t dispatch_time_t;
124
+ typedef void (^dispatch_block_t)(void);
125
+ typedef intptr_t dispatch_once_t __attribute__((availability(swift, unavailable, message="Use lazily initialized globals instead")));
126
+ #ifdef __cplusplus
127
+ extern "C" {
128
+ #endif
129
+ void dispatch_once(dispatch_once_t * _Nonnull predicate, __attribute__((noescape)) dispatch_block_t _Nonnull block) __attribute__((nothrow, nonnull)) __attribute__((availability(swift, unavailable, message="Use lazily initialized globals instead")));
130
+ #ifdef __cplusplus
131
+ }
132
+ #endif
133
+ @protocol OS_dispatch_queue_attr <NSObject>
134
+ @end
135
+ typedef NSObject<OS_dispatch_queue_attr> *dispatch_queue_attr_t;
136
+ `,
137
+ 'usr/include/sys/cdefs.h': `#pragma once
138
+ #define __deprecated __attribute__((__deprecated__))
139
+ #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
140
+ #define __deprecated_enum_msg(_msg) __deprecated_msg(_msg)
141
+ #define __unavailable __attribute__((__unavailable__))
70
142
  `,
71
143
  'usr/include/sys/types.h': `#pragma once
144
+ #include <sys/cdefs.h>
72
145
  #include <time.h>
73
146
  #include <stddef.h>
147
+ #include <stdint.h>
74
148
  typedef long ssize_t;
149
+ typedef uint8_t u_int8_t;
150
+ typedef uint32_t u_int32_t;
75
151
  `,
76
152
  'usr/include/time.h': `#pragma once
77
153
  typedef long time_t;
@@ -140,20 +216,39 @@ struct nlist_64 {
140
216
  }
141
217
  `,
142
218
  'usr/include/objc/NSObject.h': `#pragma once
219
+ #include <sys/types.h>
143
220
  #include <stdint.h>
144
221
  #include <stddef.h>
145
222
  #include <stdbool.h>
146
223
  #include <stdarg.h>
224
+ #if defined(__OBJC_GNUSTEP_RUNTIME_ABI__)
225
+ #include <objc/runtime.h>
226
+ #else
147
227
  typedef bool BOOL;
228
+ #endif
148
229
  #define YES ((BOOL)1)
149
230
  #define NO ((BOOL)0)
150
- #define nil ((id)0)
231
+ #if __has_feature(cxx_nullptr)
232
+ #define nil nullptr
233
+ #define Nil nullptr
234
+ #else
235
+ #define nil NULL
236
+ #define Nil NULL
237
+ #endif
151
238
  typedef long NSInteger;
152
239
  typedef unsigned long NSUInteger;
240
+ #if !defined(__OBJC_GNUSTEP_RUNTIME_ABI__)
153
241
  typedef void (*IMP)(void);
242
+ #endif
154
243
  struct _NSZone;
155
244
  @class NSString, Protocol;
245
+ #if __has_feature(objc_arc)
246
+ #define OBJC_ARC_UNAVAILABLE __attribute__((unavailable("not available in automatic reference counting mode")))
247
+ #else
248
+ #define OBJC_ARC_UNAVAILABLE
249
+ #endif
156
250
  @protocol NSObject
251
+ - (Class)class __attribute__((availability(swift, unavailable, message="use 'type(of: anObject)' instead")));
157
252
  - (BOOL)isEqual:(id)object;
158
253
  @property (readonly) NSUInteger hash;
159
254
  @property (readonly) Class superclass;
@@ -165,6 +260,8 @@ struct _NSZone;
165
260
  - (BOOL)isMemberOfClass:(Class)aClass;
166
261
  - (BOOL)conformsToProtocol:(Protocol *)aProtocol;
167
262
  - (BOOL)respondsToSelector:(SEL)aSelector;
263
+ - (oneway void)release OBJC_ARC_UNAVAILABLE;
264
+ - (instancetype)autorelease OBJC_ARC_UNAVAILABLE;
168
265
  @property (readonly, copy) NSString *description;
169
266
  @optional
170
267
  @property (readonly, copy) NSString *debugDescription;
@@ -177,7 +274,9 @@ __attribute__((objc_root_class))
177
274
  + (void)initialize;
178
275
  - (instancetype)init __attribute__((objc_designated_initializer));
179
276
  + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
277
+ + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((availability(swift, unavailable, message="use object initializers instead")));
180
278
  + (instancetype)alloc __attribute__((availability(swift, unavailable, message="use object initializers instead")));
279
+ + (Class)class __attribute__((availability(swift, unavailable, message="use 'aClass.self' instead")));
181
280
  - (id)copy;
182
281
  - (id)mutableCopy;
183
282
  + (BOOL)instancesRespondToSelector:(SEL)aSelector;
@@ -192,10 +291,335 @@ __attribute__((objc_root_class))
192
291
  @end
193
292
  `,
194
293
  'System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h': `#pragma once
195
- #import <Foundation/Foundation.h>
294
+ #include <MacTypes.h>
295
+ #import <objc/NSObject.h>
296
+ typedef unsigned char Boolean;
297
+ typedef int32_t SInt32;
298
+ typedef SInt32 OSStatus;
299
+ #define CF_ENUM_ATTRIBUTES_ __attribute__((enum_extensibility(open)))
300
+ #define __PEACH_ENUM_GET(_1, _2, NAME, ...) NAME
301
+ #define __PEACH_NAMED_ENUM(_type, _name) enum __attribute__((enum_extensibility(open))) _name : _type _name; enum _name : _type
302
+ #define __PEACH_ANON_ENUM(_type) enum __attribute__((enum_extensibility(open))) : _type
303
+ #define CF_ENUM(...) __PEACH_ENUM_GET(__VA_ARGS__, __PEACH_NAMED_ENUM, __PEACH_ANON_ENUM, )(__VA_ARGS__)
304
+ #define CF_CLOSED_ENUM(_type, _name) enum __attribute__((enum_extensibility(closed))) _name : _type _name; enum _name : _type
305
+ #define CF_OPTIONS(_type, _name) enum __attribute__((flag_enum, enum_extensibility(open))) _name : _type _name; enum _name : _type
196
306
  typedef const struct __attribute__((objc_bridge(NSString))) __CFString *CFStringRef;
307
+ @class NSDictionary, NSNumber;
308
+ typedef const __attribute__((objc_bridge(id))) void *CFTypeRef;
309
+ typedef const struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary *CFDictionaryRef;
310
+ typedef const struct __attribute__((objc_bridge(NSNumber))) __CFBoolean *CFBooleanRef;
311
+ #ifdef __cplusplus
312
+ extern "C" {
313
+ #endif
314
+ extern const CFBooleanRef kCFBooleanTrue;
315
+ #pragma clang arc_cf_code_audited begin
316
+ void CFRelease(CFTypeRef cf);
317
+ #pragma clang arc_cf_code_audited end
318
+ #ifdef __cplusplus
319
+ }
320
+ #endif
321
+ `,
322
+ 'System/Library/Frameworks/Security.framework/Headers/Security.h': `#pragma once
323
+ #include <Security/SecBase.h>
324
+ #include <Security/SecItem.h>
325
+ `,
326
+ 'System/Library/Frameworks/Security.framework/Headers/SecBase.h': `#pragma once
327
+ #include <CoreFoundation/CoreFoundation.h>
328
+ enum { errSecSuccess = 0, errSecItemNotFound = -25300 };
329
+ `,
330
+ 'System/Library/Frameworks/Security.framework/Headers/SecItem.h': `#pragma once
331
+ #include <Security/SecBase.h>
332
+ #ifdef __cplusplus
333
+ extern "C" {
334
+ #endif
335
+ #pragma clang assume_nonnull begin
336
+ #pragma clang arc_cf_code_audited begin
337
+ extern const CFStringRef kSecClass __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
338
+ extern const CFStringRef kSecClassGenericPassword __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=2.0)));
339
+ extern const CFStringRef kSecAttrAccount __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
340
+ extern const CFStringRef kSecAttrService __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
341
+ extern const CFStringRef kSecAttrAccessGroup __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=3.0)));
342
+ extern const CFStringRef kSecReturnAttributes __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
343
+ extern const CFStringRef kSecReturnData __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
344
+ extern const CFStringRef kSecValueData __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
345
+ extern const CFStringRef kSecAttrAccessible __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=4.0)));
346
+ extern const CFStringRef kSecAttrAccessibleAfterFirstUnlock __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=4.0)));
347
+ extern const CFStringRef kSecAttrLabel __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
348
+ extern const CFStringRef kSecMatchLimit __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
349
+ extern const CFStringRef kSecMatchLimitAll __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
350
+ extern const CFStringRef kSecReturnRef __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
351
+ OSStatus SecItemCopyMatching(CFDictionaryRef query, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result) __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
352
+ OSStatus SecItemAdd(CFDictionaryRef attributes, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result) __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
353
+ OSStatus SecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate) __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
354
+ OSStatus SecItemDelete(CFDictionaryRef query) __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=2.0)));
355
+ #pragma clang arc_cf_code_audited end
356
+ #pragma clang assume_nonnull end
357
+ #ifdef __cplusplus
358
+ }
359
+ #endif
360
+ `,
361
+ 'System/Library/Frameworks/CoreData.framework/Headers/CoreData.h': `#pragma once
362
+ #import <CoreData/NSManagedObjectModel.h>
363
+ #import <CoreData/NSPersistentStoreCoordinator.h>
364
+ #import <CoreData/NSManagedObjectContext.h>
365
+ #import <CoreData/NSFetchedResultsController.h>
366
+ `,
367
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h': `#pragma once
368
+ #import <Foundation/Foundation.h>
369
+ __attribute__((availability(ios,introduced=3.0)))
370
+ @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration>
371
+ @end
372
+ `,
373
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h': `#pragma once
374
+ #import <Foundation/Foundation.h>
375
+ __attribute__((availability(ios,introduced=3.0))) NS_SWIFT_SENDABLE
376
+ @interface NSPersistentStoreCoordinator : NSObject <NSLocking>
377
+ @end
378
+ `,
379
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h': `#pragma once
380
+ #import <Foundation/Foundation.h>
381
+ NS_ASSUME_NONNULL_BEGIN
382
+ __attribute__((availability(ios,introduced=3.0))) NS_SWIFT_SENDABLE
383
+ @interface NSManagedObjectID : NSObject <NSCopying>
384
+ @end
385
+ NS_ASSUME_NONNULL_END
386
+ `,
387
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h': `#pragma once
388
+ #import <Foundation/Foundation.h>
389
+ #import <CoreData/NSManagedObjectID.h>
390
+ NS_ASSUME_NONNULL_BEGIN
391
+ __attribute__((availability(ios,introduced=3.0))) NS_SWIFT_NONISOLATED NS_SWIFT_NONSENDABLE __attribute__((objc_requires_property_definitions))
392
+ @interface NSManagedObject : NSObject
393
+ @property (nonatomic, readonly, strong) NSManagedObjectID *objectID;
394
+ @property (nonatomic, getter=isFault, readonly) BOOL fault;
395
+ @end
396
+ NS_ASSUME_NONNULL_END
397
+ `,
398
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h': `#pragma once
399
+ #import <Foundation/Foundation.h>
400
+ #import <CoreData/NSManagedObject.h>
401
+ NS_ASSUME_NONNULL_BEGIN
402
+ __attribute__((availability(ios,introduced=3.0))) NS_SWIFT_NONISOLATED NS_SWIFT_SENDABLE
403
+ @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking>
404
+ - (nullable __kindof NSManagedObject *)existingObjectWithID:(NSManagedObjectID *)objectID error:(NSError **)error __attribute__((availability(ios,introduced=3.0)));
405
+ @end
406
+ NS_ASSUME_NONNULL_END
407
+ `,
408
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h': `#pragma once
409
+ #import <Foundation/Foundation.h>
410
+ __attribute__((availability(ios,introduced=5.0)))
411
+ @interface NSPersistentStoreRequest : NSObject <NSCopying>
412
+ @end
413
+ `,
414
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h': `#pragma once
415
+ #import <Foundation/Foundation.h>
416
+ #import <CoreData/NSPersistentStoreRequest.h>
417
+ #import <CoreData/NSManagedObject.h>
418
+ #import <CoreData/NSManagedObjectID.h>
419
+ NS_ASSUME_NONNULL_BEGIN
420
+ @protocol NSFetchRequestResult <NSObject>
421
+ @end
422
+ @interface NSNumber (NSFetchedResultSupport) <NSFetchRequestResult>
423
+ @end
424
+ @interface NSDictionary (NSFetchedResultSupport) <NSFetchRequestResult>
425
+ @end
426
+ @interface NSManagedObject (NSFetchedResultSupport) <NSFetchRequestResult>
427
+ @end
428
+ @interface NSManagedObjectID (NSFetchedResultSupport) <NSFetchRequestResult>
429
+ @end
430
+ __attribute__((availability(ios,introduced=3.0)))
431
+ @interface NSFetchRequest<__covariant ResultType:id<NSFetchRequestResult>> : NSPersistentStoreRequest <NSCoding, NSCopying>
432
+ @property (nullable, nonatomic, readonly, strong) NSString *entityName __attribute__((availability(ios,introduced=4.0)));
433
+ @end
434
+ NS_ASSUME_NONNULL_END
435
+ `,
436
+ 'System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h': `#pragma once
437
+ #import <Foundation/Foundation.h>
438
+ #import <CoreData/NSManagedObjectContext.h>
439
+ #import <CoreData/NSFetchRequest.h>
440
+ NS_ASSUME_NONNULL_BEGIN
441
+ @protocol NSFetchedResultsControllerDelegate;
442
+ @protocol NSFetchedResultsSectionInfo;
443
+ __attribute__((availability(ios,introduced=3.0)))
444
+ @interface NSFetchedResultsController<ResultType:id<NSFetchRequestResult>> : NSObject
445
+ - (instancetype)initWithFetchRequest:(NSFetchRequest<ResultType> *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(nullable NSString *)sectionNameKeyPath cacheName:(nullable NSString *)name;
446
+ - (BOOL)performFetch:(NSError **)error;
447
+ @property (nonatomic, readonly) NSFetchRequest<ResultType> *fetchRequest;
448
+ @property (nonatomic, readonly) NSManagedObjectContext *managedObjectContext;
449
+ @property (nullable, nonatomic, assign) id<NSFetchedResultsControllerDelegate> delegate;
450
+ @property (nullable, nonatomic, readonly) NSArray<ResultType> *fetchedObjects;
451
+ - (ResultType)objectAtIndexPath:(NSIndexPath *)indexPath;
452
+ - (nullable NSIndexPath *)indexPathForObject:(ResultType)object;
453
+ @property (nullable, nonatomic, readonly) NSArray<id<NSFetchedResultsSectionInfo>> *sections;
454
+ @end
455
+ @protocol NSFetchedResultsSectionInfo
456
+ @property (nonatomic, readonly) NSString *name;
457
+ @property (nullable, nonatomic, readonly) NSString *indexTitle;
458
+ @property (nonatomic, readonly) NSUInteger numberOfObjects;
459
+ @property (nullable, nonatomic, readonly) NSArray *objects;
460
+ @end
461
+ typedef NS_ENUM(NSUInteger, NSFetchedResultsChangeType) {
462
+ NSFetchedResultsChangeInsert = 1,
463
+ NSFetchedResultsChangeDelete = 2,
464
+ NSFetchedResultsChangeMove = 3,
465
+ NSFetchedResultsChangeUpdate = 4
466
+ } __attribute__((availability(ios,introduced=3.0)));
467
+ @protocol NSFetchedResultsControllerDelegate <NSObject>
468
+ @optional
469
+ - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(nullable NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(nullable NSIndexPath *)newIndexPath;
470
+ - (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id<NSFetchedResultsSectionInfo>)sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type;
471
+ - (void)controllerWillChangeContent:(NSFetchedResultsController *)controller;
472
+ - (void)controllerDidChangeContent:(NSFetchedResultsController *)controller;
473
+ @end
474
+ NS_ASSUME_NONNULL_END
475
+ `,
476
+ 'System/Library/Frameworks/CoreData.framework/Modules/module.modulemap': `framework module CoreData [system] {
477
+ umbrella header "CoreData.h"
478
+ export *
479
+ module * { export * }
480
+ }
481
+ `,
482
+ 'System/Library/Frameworks/Security.framework/Modules/module.modulemap': `framework module Security {
483
+ umbrella header "Security.h"
484
+ export *
485
+ module * { export * }
486
+ }
487
+ `,
488
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h': `#pragma once
489
+ @class UIImage;
490
+ #import <AVFoundation/AVAsset.h>
491
+ #import <AVFoundation/AVMetadataItem.h>
492
+ #import <AVFoundation/AVTimedMetadataGroup.h>
493
+ `,
494
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h': `#pragma once
495
+ #import <Foundation/Foundation.h>
496
+ NS_ASSUME_NONNULL_BEGIN
497
+ typedef NS_ENUM(NSInteger, AVKeyValueStatus) {
498
+ AVKeyValueStatusUnknown = 0,
499
+ AVKeyValueStatusLoading = 1,
500
+ AVKeyValueStatusLoaded = 2,
501
+ AVKeyValueStatusFailed = 3,
502
+ AVKeyValueStatusCancelled = 4
503
+ };
504
+ @protocol AVAsynchronousKeyValueLoading
505
+ - (AVKeyValueStatus)statusOfValueForKey:(NSString *)key error:(NSError * _Nullable * _Nullable)outError;
506
+ - (void)loadValuesAsynchronouslyForKeys:(NSArray<NSString *> *)keys completionHandler:(nullable void (^)(void))handler;
507
+ @end
508
+ NS_ASSUME_NONNULL_END
509
+ `,
510
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h': `#pragma once
511
+ #import <Foundation/Foundation.h>
512
+ typedef NSString * AVMetadataFormat NS_STRING_ENUM;
513
+ typedef NSString * AVMetadataKeySpace NS_EXTENSIBLE_STRING_ENUM;
514
+ typedef NSString * AVMetadataKey NS_EXTENSIBLE_STRING_ENUM;
515
+ typedef NSString * AVMetadataExtraAttributeKey NS_EXTENSIBLE_STRING_ENUM;
516
+ FOUNDATION_EXPORT AVMetadataKey const AVMetadataID3MetadataKeyAttachedPicture;
517
+ FOUNDATION_EXPORT AVMetadataKey const AVMetadataID3MetadataKeyTitleDescription;
518
+ FOUNDATION_EXPORT AVMetadataKey const AVMetadataID3MetadataKeyUserURL;
519
+ FOUNDATION_EXPORT AVMetadataKey const AVMetadataCommonKeyArtwork;
520
+ FOUNDATION_EXPORT AVMetadataKeySpace const AVMetadataKeySpaceCommon;
521
+ FOUNDATION_EXPORT AVMetadataKeySpace const AVMetadataKeySpaceID3;
522
+ FOUNDATION_EXPORT AVMetadataKeySpace const AVMetadataKeySpaceiTunes;
523
+ `,
524
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h': `#pragma once
525
+ #import <AVFoundation/AVAsynchronousKeyValueLoading.h>
526
+ #import <AVFoundation/AVMetadataFormat.h>
527
+ NS_ASSUME_NONNULL_BEGIN
528
+ @class AVMetadataItem, AVTimedMetadataGroup;
529
+ @interface AVAsset : NSObject <NSCopying, AVAsynchronousKeyValueLoading>
530
+ @property (nonatomic, readonly) NSArray<AVMetadataFormat> *availableMetadataFormats;
531
+ @property (readonly) NSArray<NSLocale *> *availableChapterLocales;
532
+ @property (nonatomic, readonly) NSArray<AVMetadataItem *> *commonMetadata;
533
+ - (NSArray<AVMetadataItem *> *)metadataForFormat:(AVMetadataFormat)format;
534
+ - (NSArray<AVTimedMetadataGroup *> *)chapterMetadataGroupsBestMatchingPreferredLanguages:(NSArray<NSString *> *)preferredLanguages;
535
+ @end
536
+ NS_SWIFT_SENDABLE
537
+ @interface AVURLAsset : AVAsset
538
+ - (instancetype)init NS_UNAVAILABLE;
539
+ + (instancetype)new NS_UNAVAILABLE;
540
+ + (instancetype)URLAssetWithURL:(NSURL *)URL options:(nullable NSDictionary<NSString *, id> *)options;
541
+ - (instancetype)initWithURL:(NSURL *)URL options:(nullable NSDictionary<NSString *, id> *)options NS_DESIGNATED_INITIALIZER;
542
+ @end
543
+ NS_ASSUME_NONNULL_END
544
+ `,
545
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h': `#pragma once
546
+ #import <AVFoundation/AVAsynchronousKeyValueLoading.h>
547
+ #import <AVFoundation/AVMetadataFormat.h>
548
+ #import <CoreMedia/CMTime.h>
549
+ NS_ASSUME_NONNULL_BEGIN
550
+ @interface AVMetadataItem : NSObject <AVAsynchronousKeyValueLoading, NSCopying, NSMutableCopying>
551
+ @property (nonatomic, readonly) CMTime time;
552
+ @property (nonatomic, readonly) CMTime duration;
553
+ @property (nonatomic, readonly, nullable) NSString *stringValue;
554
+ @property (nonatomic, readonly, nullable) NSData *dataValue;
555
+ @property (nonatomic, readonly, copy, nullable) id<NSObject, NSCopying> value;
556
+ @property (nonatomic, readonly, copy, nullable) AVMetadataKeySpace keySpace;
557
+ @property (nonatomic, readonly, copy, nullable) NSDictionary<AVMetadataExtraAttributeKey, id> *extraAttributes;
558
+ + (NSArray<AVMetadataItem *> *)metadataItemsFromArray:(NSArray<AVMetadataItem *> *)metadataItems withKey:(nullable id)key keySpace:(nullable AVMetadataKeySpace)keySpace;
559
+ @end
560
+ NS_ASSUME_NONNULL_END
561
+ `,
562
+ 'System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h': `#pragma once
563
+ #import <AVFoundation/AVMetadataItem.h>
564
+ #import <CoreMedia/CMTimeRange.h>
565
+ NS_ASSUME_NONNULL_BEGIN
566
+ @interface AVMetadataGroup : NSObject
567
+ @property (nonatomic, readonly, copy) NSArray<AVMetadataItem *> *items;
568
+ @end
569
+ @interface AVTimedMetadataGroup : AVMetadataGroup <NSCopying, NSMutableCopying>
570
+ - (instancetype)initWithItems:(NSArray<AVMetadataItem *> *)items timeRange:(CMTimeRange)timeRange;
571
+ @property (nonatomic, readonly) CMTimeRange timeRange;
572
+ @property (nonatomic, readonly, copy) NSArray<AVMetadataItem *> *items;
573
+ @end
574
+ NS_ASSUME_NONNULL_END
575
+ `,
576
+ 'System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h': `#pragma once
577
+ #import <CoreMedia/CMTime.h>
578
+ #import <CoreMedia/CMTimeRange.h>
579
+ `,
580
+ 'System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h': `#pragma once
581
+ #import <CoreFoundation/CoreFoundation.h>
582
+ #include <stdint.h>
583
+ #pragma pack(push, 4)
584
+ typedef int64_t CMTimeValue;
585
+ typedef int32_t CMTimeScale;
586
+ typedef int64_t CMTimeEpoch;
587
+ typedef CF_OPTIONS(uint32_t, CMTimeFlags) {
588
+ kCMTimeFlags_Valid = 1UL << 0,
589
+ kCMTimeFlags_HasBeenRounded = 1UL << 1,
590
+ kCMTimeFlags_PositiveInfinity = 1UL << 2,
591
+ kCMTimeFlags_NegativeInfinity = 1UL << 3,
592
+ kCMTimeFlags_Indefinite = 1UL << 4,
593
+ kCMTimeFlags_ImpliedValueFlagsMask = kCMTimeFlags_PositiveInfinity | kCMTimeFlags_NegativeInfinity | kCMTimeFlags_Indefinite
594
+ };
595
+ typedef struct {
596
+ CMTimeValue value;
597
+ CMTimeScale timescale;
598
+ CMTimeFlags flags;
599
+ CMTimeEpoch epoch;
600
+ } CMTime;
601
+ #pragma pack(pop)
602
+ #ifdef __cplusplus
603
+ extern "C" {
604
+ #endif
605
+ CMTime CMTimeMake(int64_t value, int32_t timescale);
606
+ int32_t CMTimeCompare(CMTime time1, CMTime time2);
607
+ #ifdef __cplusplus
608
+ }
609
+ #endif
610
+ #define CMTIME_COMPARE_INLINE(time1, comparator, time2) ((Boolean)(CMTimeCompare(time1, time2) comparator 0))
611
+ `,
612
+ 'System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h': `#pragma once
613
+ #import <CoreMedia/CMTime.h>
614
+ #pragma pack(push, 4)
615
+ typedef struct {
616
+ CMTime start;
617
+ CMTime duration;
618
+ } CMTimeRange;
619
+ #pragma pack(pop)
197
620
  `,
198
621
  'System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h': `#pragma once
622
+ #import <CoreFoundation/CoreFoundation.h>
199
623
  #include <stdint.h>
200
624
  #include <stdbool.h>
201
625
  #define CG_EXTERN extern
@@ -203,6 +627,70 @@ typedef const struct __attribute__((objc_bridge(NSString))) __CFString *CFString
203
627
  #define CG_EXTERN_C_BEGIN
204
628
  #define CG_EXTERN_C_END
205
629
  #define CF_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
630
+ typedef CF_ENUM (int32_t, CGBlendMode) {
631
+ kCGBlendModeNormal,
632
+ kCGBlendModeMultiply,
633
+ kCGBlendModeScreen,
634
+ kCGBlendModeOverlay,
635
+ kCGBlendModeDarken,
636
+ kCGBlendModeLighten,
637
+ kCGBlendModeColorDodge,
638
+ kCGBlendModeColorBurn,
639
+ kCGBlendModeSoftLight,
640
+ kCGBlendModeHardLight,
641
+ kCGBlendModeDifference,
642
+ kCGBlendModeExclusion,
643
+ kCGBlendModeHue,
644
+ kCGBlendModeSaturation,
645
+ kCGBlendModeColor,
646
+ kCGBlendModeLuminosity,
647
+ kCGBlendModeClear,
648
+ kCGBlendModeCopy,
649
+ kCGBlendModeSourceIn,
650
+ kCGBlendModeSourceOut,
651
+ kCGBlendModeSourceAtop,
652
+ kCGBlendModeDestinationOver,
653
+ kCGBlendModeDestinationIn,
654
+ kCGBlendModeDestinationOut,
655
+ kCGBlendModeDestinationAtop,
656
+ kCGBlendModeXOR,
657
+ kCGBlendModePlusDarker,
658
+ kCGBlendModePlusLighter
659
+ };
660
+ typedef CF_ENUM(uint32_t, CGImageComponentInfo) {
661
+ kCGImageComponentInteger = (0 << 8),
662
+ kCGImageComponentFloat = (1 << 8)
663
+ };
664
+ typedef CF_ENUM(uint32_t, CGImageByteOrderInfo) {
665
+ kCGImageByteOrderMask
666
+ = 0x7000,
667
+ kCGImageByteOrderDefault = (0 << 12),
668
+ kCGImageByteOrder16Little = (1 << 12),
669
+ kCGImageByteOrder32Little = (2 << 12),
670
+ kCGImageByteOrder16Big = (3 << 12),
671
+ kCGImageByteOrder32Big = (4 << 12),
672
+ #ifdef __BIG_ENDIAN__
673
+ kCGImageByteOrder16Host = kCGImageByteOrder16Big,
674
+ kCGImageByteOrder32Host = kCGImageByteOrder32Big
675
+ #else
676
+ kCGImageByteOrder16Host = kCGImageByteOrder16Little,
677
+ kCGImageByteOrder32Host = kCGImageByteOrder32Little
678
+ #endif
679
+ };
680
+ typedef CF_OPTIONS(uint32_t, CGBitmapInfo) {
681
+ kCGBitmapAlphaInfoMask = 0x1F,
682
+ kCGBitmapComponentInfoMask = 0xF00,
683
+ kCGBitmapByteOrderInfoMask = 0x7000,
684
+ kCGBitmapPixelFormatInfoMask = 0xF0000,
685
+ kCGBitmapFloatInfoMask = kCGBitmapComponentInfoMask,
686
+ kCGBitmapByteOrderMask = kCGBitmapByteOrderInfoMask,
687
+ kCGBitmapFloatComponents = kCGImageComponentFloat,
688
+ kCGBitmapByteOrderDefault = kCGImageByteOrderDefault,
689
+ kCGBitmapByteOrder16Little = kCGImageByteOrder16Little,
690
+ kCGBitmapByteOrder32Little = kCGImageByteOrder32Little,
691
+ kCGBitmapByteOrder16Big = kCGImageByteOrder16Big,
692
+ kCGBitmapByteOrder32Big = kCGImageByteOrder32Big
693
+ };
206
694
  typedef double CGFloat;
207
695
  struct CGPoint { CGFloat x; CGFloat y; };
208
696
  typedef struct CGPoint CGPoint;
@@ -229,12 +717,16 @@ typedef struct __attribute__((objc_bridge(id))) CGColorSpace *CGColorSpaceRef;
229
717
  #include <stdlib.h>
230
718
  #include <string.h>
231
719
  #include <time.h>
720
+ #include <limits.h>
721
+ #include <assert.h>
232
722
  #include <TargetConditionals.h>
233
723
  #import <objc/NSObject.h>
724
+ #import <dispatch/dispatch.h>
725
+ #import <CoreFoundation/CoreFoundation.h>
234
726
  #import <CoreGraphics/CoreGraphics.h>
235
727
 
236
728
  @class NSException;
237
- typedef void NSUncaughtExceptionHandler(NSException *exception);
729
+ typedef void NSUncaughtExceptionHandler(NSException * _Nonnull exception);
238
730
  #define FOUNDATION_EXPORT extern
239
731
  #define FOUNDATION_EXTERN extern
240
732
  #define FOUNDATION_STATIC_INLINE static inline
@@ -253,13 +745,6 @@ typedef void NSUncaughtExceptionHandler(NSException *exception);
253
745
  #define __BEGIN_DECLS
254
746
  #define __END_DECLS
255
747
 
256
- #define CF_ENUM_ATTRIBUTES_ __attribute__((enum_extensibility(open)))
257
- #define __PEACH_ENUM_GET(_1, _2, NAME, ...) NAME
258
- #define __PEACH_NAMED_ENUM(_type, _name) enum __attribute__((enum_extensibility(open))) _name : _type _name; enum _name : _type
259
- #define __PEACH_ANON_ENUM(_type) enum __attribute__((enum_extensibility(open))) : _type
260
- #define CF_ENUM(...) __PEACH_ENUM_GET(__VA_ARGS__, __PEACH_NAMED_ENUM, __PEACH_ANON_ENUM, )(__VA_ARGS__)
261
- #define CF_CLOSED_ENUM(_type, _name) enum __attribute__((enum_extensibility(closed))) _name : _type _name; enum _name : _type
262
- #define CF_OPTIONS(_type, _name) enum __attribute__((flag_enum, enum_extensibility(open))) _name : _type _name; enum _name : _type
263
748
  #define NS_ENUM(...) CF_ENUM(__VA_ARGS__)
264
749
  #define NS_CLOSED_ENUM(_type, _name) CF_CLOSED_ENUM(_type, _name)
265
750
  #define NS_OPTIONS(_type, _name) CF_OPTIONS(_type, _name)
@@ -359,7 +844,6 @@ typedef void NSUncaughtExceptionHandler(NSException *exception);
359
844
  #define OBJC_AVAILABLE(...)
360
845
  #define OBJC_DEPRECATED(...)
361
846
  #define OBJC_SWIFT_UNAVAILABLE(_msg) __attribute__((availability(swift, unavailable, message=_msg)))
362
- #define OBJC_ARC_UNAVAILABLE
363
847
  #define CF_AVAILABLE(...)
364
848
  #define CF_AVAILABLE_IOS(...)
365
849
  #define CF_DEPRECATED(...)
@@ -380,15 +864,28 @@ NS_ASSUME_NONNULL_BEGIN
380
864
  typedef double NSTimeInterval NS_SWIFT_NAME(TimeInterval);
381
865
  typedef uint16_t unichar;
382
866
  typedef NSUInteger NSStringEncoding;
867
+ NS_ENUM(NSStringEncoding) {
868
+ NSASCIIStringEncoding = 1,
869
+ NSUTF8StringEncoding = 4,
870
+ NSUnicodeStringEncoding = 10,
871
+ NSUTF16StringEncoding = NSUnicodeStringEncoding,
872
+ NSUTF16BigEndianStringEncoding = 0x90000100
873
+ };
383
874
  typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange;
384
875
  typedef NSRange *NSRangePointer;
876
+ NS_INLINE NSRange NSMakeRange(NSUInteger loc, NSUInteger len) {
877
+ NSRange r;
878
+ r.location = loc;
879
+ r.length = len;
880
+ return r;
881
+ }
385
882
  typedef NS_ENUM(NSInteger, NSComparisonResult) { NSOrderedAscending = -1L, NSOrderedSame, NSOrderedDescending } NS_SWIFT_NAME(ComparisonResult);
386
883
  typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
387
884
  typedef NS_OPTIONS(NSUInteger, NSEnumerationOptions) { NSEnumerationConcurrent = (1UL << 0), NSEnumerationReverse = (1UL << 1) };
388
885
  typedef NS_OPTIONS(NSUInteger, NSSortOptions) { NSSortConcurrent = (1UL << 0), NSSortStable = (1UL << 4) };
389
886
  typedef NS_ENUM(NSInteger, NSQualityOfService) { NSQualityOfServiceUserInteractive = 0x21, NSQualityOfServiceUserInitiated = 0x19, NSQualityOfServiceUtility = 0x11, NSQualityOfServiceBackground = 0x09, NSQualityOfServiceDefault = -1 } NS_SWIFT_NAME(QualityOfService);
390
887
 
391
- @class NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSError, NSURL, NSData, NSCoder, NSSet<ObjectType>;
888
+ @class NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSError, NSURL, NSData, NSCoder, NSSet<ObjectType>, NSEnumerator<ObjectType>;
392
889
 
393
890
  @protocol NSCopying
394
891
  - (id)copyWithZone:(nullable struct _NSZone *)zone;
@@ -411,11 +908,33 @@ typedef struct { unsigned long state; id __unsafe_unretained _Nullable * _Nullab
411
908
  __attribute__((swift_bridge("Swift.String")))
412
909
  @interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
413
910
  @property (readonly) NSUInteger length;
911
+ @property (readonly) NSInteger integerValue;
912
+ @property (readonly) const char *fileSystemRepresentation NS_RETURNS_INNER_POINTER;
913
+ @property (nullable, readonly) const char *UTF8String NS_RETURNS_INNER_POINTER;
914
+ @property (nullable, readonly, copy) NSString *stringByRemovingPercentEncoding;
414
915
  - (unichar)characterAtIndex:(NSUInteger)index;
916
+ - (BOOL)isEqualToString:(NSString *)aString;
917
+ - (BOOL)containsString:(NSString *)str;
918
+ @property (readonly, copy) NSString *lowercaseString;
919
+ - (NSString *)stringByAppendingString:(NSString *)aString;
920
+ - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement;
921
+ - (instancetype)initWithString:(NSString *)aString NS_FORMAT_ARGUMENT(1);
922
+ - (instancetype)initWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
923
+ + (instancetype)stringWithString:(NSString *)string NS_FORMAT_ARGUMENT(1);
924
+ - (NSArray<NSString *> *)componentsSeparatedByString:(NSString *)separator;
925
+ - (NSString *)stringByAppendingPathComponent:(NSString *)str;
926
+ - (nullable instancetype)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding;
927
+ - (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding;
928
+ - (nullable instancetype)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding;
929
+ + (nullable instancetype)stringWithUTF8String:(const char *)nullTerminatedCString NS_FORMAT_ARGUMENT(1);
930
+ + (instancetype)stringWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
415
931
  - (instancetype)init NS_DESIGNATED_INITIALIZER;
416
932
  - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
417
933
  @end
418
934
  @interface NSMutableString : NSString
935
+ - (void)appendString:(NSString *)aString;
936
+ - (void)appendFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
937
+ + (NSMutableString *)stringWithCapacity:(NSUInteger)capacity;
419
938
  @end
420
939
  @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
421
940
  @property (readonly, copy) NSString *string;
@@ -427,34 +946,103 @@ typedef NSString *NSAttributedStringKey NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(N
427
946
  __attribute__((swift_bridge("Swift.Array")))
428
947
  @interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
429
948
  @property (readonly) NSUInteger count;
949
+ @property (nullable, nonatomic, readonly) ObjectType firstObject;
430
950
  - (ObjectType)objectAtIndex:(NSUInteger)index;
951
+ - (NSString *)componentsJoinedByString:(NSString *)separator;
952
+ - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx;
953
+ - (BOOL)containsObject:(ObjectType)anObject;
954
+ - (NSArray<ObjectType> *)subarrayWithRange:(NSRange)range;
955
+ - (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator NS_NOESCAPE)cmptr;
956
+ - (NSEnumerator<ObjectType> *)objectEnumerator;
957
+ - (instancetype)initWithObjects:(ObjectType)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
958
+ + (instancetype)array;
959
+ + (instancetype)arrayWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt;
960
+ + (instancetype)arrayWithArray:(NSArray<ObjectType> *)array;
431
961
  @end
432
962
  @interface NSMutableArray<ObjectType> : NSArray<ObjectType>
963
+ - (instancetype)initWithCapacity:(NSUInteger)numItems NS_DESIGNATED_INITIALIZER;
964
+ - (void)addObject:(ObjectType)anObject;
965
+ - (void)addObjectsFromArray:(NSArray<ObjectType> *)otherArray;
433
966
  @end
434
967
  __attribute__((swift_bridge("Swift.Dictionary")))
435
968
  @interface NSDictionary<__covariant KeyType, __covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
436
969
  @property (readonly) NSUInteger count;
970
+ - (nullable ObjectType)objectForKey:(KeyType)aKey;
971
+ - (nullable ObjectType)objectForKeyedSubscript:(KeyType)key;
972
+ - (unsigned long long)fileSize;
973
+ @property (readonly, copy) NSArray<KeyType> *allKeys;
974
+ - (NSEnumerator<KeyType> *)keyEnumerator;
975
+ - (NSEnumerator<ObjectType> *)objectEnumerator;
976
+ - (NSArray<ObjectType> *)objectsForKeys:(NSArray<KeyType> *)keys notFoundMarker:(ObjectType)marker;
977
+ - (void)enumerateKeysAndObjectsUsingBlock:(void (NS_NOESCAPE ^)(KeyType key, ObjectType obj, BOOL *stop))block;
978
+ + (instancetype)dictionary;
979
+ + (instancetype)dictionaryWithDictionary:(NSDictionary<KeyType, ObjectType> *)dict;
980
+ - (instancetype)initWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
981
+ + (instancetype)dictionaryWithObject:(ObjectType)object forKey:(KeyType <NSCopying>)key;
982
+ + (instancetype)dictionaryWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt;
983
+ + (instancetype)dictionaryWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
437
984
  @end
438
985
  @interface NSMutableDictionary<KeyType, ObjectType> : NSDictionary<KeyType, ObjectType>
986
+ - (instancetype)initWithCapacity:(NSUInteger)numItems NS_DESIGNATED_INITIALIZER;
987
+ + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
988
+ - (void)setObject:(ObjectType)anObject forKey:(KeyType <NSCopying>)aKey;
989
+ - (void)setObject:(nullable ObjectType)obj forKeyedSubscript:(KeyType <NSCopying>)key;
990
+ - (void)removeAllObjects;
439
991
  @end
440
992
  __attribute__((swift_bridge("Swift.Set")))
441
993
  @interface NSSet<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
442
994
  @property (readonly) NSUInteger count;
995
+ + (instancetype)set;
996
+ - (nullable ObjectType)anyObject;
997
+ - (void)makeObjectsPerformSelector:(SEL)aSelector NS_SWIFT_UNAVAILABLE("Use enumerateObjectsUsingBlock: or a for loop instead");
998
+ - (NSSet<ObjectType> *)objectsPassingTest:(BOOL (NS_NOESCAPE ^)(ObjectType obj, BOOL *stop))predicate;
443
999
  @end
444
1000
  @interface NSMutableSet<ObjectType> : NSSet<ObjectType>
1001
+ - (void)addObject:(ObjectType)object;
1002
+ - (void)removeObject:(ObjectType)object;
445
1003
  @end
446
1004
  @interface NSOrderedSet<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
447
1005
  @end
448
1006
  @interface NSMutableOrderedSet<ObjectType> : NSOrderedSet<ObjectType>
449
1007
  @end
450
1008
  @interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
1009
+ - (nullable ObjectType)nextObject;
451
1010
  @end
452
1011
  @interface NSValue : NSObject <NSCopying, NSSecureCoding>
1012
+ @property (readonly) const char *objCType NS_RETURNS_INNER_POINTER;
1013
+ @property (nullable, readonly) void *pointerValue;
1014
+ + (NSValue *)valueWithNonretainedObject:(nullable id)anObject;
453
1015
  @end
454
1016
  @interface NSNumber : NSValue
455
1017
  @property (readonly) BOOL boolValue;
456
1018
  @property (readonly) NSInteger integerValue;
457
1019
  @property (readonly) double doubleValue;
1020
+ @property (readonly) char charValue;
1021
+ @property (readonly) unsigned char unsignedCharValue;
1022
+ @property (readonly) short shortValue;
1023
+ @property (readonly) unsigned short unsignedShortValue;
1024
+ @property (readonly) int intValue;
1025
+ @property (readonly) unsigned int unsignedIntValue;
1026
+ @property (readonly) long longValue;
1027
+ @property (readonly) unsigned long unsignedLongValue;
1028
+ @property (readonly) long long longLongValue;
1029
+ @property (readonly) unsigned long long unsignedLongLongValue;
1030
+ @property (readonly) float floatValue;
1031
+ + (NSNumber *)numberWithChar:(char)value;
1032
+ + (NSNumber *)numberWithUnsignedChar:(unsigned char)value;
1033
+ + (NSNumber *)numberWithShort:(short)value;
1034
+ + (NSNumber *)numberWithUnsignedShort:(unsigned short)value;
1035
+ + (NSNumber *)numberWithInt:(int)value;
1036
+ + (NSNumber *)numberWithUnsignedInt:(unsigned int)value;
1037
+ + (NSNumber *)numberWithLong:(long)value;
1038
+ + (NSNumber *)numberWithUnsignedLong:(unsigned long)value;
1039
+ + (NSNumber *)numberWithLongLong:(long long)value;
1040
+ + (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value;
1041
+ + (NSNumber *)numberWithFloat:(float)value;
1042
+ + (NSNumber *)numberWithDouble:(double)value;
1043
+ + (NSNumber *)numberWithBool:(BOOL)value;
1044
+ + (NSNumber *)numberWithInteger:(NSInteger)value;
1045
+ + (NSNumber *)numberWithUnsignedInteger:(NSUInteger)value;
458
1046
  @end
459
1047
  __attribute__((swift_bridge("Decimal")))
460
1048
  @interface NSDecimalNumber : NSNumber
@@ -462,15 +1050,47 @@ __attribute__((swift_bridge("Decimal")))
462
1050
  @interface NSNull : NSObject <NSCopying, NSSecureCoding>
463
1051
  + (NSNull *)null;
464
1052
  @end
1053
+ typedef NS_OPTIONS(NSUInteger, NSDataReadingOptions) {
1054
+ NSDataReadingMappedIfSafe = 1UL << 0,
1055
+ NSDataReadingUncached = 1UL << 1,
1056
+ NSDataReadingMappedAlways = 1UL << 3,
1057
+ NSDataReadingMapped = NSDataReadingMappedIfSafe,
1058
+ NSMappedRead = NSDataReadingMapped,
1059
+ NSUncachedRead = NSDataReadingUncached
1060
+ };
1061
+ typedef NS_OPTIONS(NSUInteger, NSDataWritingOptions) {
1062
+ NSDataWritingAtomic = 1UL << 0,
1063
+ NSDataWritingWithoutOverwriting = 1UL << 1,
1064
+ NSDataWritingFileProtectionNone = 0x10000000,
1065
+ NSDataWritingFileProtectionComplete = 0x20000000,
1066
+ NSDataWritingFileProtectionCompleteUnlessOpen = 0x30000000,
1067
+ NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = 0x40000000,
1068
+ NSDataWritingFileProtectionCompleteWhenUserInactive = 0x50000000,
1069
+ NSDataWritingFileProtectionMask = 0xf0000000,
1070
+ NSAtomicWrite = NSDataWritingAtomic
1071
+ };
1072
+ typedef NS_OPTIONS(NSUInteger, NSDataSearchOptions) {
1073
+ NSDataSearchBackwards = 1UL << 0,
1074
+ NSDataSearchAnchored = 1UL << 1
1075
+ };
465
1076
  __attribute__((swift_bridge("Data")))
466
1077
  @interface NSData : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
467
1078
  @property (readonly) NSUInteger length;
1079
+ @property (readonly) const void *bytes NS_RETURNS_INNER_POINTER;
1080
+ + (instancetype)dataWithBytes:(nullable const void *)bytes length:(NSUInteger)length;
1081
+ + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
1082
+ - (NSData *)subdataWithRange:(NSRange)range;
1083
+ - (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange;
468
1084
  @end
469
1085
  @interface NSMutableData : NSData
1086
+ - (void)appendBytes:(const void *)bytes length:(NSUInteger)length;
470
1087
  @end
471
1088
  __attribute__((swift_bridge("Date")))
472
1089
  @interface NSDate : NSObject <NSCopying, NSSecureCoding>
473
1090
  @property (readonly) NSTimeInterval timeIntervalSinceReferenceDate;
1091
+ @property (readonly) NSTimeInterval timeIntervalSince1970;
1092
+ @property (class, readonly) NSTimeInterval timeIntervalSinceReferenceDate;
1093
+ + (instancetype)dateWithTimeIntervalSince1970:(NSTimeInterval)secs;
474
1094
  @end
475
1095
  __attribute__((swift_bridge("DateComponents")))
476
1096
  @interface NSDateComponents : NSObject <NSCopying, NSSecureCoding>
@@ -480,6 +1100,11 @@ __attribute__((swift_bridge("DateInterval")))
480
1100
  @end
481
1101
  __attribute__((swift_bridge("URL")))
482
1102
  @interface NSURL : NSObject <NSCopying, NSSecureCoding>
1103
+ @property (nullable, readonly, copy) NSString *path;
1104
+ @property (nullable, readonly, copy) NSString *scheme;
1105
+ @property (nullable, readonly, copy) NSString *host;
1106
+ + (nullable instancetype)URLWithString:(NSString * _Nonnull)URLString;
1107
+ + (NSURL *)fileURLWithPath:(NSString *)path;
483
1108
  @end
484
1109
  __attribute__((swift_bridge("URLComponents")))
485
1110
  @interface NSURLComponents : NSObject <NSCopying>
@@ -489,6 +1114,7 @@ __attribute__((swift_bridge("URLQueryItem")))
489
1114
  @end
490
1115
  __attribute__((swift_bridge("URLRequest")))
491
1116
  @interface NSURLRequest : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
1117
+ + (instancetype _Nonnull)requestWithURL:(NSURL * _Nonnull)URL;
492
1118
  @end
493
1119
  @interface NSMutableURLRequest : NSURLRequest
494
1120
  @end
@@ -498,13 +1124,35 @@ NS_SWIFT_NAME(URLResponse)
498
1124
  NS_SWIFT_NAME(HTTPURLResponse)
499
1125
  @interface NSHTTPURLResponse : NSURLResponse
500
1126
  @end
1127
+ NS_SWIFT_NAME(URLSessionDelegate)
1128
+ @protocol NSURLSessionDelegate <NSObject>
1129
+ @end
1130
+ NS_SWIFT_NAME(URLSessionTaskDelegate)
1131
+ @protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
1132
+ @end
1133
+ NS_SWIFT_NAME(URLSessionDataDelegate)
1134
+ @protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate>
1135
+ @end
1136
+ @class NSURLSessionDataTask;
501
1137
  NS_SWIFT_NAME(URLSession)
1138
+ NS_SWIFT_SENDABLE
1139
+ __attribute__((availability(ios,introduced=7.0)))
502
1140
  @interface NSURLSession : NSObject
1141
+ @property (class, readonly, strong) NSURLSession * _Nonnull sharedSession;
1142
+ - (NSURLSessionDataTask * _Nonnull)dataTaskWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (NS_SWIFT_SENDABLE ^ _Nonnull)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
503
1143
  @end
504
1144
  NS_SWIFT_NAME(URLSessionTask)
1145
+ NS_SWIFT_SENDABLE
1146
+ __attribute__((availability(ios,introduced=7.0)))
505
1147
  @interface NSURLSessionTask : NSObject <NSCopying>
1148
+ - (void)resume;
1149
+ @end
1150
+ NS_SWIFT_NAME(URLSessionTaskMetrics)
1151
+ @interface NSURLSessionTaskMetrics : NSObject
506
1152
  @end
507
1153
  NS_SWIFT_NAME(URLSessionDataTask)
1154
+ NS_SWIFT_SENDABLE
1155
+ __attribute__((availability(ios,introduced=7.0)))
508
1156
  @interface NSURLSessionDataTask : NSURLSessionTask
509
1157
  @end
510
1158
  NS_SWIFT_NAME(URLSessionConfiguration)
@@ -529,9 +1177,13 @@ __attribute__((swift_bridge("CharacterSet")))
529
1177
  @end
530
1178
  __attribute__((swift_bridge("Locale")))
531
1179
  @interface NSLocale : NSObject <NSCopying, NSSecureCoding>
1180
+ @property (readonly, copy) NSString *localeIdentifier;
1181
+ - (instancetype)initWithLocaleIdentifier:(NSString *)string NS_DESIGNATED_INITIALIZER;
1182
+ @property (class, readonly, copy) NSArray<NSString *> *preferredLanguages;
532
1183
  @end
533
1184
  __attribute__((swift_bridge("TimeZone")))
534
1185
  @interface NSTimeZone : NSObject <NSCopying, NSSecureCoding>
1186
+ + (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds;
535
1187
  @end
536
1188
  __attribute__((swift_bridge("Calendar")))
537
1189
  @interface NSCalendar : NSObject <NSCopying, NSSecureCoding>
@@ -545,16 +1197,39 @@ NS_SWIFT_NAME(NotificationCenter)
545
1197
  @property (class, readonly, strong) NSNotificationCenter *defaultCenter;
546
1198
  @end
547
1199
  typedef NSString *NSErrorDomain;
548
- typedef NSString *NSErrorUserInfoKey NS_TYPED_EXTENSIBLE_ENUM;
1200
+ typedef NSString *NSFileAttributeKey NS_TYPED_EXTENSIBLE_ENUM;
1201
+ typedef NSString *NSFileProtectionType NS_TYPED_EXTENSIBLE_ENUM;
1202
+ typedef NSString *NSErrorUserInfoKey;
1203
+ FOUNDATION_EXPORT NSErrorDomain const NSCocoaErrorDomain;
1204
+ FOUNDATION_EXPORT NSErrorUserInfoKey const NSLocalizedDescriptionKey;
549
1205
  __attribute__((swift_bridge("Swift.Error")))
550
1206
  @interface NSError : NSObject <NSCopying, NSSecureCoding>
1207
+ + (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict;
1208
+ - (instancetype)initWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict NS_DESIGNATED_INITIALIZER;
551
1209
  @property (readonly, copy) NSErrorDomain domain;
552
1210
  @property (readonly) NSInteger code;
553
1211
  @property (readonly, copy) NSDictionary<NSErrorUserInfoKey, id> *userInfo;
554
1212
  @end
1213
+ typedef NSString *NSExceptionName NS_TYPED_EXTENSIBLE_ENUM;
555
1214
  @interface NSException : NSObject <NSCopying, NSSecureCoding>
1215
+ @property (readonly, copy) NSExceptionName name;
1216
+ @property (nullable, readonly, copy) NSDictionary *userInfo;
1217
+ @end
1218
+ @interface NSAssertionHandler : NSObject
1219
+ @property (class, readonly, strong) NSAssertionHandler *currentHandler;
1220
+ - (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format, ... NS_FORMAT_FUNCTION(5,6);
1221
+ @end
1222
+ #if !defined(NS_BLOCK_ASSERTIONS)
1223
+ #define __PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \\"-Wformat-extra-args\\"")
1224
+ #define __PRAGMA_POP_NO_EXTRA_ARG_WARNINGS _Pragma("clang diagnostic pop")
1225
+ #define NSAssert(condition, desc, ...) do { __PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS if (__builtin_expect(!(condition), 0)) { [[NSAssertionHandler currentHandler] handleFailureInMethod:_cmd object:self file:@(__FILE_NAME__) lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; } __PRAGMA_POP_NO_EXTRA_ARG_WARNINGS } while (0)
1226
+ #else
1227
+ #define NSAssert(condition, desc, ...) do {} while (0)
1228
+ #endif
1229
+ #define NSParameterAssert(condition) NSAssert((condition), @"Invalid parameter not satisfying: %@", @#condition)
1230
+ @interface NSObject (NSKeyValueCoding)
1231
+ - (void)setValue:(nullable id)value forKey:(NSString *)key;
556
1232
  @end
557
- typedef NSString *NSExceptionName NS_TYPED_EXTENSIBLE_ENUM;
558
1233
  NS_SWIFT_NAME(Bundle)
559
1234
  @interface NSBundle : NSObject
560
1235
  @property (class, readonly, strong) NSBundle *mainBundle;
@@ -584,6 +1259,9 @@ NS_SWIFT_NAME(Timer)
584
1259
  @end
585
1260
  NS_SWIFT_NAME(FileManager)
586
1261
  @interface NSFileManager : NSObject
1262
+ @property (class, readonly, strong) NSFileManager *defaultManager;
1263
+ - (nullable NSArray<NSString *> *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error;
1264
+ - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error;
587
1265
  @end
588
1266
  NS_SWIFT_NAME(ProcessInfo)
589
1267
  @interface NSProcessInfo : NSObject
@@ -593,26 +1271,52 @@ NS_SWIFT_NAME(ProcessInfo)
593
1271
  NS_SWIFT_NAME(NSKeyedArchiver)
594
1272
  @interface NSKeyedArchiver : NSCoder
595
1273
  @end
1274
+ NS_SWIFT_NAME(Stream)
1275
+ @interface NSStream : NSObject
1276
+ - (void)open;
1277
+ - (void)close;
1278
+ @end
596
1279
  NS_SWIFT_NAME(InputStream)
597
- @interface NSInputStream : NSObject
1280
+ @interface NSInputStream : NSStream
1281
+ + (nullable instancetype)inputStreamWithData:(NSData *)data;
1282
+ - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len;
598
1283
  @end
599
1284
  NS_SWIFT_NAME(OutputStream)
600
- @interface NSOutputStream : NSObject
1285
+ @interface NSOutputStream : NSStream
601
1286
  @end
602
1287
  NS_SWIFT_NAME(DateFormatter)
603
1288
  @interface NSDateFormatter : NSObject
1289
+ @property (null_resettable, copy) NSString *dateFormat;
1290
+ @property (null_resettable, copy) NSLocale *locale;
1291
+ @property (null_resettable, copy) NSTimeZone *timeZone;
1292
+ - (NSString *)stringFromDate:(NSDate *)date;
1293
+ - (nullable NSDate *)dateFromString:(NSString *)string;
604
1294
  @end
605
1295
  NS_SWIFT_NAME(NumberFormatter)
606
1296
  @interface NSNumberFormatter : NSObject
607
1297
  @end
1298
+ typedef NS_OPTIONS(NSUInteger, NSJSONReadingOptions) {
1299
+ NSJSONReadingMutableContainers = (1UL << 0),
1300
+ NSJSONReadingMutableLeaves = (1UL << 1),
1301
+ NSJSONReadingFragmentsAllowed = (1UL << 2),
1302
+ NSJSONReadingJSON5Allowed __attribute__((availability(ios,introduced=15.0))) = (1UL << 3),
1303
+ NSJSONReadingTopLevelDictionaryAssumed __attribute__((availability(ios,introduced=15.0))) = (1UL << 4),
1304
+ NSJSONReadingAllowFragments __attribute__((availability(ios,introduced=5.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) = NSJSONReadingFragmentsAllowed
1305
+ } __attribute__((availability(ios,introduced=5.0)));
608
1306
  NS_SWIFT_NAME(JSONSerialization)
1307
+ __attribute__((availability(ios,introduced=5.0)))
609
1308
  @interface NSJSONSerialization : NSObject
1309
+ + (nullable id)JSONObjectWithData:(NSData * _Nonnull)data options:(NSJSONReadingOptions)opt error:(NSError * _Nullable * _Nullable)error;
610
1310
  @end
611
1311
  @interface NSPredicate : NSObject <NSSecureCoding, NSCopying>
612
1312
  @end
613
1313
  @interface NSSortDescriptor : NSObject <NSSecureCoding, NSCopying>
614
1314
  @end
615
- @interface NSLock : NSObject
1315
+ @protocol NSLocking
1316
+ - (void)lock NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
1317
+ - (void)unlock NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
1318
+ @end
1319
+ @interface NSLock : NSObject <NSLocking>
616
1320
  @end
617
1321
  @interface NSCache<KeyType, ObjectType> : NSObject
618
1322
  @end
@@ -637,27 +1341,102 @@ FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
637
1341
  FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2) NS_SWIFT_UNAVAILABLE("Use print or os_log");
638
1342
 
639
1343
  NS_ASSUME_NONNULL_END
1344
+ `,
1345
+ 'System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h': `#pragma once
1346
+ #import <Foundation/Foundation.h>
1347
+ @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
1348
+ @end
1349
+ `,
1350
+ 'System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h': `#pragma once
1351
+ #import <Foundation/Foundation.h>
1352
+ @interface CIFilter : NSObject <NSSecureCoding, NSCopying>
1353
+ @end
1354
+ `,
1355
+ 'System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h': `#pragma once
1356
+ #import <Foundation/Foundation.h>
1357
+ typedef CF_CLOSED_ENUM(uint32_t, CGImagePropertyOrientation) {
1358
+ kCGImagePropertyOrientationUp = 1,
1359
+ kCGImagePropertyOrientationUpMirrored,
1360
+ kCGImagePropertyOrientationDown,
1361
+ kCGImagePropertyOrientationDownMirrored,
1362
+ kCGImagePropertyOrientationLeftMirrored,
1363
+ kCGImagePropertyOrientationRight,
1364
+ kCGImagePropertyOrientationRightMirrored,
1365
+ kCGImagePropertyOrientationLeft
1366
+ };
1367
+ `,
1368
+ 'System/Library/Frameworks/UIKit.framework/Headers/UIColor.h': `#pragma once
1369
+ #import <UIKit/UIKit.h>
1370
+ `,
1371
+ 'System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h': `#pragma once
1372
+ #import <Foundation/Foundation.h>
1373
+ #define UI_APPEARANCE_SELECTOR __attribute__((annotate("ui_appearance_selector")))
1374
+ NS_SWIFT_UI_ACTOR @protocol UIAppearance <NSObject>
1375
+ @end
640
1376
  `,
641
1377
  'System/Library/Frameworks/UIKit.framework/Headers/UIKit.h': `#pragma once
642
1378
  #import <Foundation/Foundation.h>
1379
+ #import <UIKit/UIAppearance.h>
1380
+ #import <QuartzCore/QuartzCore.h>
1381
+ #import <CoreImage/CoreImage.h>
643
1382
  #define UIKIT_EXTERN extern
644
1383
  #define UIKIT_STATIC_INLINE static inline
645
1384
  #define UIKIT_AVAILABLE_TVOS_ONLY(...)
646
1385
  #define UIKIT_SWIFT_FORWARD_DECLARE(...)
647
1386
  NS_ASSUME_NONNULL_BEGIN
1387
+ typedef NS_OPTIONS(NSUInteger, UIRectCorner) {
1388
+ UIRectCornerTopLeft = 1 << 0,
1389
+ UIRectCornerTopRight = 1 << 1,
1390
+ UIRectCornerBottomLeft = 1 << 2,
1391
+ UIRectCornerBottomRight = 1 << 3,
1392
+ UIRectCornerAllCorners = ~0UL
1393
+ };
1394
+ typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) {
1395
+ UIViewAnimationOptionLayoutSubviews = 1 << 0,
1396
+ UIViewAnimationOptionAllowUserInteraction = 1 << 1,
1397
+ UIViewAnimationOptionBeginFromCurrentState = 1 << 2,
1398
+ UIViewAnimationOptionRepeat = 1 << 3,
1399
+ UIViewAnimationOptionAutoreverse = 1 << 4,
1400
+ UIViewAnimationOptionOverrideInheritedDuration = 1 << 5,
1401
+ UIViewAnimationOptionOverrideInheritedCurve = 1 << 6,
1402
+ UIViewAnimationOptionAllowAnimatedContent = 1 << 7,
1403
+ UIViewAnimationOptionShowHideTransitionViews = 1 << 8,
1404
+ UIViewAnimationOptionOverrideInheritedOptions = 1 << 9,
1405
+ UIViewAnimationOptionCurveEaseInOut = 0 << 16,
1406
+ UIViewAnimationOptionCurveEaseIn = 1 << 16,
1407
+ UIViewAnimationOptionCurveEaseOut = 2 << 16,
1408
+ UIViewAnimationOptionCurveLinear = 3 << 16,
1409
+ UIViewAnimationOptionTransitionNone = 0 << 20,
1410
+ UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20,
1411
+ UIViewAnimationOptionTransitionFlipFromRight = 2 << 20,
1412
+ UIViewAnimationOptionTransitionCurlUp = 3 << 20,
1413
+ UIViewAnimationOptionTransitionCurlDown = 4 << 20,
1414
+ UIViewAnimationOptionTransitionCrossDissolve = 5 << 20,
1415
+ UIViewAnimationOptionTransitionFlipFromTop = 6 << 20,
1416
+ UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20,
1417
+ UIViewAnimationOptionPreferredFramesPerSecondDefault = 0 << 24,
1418
+ UIViewAnimationOptionPreferredFramesPerSecond60 = 3 << 24,
1419
+ UIViewAnimationOptionPreferredFramesPerSecond30 = 7 << 24,
1420
+ UIViewAnimationOptionFlushUpdates = 1 << 28,
1421
+ } NS_SWIFT_NAME(UIView.AnimationOptions);
648
1422
  typedef struct UIEdgeInsets { CGFloat top, left, bottom, right; } UIEdgeInsets;
649
1423
  typedef struct NSDirectionalEdgeInsets { CGFloat top, leading, bottom, trailing; } NSDirectionalEdgeInsets;
650
1424
  typedef struct UIOffset { CGFloat horizontal, vertical; } UIOffset;
1425
+ typedef NS_ENUM(NSInteger, UIImageOrientation) { UIImageOrientationUp, UIImageOrientationDown, UIImageOrientationLeft, UIImageOrientationRight, UIImageOrientationUpMirrored, UIImageOrientationDownMirrored, UIImageOrientationLeftMirrored, UIImageOrientationRightMirrored } NS_SWIFT_NAME(UIImage.Orientation);
651
1426
  typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill } NS_SWIFT_NAME(UIView.ContentMode);
652
1427
  typedef NS_OPTIONS(NSUInteger, UIControlState) { UIControlStateNormal = 0, UIControlStateHighlighted = 1 << 0, UIControlStateDisabled = 1 << 1, UIControlStateSelected = 1 << 2 } NS_SWIFT_NAME(UIControl.State);
653
1428
  typedef NS_OPTIONS(NSUInteger, UIControlEvents) { UIControlEventTouchDown = 1 << 0, UIControlEventTouchUpInside = 1 << 6, UIControlEventValueChanged = 1 << 12, UIControlEventPrimaryActionTriggered = 1 << 13 } NS_SWIFT_NAME(UIControl.Event);
1429
+ typedef NS_ENUM(NSInteger, UITableViewCellEditingStyle) { UITableViewCellEditingStyleNone, UITableViewCellEditingStyleDelete, UITableViewCellEditingStyleInsert } __attribute__((availability(watchos,unavailable)));
1430
+ typedef NS_ENUM(NSInteger, UITableViewRowAnimation) { UITableViewRowAnimationFade, UITableViewRowAnimationRight, UITableViewRowAnimationLeft, UITableViewRowAnimationTop, UITableViewRowAnimationBottom, UITableViewRowAnimationNone, UITableViewRowAnimationMiddle, UITableViewRowAnimationAutomatic = 100 };
654
1431
  typedef NS_ENUM(NSInteger, UIStatusBarStyle) { UIStatusBarStyleDefault = 0, UIStatusBarStyleLightContent = 1, UIStatusBarStyleDarkContent = 3 };
655
1432
  typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) { UIInterfaceOrientationMaskPortrait = 1 << 1, UIInterfaceOrientationMaskLandscapeLeft = 1 << 4, UIInterfaceOrientationMaskLandscapeRight = 1 << 3, UIInterfaceOrientationMaskAll = 30 };
656
1433
  typedef NS_ENUM(NSInteger, UIInterfaceOrientation) { UIInterfaceOrientationUnknown = 0, UIInterfaceOrientationPortrait = 1, UIInterfaceOrientationPortraitUpsideDown = 2, UIInterfaceOrientationLandscapeLeft = 4, UIInterfaceOrientationLandscapeRight = 3 };
657
1434
  typedef NS_ENUM(NSInteger, UIModalPresentationStyle) { UIModalPresentationFullScreen = 0, UIModalPresentationPageSheet = 1, UIModalPresentationFormSheet = 2, UIModalPresentationOverFullScreen = 5, UIModalPresentationAutomatic = -2 };
658
1435
  typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) { UIUserInterfaceStyleUnspecified, UIUserInterfaceStyleLight, UIUserInterfaceStyleDark };
659
- @class UIView, UIViewController, UIWindow, UIColor, UIImage, UIFont, UIEvent, UITouch, UIScreen, UIWindowScene, UIGestureRecognizer;
660
- NS_SWIFT_UI_ACTOR @protocol UIAppearance <NSObject>
1436
+ @class UIView, UIViewController, UIWindow, UIColor, UIImage, UIFont, UIEvent, UITouch, UIPress, UIScreen, UIWindowScene, UIGestureRecognizer, UITableViewCell;
1437
+ @interface UIGraphicsRendererFormat : NSObject <NSCopying>
1438
+ @end
1439
+ @interface UIGraphicsImageRendererFormat : UIGraphicsRendererFormat
661
1440
  @end
662
1441
  NS_SWIFT_UI_ACTOR @protocol UICoordinateSpace <NSObject>
663
1442
  @end
@@ -705,12 +1484,70 @@ NS_SWIFT_UI_ACTOR @interface UIButton : UIControl
705
1484
  @end
706
1485
  NS_SWIFT_UI_ACTOR @interface UILabel : UIView
707
1486
  @end
1487
+ NS_SWIFT_UI_ACTOR @interface UIProgressView : UIView <NSCoding>
1488
+ @end
708
1489
  NS_SWIFT_UI_ACTOR @interface UIImageView : UIView
709
1490
  @end
710
1491
  NS_SWIFT_UI_ACTOR @interface UIScrollView : UIView
711
1492
  @end
712
1493
  NS_SWIFT_UI_ACTOR @interface UITableView : UIScrollView
713
1494
  @end
1495
+ @class UISwipeActionsConfiguration, UIContextMenuConfiguration;
1496
+ __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR
1497
+ @protocol UIScrollViewDelegate <NSObject>
1498
+ @optional
1499
+ - (void)scrollViewDidScroll:(UIScrollView *)scrollView;
1500
+ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView;
1501
+ - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset __attribute__((availability(ios,introduced=5.0)));
1502
+ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;
1503
+ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
1504
+ @end
1505
+ __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR
1506
+ @protocol UITableViewDelegate <NSObject, UIScrollViewDelegate>
1507
+ @optional
1508
+ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
1509
+ - (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0)));
1510
+ - (void)tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0)));
1511
+ - (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0)));
1512
+ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
1513
+ - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
1514
+ - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
1515
+ - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=7.0)));
1516
+ - (nullable UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
1517
+ - (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
1518
+ - (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0)));
1519
+ - (nullable NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath;
1520
+ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
1521
+ - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
1522
+ - (nullable NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=3.0), availability(tvos,unavailable)));
1523
+ - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=11.0), availability(watchos,unavailable), availability(tvos,unavailable)));
1524
+ - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=11.0), availability(watchos,unavailable), availability(tvos,unavailable)));
1525
+ - (nullable UIContextMenuConfiguration *)tableView:(UITableView *)tableView contextMenuConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point __attribute__((availability(ios,introduced=13.0), availability(tvos,introduced=17.0), availability(watchos,unavailable)));
1526
+ @end
1527
+ __attribute__((availability(watchos,unavailable))) NS_SWIFT_UI_ACTOR
1528
+ @protocol UITableViewDataSource <NSObject>
1529
+ @required
1530
+ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
1531
+ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
1532
+ @optional
1533
+ - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
1534
+ - (nullable NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;
1535
+ - (nullable NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section;
1536
+ - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
1537
+ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
1538
+ @end
1539
+ NS_SWIFT_UI_ACTOR @protocol UIGestureRecognizerDelegate <NSObject>
1540
+ @optional
1541
+ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer;
1542
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
1543
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0)));
1544
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0)));
1545
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
1546
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceivePress:(UIPress *)press;
1547
+ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveEvent:(UIEvent *)event __attribute__((availability(ios,introduced=13.4), availability(tvos,introduced=13.4)));
1548
+ @end
1549
+ __attribute__((availability(ios,introduced=2.0))) NS_SWIFT_UI_ACTOR @interface UITableViewCell : UIView <NSCoding, UIGestureRecognizerDelegate>
1550
+ @end
714
1551
  NS_SWIFT_UI_ACTOR @interface UICollectionView : UIScrollView
715
1552
  @end
716
1553
  NS_SWIFT_UI_ACTOR @interface UITextField : UIControl
@@ -743,13 +1580,25 @@ NS_SWIFT_UI_ACTOR @interface UITouch : NSObject
743
1580
  + (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
744
1581
  @end
745
1582
  @interface UIImage : NSObject <NSSecureCoding>
1583
+ @property (nonatomic, readonly) CGSize size;
746
1584
  + (nullable UIImage *)imageNamed:(NSString *)name;
1585
+ + (nullable UIImage *)imageWithData:(NSData *)data;
747
1586
  @end
748
1587
  @interface UIFont : NSObject <NSCopying, NSSecureCoding>
749
1588
  @end
750
1589
  @interface UIBezierPath : NSObject <NSCopying, NSSecureCoding>
751
1590
  @end
752
1591
  NS_ASSUME_NONNULL_END
1592
+ `,
1593
+ 'System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap': `framework module AVFoundation [system] {
1594
+ umbrella header "AVFoundation.h"
1595
+ export *
1596
+ }
1597
+ `,
1598
+ 'System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap': `framework module CoreMedia [system] {
1599
+ umbrella header "CoreMedia.h"
1600
+ export *
1601
+ }
753
1602
  `,
754
1603
  'System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap': `framework module CoreGraphics [system] {
755
1604
  umbrella header "CoreGraphics.h"
@@ -760,6 +1609,21 @@ NS_ASSUME_NONNULL_END
760
1609
  umbrella header "Foundation.h"
761
1610
  export *
762
1611
  }
1612
+ `,
1613
+ 'System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap': `framework module QuartzCore [system] {
1614
+ umbrella header "QuartzCore.h"
1615
+ export *
1616
+ }
1617
+ `,
1618
+ 'System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap': `framework module CoreImage [system] {
1619
+ umbrella header "CoreImage.h"
1620
+ export *
1621
+ }
1622
+ `,
1623
+ 'System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap': `framework module ImageIO [system] {
1624
+ umbrella header "ImageIO.h"
1625
+ export *
1626
+ }
763
1627
  `,
764
1628
  'System/Library/Frameworks/UIKit.framework/Modules/module.modulemap': `framework module UIKit [system] {
765
1629
  umbrella header "UIKit.h"