peachsim 0.1.1684 → 0.1.1692

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 (254) hide show
  1. package/cli/commands/coverage-swift.ts +72 -5
  2. package/cli/commands/inspect/actions.ts +1 -0
  3. package/cli/commands/screenshot.ts +12 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +2252 -1462
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +1762 -995
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +2184 -1417
  34. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +175 -69
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +174 -68
  50. package/dist-lib/native-app-identity-project.cjs +163 -51
  51. package/dist-lib/native-app-identity-project.mjs +206 -82
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +26 -23
  61. package/dist-lib/public-origins-lib.json +74 -61
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +2 -2
  67. package/dist-lib/sdk.mjs +2 -2
  68. package/dist-lib/skills.cjs +2633 -1840
  69. package/dist-lib/swift-compile.cjs +2478 -100
  70. package/dist-lib/swift-compile.mjs +2475 -100
  71. package/dist-lib/swift-package.cjs +108 -50
  72. package/dist-lib/swift-package.mjs +104 -50
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +3979 -985
  78. package/dist-lib/vite.cjs +12 -18
  79. package/dist-lib/worklet-executable.cjs +7 -4
  80. package/dist-lib/worklet-executable.mjs +7 -4
  81. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
  82. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
  83. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  84. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
  85. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  86. package/package.json +1 -1
  87. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +9 -0
  88. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
  89. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
  90. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
  91. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
  92. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
  93. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
  94. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
  95. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
  96. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
  97. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
  98. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
  99. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
  100. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
  101. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
  102. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
  103. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
  104. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
  105. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
  106. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
  107. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
  108. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
  109. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
  110. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
  111. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
  112. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
  113. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
  114. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
  115. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
  116. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
  118. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +96 -2
  119. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
  120. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
  121. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
  122. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
  123. package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
  124. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
  125. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
  126. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
  127. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
  128. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
  129. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
  130. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
  131. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
  132. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
  133. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
  134. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
  135. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
  136. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
  137. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
  138. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
  139. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
  140. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
  141. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
  142. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
  143. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
  144. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
  145. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
  146. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
  147. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
  148. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
  149. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
  150. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
  151. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
  152. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
  153. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
  154. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
  155. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
  156. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
  157. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
  158. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
  159. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
  160. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
  161. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
  162. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
  163. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
  164. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
  165. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
  166. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
  167. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
  168. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
  169. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
  170. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
  171. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
  172. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
  173. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
  174. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
  175. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
  176. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
  177. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
  178. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
  179. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
  180. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
  181. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
  182. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
  183. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
  184. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
  185. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
  186. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
  187. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
  188. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
  189. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
  190. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
  191. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
  192. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
  193. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
  194. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
  195. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
  196. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
  197. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
  198. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
  199. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
  200. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
  201. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
  203. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
  204. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
  205. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
  206. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
  207. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
  208. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
  209. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
  210. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
  211. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
  212. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
  213. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
  214. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
  215. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
  216. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
  217. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
  218. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
  219. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
  220. package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
  221. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
  222. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
  223. package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
  224. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
  225. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
  226. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
  227. package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
  228. package/sdk/ios/usr/include/complex.h +167 -0
  229. package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
  230. package/sdk/ios/usr/include/mach/mach_types.h +1 -0
  231. package/sdk/ios/usr/include/math.h +835 -2
  232. package/sdk/ios/usr/include/sys/cdefs.h +0 -1
  233. package/src/generated/swift-c-predefines.json +1988 -0
  234. package/src/nitro-bundle.ts +1 -0
  235. package/src/nitro-compile.ts +4 -0
  236. package/src/nitroContract.ts +18 -2
  237. package/src/swift-compile.ts +446 -49
  238. package/src/swift-coverage/package.ts +3 -1
  239. package/src/swift-coverage/xcode-assets.ts +62 -2
  240. package/src/swift-coverage/xcode-packages.ts +11 -6
  241. package/src/swift-host.ts +333 -57
  242. package/src/swift-objc-compile.ts +20 -5
  243. package/src/swift-objc-standin.ts +21 -11
  244. package/src/swift-package-manifest.ts +151 -28
  245. package/src/swift-package.ts +134 -58
  246. package/src/swift-packages.ts +141 -44
  247. package/src/swift-source-file.ts +10 -15
  248. package/src/swift-standins.ts +87 -13
  249. package/src/swift-submit.ts +5 -0
  250. package/src/swiftContract.ts +160 -75
  251. package/src/target-matcher.ts +15 -2
  252. package/src/worklet-executable.ts +7 -3
  253. package/src/xcode-json-project.ts +14 -2
  254. package/src/xcode-project.ts +154 -59
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1534,7 +1534,7 @@ function parseOpenStepPlist(text2) {
1534
1534
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1535
1535
  var NEVER_MEMBER = /(?:^|\/)(?:Info\.plist|[^/]+\.entitlements|[^/]+\.xcconfig|\.DS_Store)$/;
1536
1536
  var BUNDLE_DIR = /\.(xcassets|bundle|lproj|xcdatamodeld|scnassets|spriteatlas|rcproject|storyboardc|icon)$/;
1537
- function xcodePathResolver(objects, projectDir, join) {
1537
+ function xcodePathResolver(objects, projectDir, join2) {
1538
1538
  const parents = /* @__PURE__ */ new Map();
1539
1539
  for (const [id, entry] of Object.entries(objects)) {
1540
1540
  if (!isDict(entry)) continue;
@@ -1552,11 +1552,11 @@ function xcodePathResolver(objects, projectDir, join) {
1552
1552
  const own = str(entry.path) ?? "";
1553
1553
  const tree = str(entry.sourceTree) ?? "<group>";
1554
1554
  if (tree === "<absolute>") result = own;
1555
- else if (tree === "SOURCE_ROOT") result = join(projectDir, own);
1555
+ else if (tree === "SOURCE_ROOT") result = join2(projectDir, own);
1556
1556
  else if (tree === "<group>") {
1557
1557
  const parent = parents.get(id);
1558
1558
  const base = parent ? resolve(parent) : projectDir;
1559
- if (base !== null) result = join(base, own);
1559
+ if (base !== null) result = join2(base, own);
1560
1560
  }
1561
1561
  }
1562
1562
  paths.set(id, result);
@@ -1564,7 +1564,7 @@ function xcodePathResolver(objects, projectDir, join) {
1564
1564
  };
1565
1565
  return resolve;
1566
1566
  }
1567
- function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder, join, visit) {
1567
+ function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder, join2, visit) {
1568
1568
  const target = objects[targetId];
1569
1569
  if (!isDict(target)) return;
1570
1570
  for (const phaseId of list(target.buildPhases)) {
@@ -1597,23 +1597,23 @@ function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder, joi
1597
1597
  for (const exceptionId of list(group.exceptions)) {
1598
1598
  const exception = objects[exceptionId];
1599
1599
  if (!isDict(exception) || exception.target !== targetId) continue;
1600
- for (const relative of list(exception.membershipExceptions))
1601
- exceptions.add(relative);
1600
+ for (const relative2 of list(exception.membershipExceptions))
1601
+ exceptions.add(relative2);
1602
1602
  }
1603
- const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative) => filesUnder(join(folder, relative)));
1603
+ const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative2) => filesUnder(join2(folder, relative2)));
1604
1604
  for (const file of members) {
1605
- const relative = file.slice(prefix.length);
1605
+ const relative2 = file.slice(prefix.length);
1606
1606
  const excepted = [...exceptions].some(
1607
- (exception) => relative === exception || relative.startsWith(`${exception}/`)
1607
+ (exception) => relative2 === exception || relative2.startsWith(`${exception}/`)
1608
1608
  );
1609
- if (owned.has(groupId) === excepted || NEVER_MEMBER.test(relative)) continue;
1609
+ if (owned.has(groupId) === excepted || NEVER_MEMBER.test(relative2)) continue;
1610
1610
  if (file.endsWith(".swift")) {
1611
- if (!relative.split("/").some((segment) => BUNDLE_DIR.test(segment)))
1611
+ if (!relative2.split("/").some((segment) => BUNDLE_DIR.test(segment)))
1612
1612
  visit(file, "source");
1613
1613
  } else if (/\.(h|hh|hpp|hxx|pch)$/.test(file)) {
1614
1614
  visit(
1615
1615
  file,
1616
- relative.split("/").some((segment) => BUNDLE_DIR.test(segment)) ? "resource" : "header"
1616
+ relative2.split("/").some((segment) => BUNDLE_DIR.test(segment)) ? "resource" : "header"
1617
1617
  );
1618
1618
  } else if (/\.(m|mm|c|cc|cpp|cxx|metal)$/.test(file)) {
1619
1619
  visit(file, "source");
@@ -1976,7 +1976,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1976
1976
  if (resourceUri) {
1977
1977
  if (!selectedTarget)
1978
1978
  throw new Error("native app icon target membership is unresolved");
1979
- const join = (base, own) => {
1979
+ const join2 = (base, own) => {
1980
1980
  const segments = [];
1981
1981
  for (const segment of `${base}/${own}`.split("/")) {
1982
1982
  if (segment === "" || segment === ".") continue;
@@ -1989,7 +1989,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1989
1989
  const project = Object.values(objects).find(
1990
1990
  (object) => isRecord(object) && object.isa === "PBXProject"
1991
1991
  );
1992
- const projectDir = join(
1992
+ const projectDir = join2(
1993
1993
  pbxprojPath.replace(/(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/, ""),
1994
1994
  isRecord(project) && typeof project.projectDirPath === "string" ? project.projectDirPath : ""
1995
1995
  );
@@ -1997,7 +1997,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1997
1997
  visitXcodeTargetMembers(
1998
1998
  objects,
1999
1999
  selectedTarget.id,
2000
- xcodePathResolver(objects, projectDir, join),
2000
+ xcodePathResolver(objects, projectDir, join2),
2001
2001
  (file) => {
2002
2002
  if (Object.hasOwn(files, file)) return [file];
2003
2003
  const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
@@ -2005,7 +2005,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2005
2005
  (path4) => path4.startsWith(prefix) && !/(?:^|\/)\./.test(path4.slice(prefix.length))
2006
2006
  );
2007
2007
  },
2008
- join,
2008
+ join2,
2009
2009
  (file, kind) => {
2010
2010
  if (kind === "resource") resources.add(file);
2011
2011
  }
@@ -2106,12 +2106,74 @@ function parsePlistSource(source) {
2106
2106
 
2107
2107
  // src/xcode-project.ts
2108
2108
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2109
- import { execFileSync } from "node:child_process";
2110
- import { createHash } from "node:crypto";
2109
+ import { execFileSync as execFileSync2 } from "node:child_process";
2110
+ import { createHash as createHash2 } from "node:crypto";
2111
2111
  import fs from "node:fs";
2112
2112
  import path2 from "node:path";
2113
2113
  import plist2 from "plist";
2114
2114
 
2115
+ // src/swift-coverage/xcode-assets.ts
2116
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2117
+ import { execFileSync } from "node:child_process";
2118
+ import { createHash } from "node:crypto";
2119
+ import {
2120
+ mkdirSync,
2121
+ mkdtempSync,
2122
+ readFileSync,
2123
+ readdirSync,
2124
+ rmSync,
2125
+ statSync
2126
+ } from "node:fs";
2127
+ import { tmpdir } from "node:os";
2128
+ import { join, relative, sep } from "node:path";
2129
+ var assetSymbolSettingKeys = [
2130
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
2131
+ "ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
2132
+ "PRODUCT_BUNDLE_IDENTIFIER",
2133
+ "TARGETED_DEVICE_FAMILY",
2134
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
2135
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
2136
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
2137
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_BACKWARDS_DEPLOYMENT_SUPPORT",
2138
+ "ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOLS_PATH",
2139
+ "ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
2140
+ "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
2141
+ "ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
2142
+ "ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE",
2143
+ "ASSETCATALOG_OTHER_FLAGS"
2144
+ ];
2145
+ var unprovenAssetSettings = assetSymbolSettingKeys.slice(4);
2146
+
2147
+ // src/swift-package.ts
2148
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2149
+ var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
2150
+ ".c",
2151
+ ".cc",
2152
+ ".cpp",
2153
+ ".cxx",
2154
+ ".m",
2155
+ ".mm"
2156
+ ];
2157
+ function isSwiftNativeTranslationUnit(file) {
2158
+ return SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS.some(
2159
+ (extension) => file.endsWith(extension)
2160
+ );
2161
+ }
2162
+ var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
2163
+ ...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
2164
+ ".h",
2165
+ ".hh",
2166
+ ".hpp",
2167
+ ".hxx",
2168
+ ".pch",
2169
+ ".inc",
2170
+ ".inl",
2171
+ ".modulemap"
2172
+ ];
2173
+ function moduleMapName(text2) {
2174
+ return /(?:^|\s)module\s+(\w+)/.exec(text2)?.[1];
2175
+ }
2176
+
2115
2177
  // src/xcode-json-project.ts
2116
2178
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2117
2179
  var import_json5 = __toESM(require_lib(), 1);
@@ -2263,12 +2325,18 @@ function readXcodeJsonProject(xcodeproj, source) {
2263
2325
  isa: "XCConfigurationList",
2264
2326
  defaultConfigurationName: text(json["default-configuration"]) ?? "Debug",
2265
2327
  buildConfigurations: configurations.map(({ name, file }) => {
2266
- const base = lookup(specialized.has(name) ? specialized.get(name) : file);
2328
+ const reference = specialized.has(name) ? specialized.get(name) : file;
2329
+ const base = lookup(reference);
2330
+ const anchor = isObject(reference) ? lookupNode(reference.anchor, root)?.id : null;
2331
+ const relative2 = isObject(reference) ? text(reference["relative-path"]) : null;
2267
2332
  return add({
2268
2333
  isa: "XCBuildConfiguration",
2269
2334
  name,
2270
2335
  buildSettings: settings,
2271
- ...base ? { baseConfigurationReference: base } : {}
2336
+ ...base ? { baseConfigurationReference: base } : anchor && relative2 ? {
2337
+ baseConfigurationReferenceAnchor: anchor,
2338
+ baseConfigurationReferenceRelativePath: relative2
2339
+ } : {}
2272
2340
  });
2273
2341
  })
2274
2342
  });
@@ -2447,6 +2515,7 @@ function isJsonObject(value) {
2447
2515
  }
2448
2516
 
2449
2517
  // src/xcode-project.ts
2518
+ var XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET = "27.0";
2450
2519
  var APPLICATION = "com.apple.product-type.application";
2451
2520
  var FRAMEWORK_PRODUCTS = /* @__PURE__ */ new Set([
2452
2521
  "com.apple.product-type.framework",
@@ -2577,7 +2646,7 @@ function loadProject(xcodeproj) {
2577
2646
  if (!projectFile)
2578
2647
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
2579
2648
  const source = fs.readFileSync(projectFile, "utf8");
2580
- const digest = createHash("sha256").update(source).digest("hex");
2649
+ const digest = createHash2("sha256").update(source).digest("hex");
2581
2650
  const cached = loaded.get(projectFile);
2582
2651
  if (cached?.digest === digest) return cached.project;
2583
2652
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -2627,13 +2696,13 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
2627
2696
  const name = str(config.name) ?? configuration;
2628
2697
  const base = str(config.baseConfigurationReference);
2629
2698
  const anchor = str(config.baseConfigurationReferenceAnchor);
2630
- const relative = str(config.baseConfigurationReferenceRelativePath);
2699
+ const relative2 = str(config.baseConfigurationReferenceRelativePath);
2631
2700
  const own = isDict(config.buildSettings) ? config.buildSettings : {};
2632
2701
  const directory = anchor ? project.resolvePath(anchor) : null;
2633
- const baseFile = base ? project.resolvePath(base) : directory && relative ? path2.resolve(directory, relative) : null;
2634
- if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !fs.existsSync(baseFile)))
2702
+ const baseFile = base ? project.resolvePath(base) : directory && relative2 ? path2.resolve(directory, relative2) : null;
2703
+ if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !fs.existsSync(baseFile)))
2635
2704
  throw new Error(
2636
- `Unable to open base configuration reference file '${baseFile ?? base ?? relative ?? anchor}'`
2705
+ `Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
2637
2706
  );
2638
2707
  const read = [];
2639
2708
  const fromFile = baseFile ? readXcconfig(baseFile, read) : {};
@@ -2667,34 +2736,34 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
2667
2736
  resolving.add(marker);
2668
2737
  const value = expand(
2669
2738
  levels[at][key],
2670
- (name) => name === "inherited" ? valueAt(key, at - 1) : valueAt(name, levels.length - 1)
2739
+ (name) => name === "inherited" || name === key ? valueAt(key, at - 1) : valueAt(name, levels.length - 1)
2671
2740
  );
2672
2741
  resolving.delete(marker);
2673
2742
  return value;
2674
2743
  };
2744
+ const derivedSettings = {
2745
+ PRODUCT_NAME: () => get("TARGET_NAME"),
2746
+ PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
2747
+ EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
2748
+ // the native default of CoreBuildSystem.xcspec
2749
+ EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES: () => "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
2750
+ };
2751
+ const get = (key) => valueAt(key, levels.length - 1);
2752
+ const teamPrefix = () => {
2753
+ const team = get("DEVELOPMENT_TEAM");
2754
+ return get("CODE_SIGNING_ALLOWED") !== "NO" && team ? `${team}.` : "";
2755
+ };
2675
2756
  const derived = (key) => {
2676
- const get = (name) => valueAt(name, levels.length - 1);
2677
- switch (key) {
2678
- case "PRODUCT_NAME":
2679
- return get("TARGET_NAME");
2680
- case "PRODUCT_MODULE_NAME":
2681
- return applyOperator(get("PRODUCT_NAME"), "c99extidentifier");
2682
- case "EXECUTABLE_NAME":
2683
- return get("PRODUCT_NAME");
2684
- // the native default of CoreBuildSystem.xcspec
2685
- case "EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES":
2686
- return "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj";
2687
- case "AppIdentifierPrefix":
2688
- case "TeamIdentifierPrefix": {
2689
- const team = get("DEVELOPMENT_TEAM");
2690
- return get("CODE_SIGNING_ALLOWED") !== "NO" && team ? `${team}.` : "";
2691
- }
2692
- }
2693
- return "";
2757
+ if (key === "AppIdentifierPrefix" || key === "TeamIdentifierPrefix")
2758
+ return teamPrefix();
2759
+ return Object.hasOwn(derivedSettings, key) ? derivedSettings[key]() : process.env[key] ?? "";
2694
2760
  };
2695
2761
  return {
2696
- get: (key) => valueAt(key, levels.length - 1),
2697
- keys: new Set(levels.flatMap((values) => Object.keys(values))),
2762
+ get,
2763
+ keys: /* @__PURE__ */ new Set([
2764
+ ...Object.keys(derivedSettings),
2765
+ ...levels.flatMap((values) => Object.keys(values))
2766
+ ]),
2698
2767
  xcconfigs
2699
2768
  };
2700
2769
  }
@@ -2768,6 +2837,9 @@ function expand(value, lookup) {
2768
2837
  );
2769
2838
  }
2770
2839
  var preparedSourcePhases = /* @__PURE__ */ new Map();
2840
+ function fileListEntries(file, absolute) {
2841
+ return fs.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
2842
+ }
2771
2843
  function targetMembers(ref, settings, options, settingKeys, projectInputs) {
2772
2844
  const { project, target, id: targetId } = ref;
2773
2845
  const targetName = str(target.name) ?? targetId;
@@ -2792,8 +2864,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
2792
2864
  if (!fs.existsSync(file)) {
2793
2865
  return { file, entries: [] };
2794
2866
  }
2795
- const entries = fs.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
2796
- return { file, entries };
2867
+ return { file, entries: fileListEntries(file, absolute) };
2797
2868
  });
2798
2869
  fileLists.set(kind, lists);
2799
2870
  }
@@ -2841,7 +2912,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
2841
2912
  );
2842
2913
  });
2843
2914
  }
2844
- const signature = createHash("sha256").update(
2915
+ const signature = createHash2("sha256").update(
2845
2916
  JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
2846
2917
  );
2847
2918
  for (const file of inputFiles) {
@@ -2858,6 +2929,8 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
2858
2929
  fs.mkdirSync(phaseDir, { recursive: true });
2859
2930
  fs.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
2860
2931
  fs.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
2932
+ for (const output of allOutputs)
2933
+ fs.mkdirSync(path2.dirname(output), { recursive: true });
2861
2934
  for (const [kind, lists] of fileLists)
2862
2935
  lists.forEach((item, index) => {
2863
2936
  fs.writeFileSync(
@@ -2867,7 +2940,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
2867
2940
  );
2868
2941
  });
2869
2942
  try {
2870
- execFileSync(
2943
+ execFileSync2(
2871
2944
  str(phase.shellPath) ?? "/bin/sh",
2872
2945
  ["-c", str(phase.shellScript) ?? ""],
2873
2946
  {
@@ -3017,12 +3090,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
3017
3090
  return { listed, projects, projectAt, cocoapods };
3018
3091
  }
3019
3092
  var targetRefs = /* @__PURE__ */ new WeakMap();
3020
- function nativeTargets(project) {
3093
+ function projectTargets(project) {
3021
3094
  let refs = targetRefs.get(project);
3022
3095
  if (!refs) {
3023
3096
  refs = list(project.project.targets).flatMap((id) => {
3024
3097
  const target = project.object(id);
3025
- return target?.isa === "PBXNativeTarget" ? [{ project, id, target }] : [];
3098
+ return target?.isa === "PBXNativeTarget" || target?.isa === "PBXAggregateTarget" ? [{ project, id, target }] : [];
3026
3099
  });
3027
3100
  targetRefs.set(project, refs);
3028
3101
  }
@@ -3045,7 +3118,7 @@ function isIosPlatform(name) {
3045
3118
  return name.startsWith("iphoneos") || name.startsWith("iphonesimulator");
3046
3119
  }
3047
3120
  function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
3048
- return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(nativeTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
3121
+ return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
3049
3122
  }
3050
3123
  function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
3051
3124
  const xcodeprojOrWorkspace = fs.realpathSync(input);
@@ -3054,7 +3127,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3054
3127
  xcodeprojOrWorkspace,
3055
3128
  options.installedPods
3056
3129
  );
3057
- const allTargets = projects.flatMap(nativeTargets);
3130
+ const allTargets = projects.flatMap(projectTargets);
3058
3131
  const appTargets = allTargets.filter((ref) => isIosAppTarget(ref, options));
3059
3132
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
3060
3133
  const container = path2.basename(xcodeprojOrWorkspace);
@@ -3081,7 +3154,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3081
3154
  const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && fs.existsSync(portalPath) ? projectAt.get(fs.realpathSync(portalPath)) : void 0;
3082
3155
  const remote = str(proxy.remoteGlobalIDString);
3083
3156
  if (!owner || !remote) return void 0;
3084
- return nativeTargets(owner).find(
3157
+ return projectTargets(owner).find(
3085
3158
  (ref) => ref.id === remote || str(ref.target.productReference) === remote
3086
3159
  );
3087
3160
  };
@@ -3091,7 +3164,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3091
3164
  for (const dependencyId of list(target.dependencies)) {
3092
3165
  const dependency = project.object(dependencyId);
3093
3166
  const direct = str(dependency?.target);
3094
- const resolved = direct ? nativeTargets(project).find((candidate) => candidate.id === direct) : proxied(project, str(dependency?.targetProxy));
3167
+ const resolved = direct ? projectTargets(project).find((candidate) => candidate.id === direct) : proxied(project, str(dependency?.targetProxy));
3095
3168
  if (resolved) found.push(resolved);
3096
3169
  }
3097
3170
  for (const phaseId of list(target.buildPhases)) {
@@ -3104,7 +3177,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3104
3177
  }
3105
3178
  }
3106
3179
  return found.filter(
3107
- (candidate) => MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
3180
+ (candidate) => candidate.target.isa === "PBXAggregateTarget" || MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
3108
3181
  );
3109
3182
  };
3110
3183
  const order = [];
@@ -3143,7 +3216,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3143
3216
  const cached = projectHeaderMaps.get(project);
3144
3217
  if (cached) return cached;
3145
3218
  const entries = /* @__PURE__ */ new Map();
3146
- for (const ref of nativeTargets(project)) {
3219
+ for (const ref of projectTargets(project)) {
3147
3220
  const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
3148
3221
  const product = framework ? productName(ref) : "";
3149
3222
  for (const { file, visibility } of headerPhase(ref)) {
@@ -3182,12 +3255,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3182
3255
  configuration,
3183
3256
  {
3184
3257
  TARGET_NAME: name,
3258
+ TARGETNAME: "$(TARGET_NAME)",
3259
+ PROJECT: "$(PROJECT_NAME)",
3185
3260
  PROJECT_NAME: path2.basename(ref.project.xcodeproj, ".xcodeproj"),
3261
+ PROJECT_FILE_PATH: ref.project.xcodeproj,
3186
3262
  SRCROOT: ref.project.projectDir,
3187
3263
  SOURCE_ROOT: ref.project.projectDir,
3188
3264
  PROJECT_DIR: ref.project.projectDir,
3189
3265
  SYMROOT: path2.join(buildDir(ref.project), "Products"),
3190
3266
  BUILD_DIR: "$(SYMROOT)",
3267
+ BUILD_ROOT: "$(SYMROOT)",
3191
3268
  OBJROOT: path2.join(buildDir(ref.project), "Intermediates.noindex"),
3192
3269
  CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
3193
3270
  BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
@@ -3195,6 +3272,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3195
3272
  PROJECT_TEMP_DIR: "$(OBJROOT)/$(PROJECT_NAME).build",
3196
3273
  CONFIGURATION_TEMP_DIR: "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
3197
3274
  TARGET_TEMP_DIR: "$(CONFIGURATION_TEMP_DIR)/$(TARGET_NAME).build",
3275
+ TEMP_DIR: "$(TARGET_TEMP_DIR)",
3276
+ TEMP_FILES_DIR: "$(TEMP_DIR)",
3277
+ TEMP_FILE_DIR: "$(TEMP_DIR)",
3278
+ TEMP_ROOT: "$(OBJROOT)",
3198
3279
  DERIVED_FILE_DIR: "$(TARGET_TEMP_DIR)/DerivedSources",
3199
3280
  DERIVED_FILES_DIR: "$(DERIVED_FILE_DIR)",
3200
3281
  PLATFORM_NAME: "iphonesimulator",
@@ -3232,16 +3313,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3232
3313
  "VERSION_INFO_PREFIX",
3233
3314
  "VERSION_INFO_SUFFIX"
3234
3315
  ].filter((key) => settings2(key));
3235
- if (!/^\d+$/.test(version) || !/^[A-Za-z_]\w*$/.test(product) || custom.length)
3316
+ if (custom.length)
3236
3317
  throw new Error(
3237
- `${name}: Xcode generates ${path2.basename(versioning)} for VERSIONING_SYSTEM=apple-generic; peach writes it only for an integer CURRENT_PROJECT_VERSION (${JSON.stringify(version)}), an identifier PRODUCT_NAME (${JSON.stringify(product)}) and no ${custom.length ? custom.join(", ") : "VERSION_INFO_* override"}`
3318
+ `${name}: Xcode generates ${path2.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
3238
3319
  );
3320
+ const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
3321
+ const [major, minor] = version.split(".");
3322
+ const number = `${major === "" ? "0" : major}.${minor !== void 0 && /^\d+$/.test(minor) ? minor.replace(/^0+(?=\d)/, "") : ""}`;
3239
3323
  const unit = [
3240
- ` extern const unsigned char ${product}VersionString[];`,
3241
- ` extern const double ${product}VersionNumber;`,
3324
+ ` extern const unsigned char ${symbol}VersionString[];`,
3325
+ ` extern const double ${symbol}VersionNumber;`,
3242
3326
  "",
3243
- ` const unsigned char ${product}VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:${product} PROJECT:${settings2("PROJECT_NAME")}-${version}" "\\n";`,
3244
- ` const double ${product}VersionNumber __attribute__ ((used)) = (double)${version}.;`,
3327
+ ` const unsigned char ${symbol}VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:${product} PROJECT:${settings2("PROJECT_NAME")}-${version}" "\\n";`,
3328
+ ` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number};`,
3245
3329
  ""
3246
3330
  ].join("\n");
3247
3331
  if (!fs.existsSync(versioning) || fs.readFileSync(versioning, "utf8") !== unit) {
@@ -3250,9 +3334,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3250
3334
  }
3251
3335
  allSources.push(versioning);
3252
3336
  }
3253
- const implementations = allSources.filter(
3254
- (file) => /\.(c|cc|cpp|cxx|m|mm)$/.test(file)
3255
- );
3337
+ const implementations = allSources.filter(isSwiftNativeTranslationUnit);
3256
3338
  const native = implementations.length > 0;
3257
3339
  if (native && building) {
3258
3340
  const generatedHeaders = list(ref.target.buildPhases).flatMap((phaseId) => {
@@ -3263,7 +3345,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3263
3345
  throw new Error(
3264
3346
  `${name}: Xcode's generated-files header map, which lists headers its build rules and Run Script phases generate (${generatedHeaders.join(", ") || "build rules"}), is not modeled`
3265
3347
  );
3266
- const nonFramework = nativeTargets(ref.project).find(
3348
+ const nonFramework = projectTargets(ref.project).find(
3267
3349
  (other) => !FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "") && headerPhase(other).length > 0
3268
3350
  );
3269
3351
  if (nonFramework && settings2("USE_HEADERMAP") !== "NO")
@@ -3315,6 +3397,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3315
3397
  mainActorIsolation: settings2("SWIFT_DEFAULT_ACTOR_ISOLATION") === "MainActor",
3316
3398
  defines: compilationConditions(settings2),
3317
3399
  iosDeploymentTarget: settings2("IPHONEOS_DEPLOYMENT_TARGET") || null,
3400
+ assetSettings: {
3401
+ IPHONEOS_DEPLOYMENT_TARGET: XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET,
3402
+ ...Object.fromEntries(
3403
+ ["IPHONEOS_DEPLOYMENT_TARGET", ...assetSymbolSettingKeys].flatMap(
3404
+ (key) => settings2(key) ? [[key, settings2(key)]] : []
3405
+ )
3406
+ )
3407
+ },
3318
3408
  ...native ? {
3319
3409
  objc: {
3320
3410
  publicHeaders: headerFiles.flatMap(
@@ -3397,8 +3487,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3397
3487
  }
3398
3488
  };
3399
3489
  };
3400
- const { settings, keys: settingKeys, module } = moduleTarget(app);
3401
- const frameworkTargets = order.slice(0, -1).map((ref) => ({ ref, framework: moduleTarget(ref).module }));
3490
+ const builtTargets = order.map((ref) => ({ ref, ...moduleTarget(ref) }));
3491
+ const { settings, keys: settingKeys, module } = builtTargets.at(-1);
3492
+ const frameworkTargets = builtTargets.slice(0, -1).filter(({ ref }) => ref.target.isa === "PBXNativeTarget").map(({ ref, module: module2 }) => ({ ref, framework: module2 }));
3402
3493
  const frameworks = frameworkTargets.map(({ framework }) => framework);
3403
3494
  const podSourceDirs = frameworkTargets.flatMap(
3404
3495
  ({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) => path2.dirname(file)).filter((dir) => fs.existsSync(dir)) : []
@@ -3484,18 +3575,51 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
3484
3575
  const qualifiedProductKeys = /* @__PURE__ */ new Set();
3485
3576
  const linkedProductKeys = /* @__PURE__ */ new Set();
3486
3577
  const binaryFrameworks = /* @__PURE__ */ new Map();
3578
+ for (const { ref, settings: settings2 } of builtTargets) {
3579
+ const absolute = (raw) => path2.resolve(ref.project.projectDir, expand(raw, settings2));
3580
+ for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
3581
+ const dir = absolute(raw);
3582
+ const modulemap = path2.join(dir, "module.modulemap");
3583
+ if (!fs.existsSync(modulemap)) continue;
3584
+ const name = moduleMapName(fs.readFileSync(modulemap, "utf8"));
3585
+ if (name && !binaryFrameworks.has(name)) binaryFrameworks.set(name, dir);
3586
+ }
3587
+ for (const phaseId of list(ref.target.buildPhases)) {
3588
+ const phase = ref.project.object(phaseId);
3589
+ if (phase?.isa !== "PBXShellScriptBuildPhase") continue;
3590
+ const inputs = list(phase.inputPaths).map(absolute);
3591
+ for (const raw of list(phase.inputFileListPaths)) {
3592
+ const file = absolute(raw);
3593
+ if (!fs.existsSync(file)) continue;
3594
+ xcconfigs.add(file);
3595
+ inputs.push(...fileListEntries(file, absolute));
3596
+ }
3597
+ for (const file of inputs) {
3598
+ const name = /([^/]+)\.xcframework$/.exec(file)?.[1];
3599
+ if (name && !binaryFrameworks.has(name)) binaryFrameworks.set(name, file);
3600
+ }
3601
+ }
3602
+ }
3487
3603
  for (const { project, target } of order) {
3604
+ const productRef = (id) => {
3605
+ const ref = str(project.object(id)?.productRef);
3606
+ return ref ? [ref] : [];
3607
+ };
3488
3608
  const productDependencies = [
3489
3609
  ...list(target.packageProductDependencies),
3490
- ...list(target.dependencies).flatMap((id) => {
3491
- const productRef = str(project.object(id)?.productRef);
3492
- return productRef ? [productRef] : [];
3610
+ ...list(target.dependencies).flatMap(productRef),
3611
+ ...list(target.buildPhases).flatMap((id) => {
3612
+ const phase = project.object(id);
3613
+ return phase?.isa === "PBXFrameworksBuildPhase" ? list(phase.files).flatMap(productRef) : [];
3493
3614
  })
3494
3615
  ];
3495
- for (const dependencyId of productDependencies) {
3616
+ for (const dependencyId of new Set(productDependencies)) {
3496
3617
  const dependency = project.object(dependencyId);
3497
3618
  const product = str(dependency?.productName)?.replace(/^plugin:/, "");
3498
- if (!dependency || !product) continue;
3619
+ if (!dependency || !product)
3620
+ throw new Error(
3621
+ `${str(target.name) ?? "target"}: package product dependency ${dependencyId} has no productName in ${project.projectFile}`
3622
+ );
3499
3623
  const reference = project.object(str(dependency.package));
3500
3624
  const linked = {
3501
3625
  product,
@@ -3718,14 +3842,14 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
3718
3842
  if (entry.isDirectory()) {
3719
3843
  const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : ["Info.plist", "AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"];
3720
3844
  for (const name of names) {
3721
- const relative = `ios/${entry.name}/${name}`;
3722
- const file = path3.join(projectRoot, relative);
3723
- if (fs2.existsSync(file)) files[relative] = fs2.readFileSync(file, "utf8");
3845
+ const relative2 = `ios/${entry.name}/${name}`;
3846
+ const file = path3.join(projectRoot, relative2);
3847
+ if (fs2.existsSync(file)) files[relative2] = fs2.readFileSync(file, "utf8");
3724
3848
  }
3725
3849
  } else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
3726
- const relative = `ios/${entry.name}`;
3727
- const file = path3.join(projectRoot, relative);
3728
- if (fs2.existsSync(file)) files[relative] = fs2.readFileSync(file, "utf8");
3850
+ const relative2 = `ios/${entry.name}`;
3851
+ const file = path3.join(projectRoot, relative2);
3852
+ if (fs2.existsSync(file)) files[relative2] = fs2.readFileSync(file, "utf8");
3729
3853
  }
3730
3854
  }
3731
3855
  return extractNativeAppIdentityFromFiles(files, "ios", parseInfoPlist, iosTarget);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/android-string-value.ts
4
4
  function compileAndroidStringValue(text, where) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;