peachsim 0.1.1881 → 0.1.1887

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 (160) hide show
  1. package/cli/commands/control.ts +11 -10
  2. package/cli/commands/reset.ts +1 -1
  3. package/cli/native-input.ts +1 -1
  4. package/cli/outbound-endpoints.ts +1 -1
  5. package/detox/index.ts +62 -1
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +9079 -4305
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +35 -2
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +8609 -3976
  32. package/dist-lib/expo-swift-metadata.cjs +5 -1
  33. package/dist-lib/expo-swift-metadata.mjs +5 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +9894 -5149
  36. package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +8 -2
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +538 -120
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +536 -118
  52. package/dist-lib/native-app-identity-project.cjs +408 -72
  53. package/dist-lib/native-app-identity-project.mjs +739 -375
  54. package/dist-lib/native-app-identity.cjs +37 -1
  55. package/dist-lib/native-app-identity.mjs +36 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +61 -28
  65. package/dist-lib/public-origins-lib.json +250 -92
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +16568 -11674
  73. package/dist-lib/swift-compile.cjs +6874 -2537
  74. package/dist-lib/swift-compile.mjs +6207 -1866
  75. package/dist-lib/swift-package.cjs +20 -3
  76. package/dist-lib/swift-package.mjs +20 -3
  77. package/dist-lib/swift-submit.cjs +2 -2
  78. package/dist-lib/swift-submit.mjs +2 -2
  79. package/dist-lib/swift-toolchain.cjs +19 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +8753 -4124
  82. package/dist-lib/vite.cjs +93 -13
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  86. package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  89. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
  90. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
  91. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  92. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
  93. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  94. package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
  95. package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
  96. package/package.json +1 -1
  97. package/runtime-companion.json +1 -1
  98. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
  99. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  100. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
  101. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
  102. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
  103. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
  104. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
  105. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
  106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
  107. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
  108. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
  109. package/sdk/ios/usr/include/os/activity.h +534 -0
  110. package/sdk/ios/usr/include/os.modulemap +15 -0
  111. package/sdk/ios/wasm/include/fcntl.h +16 -0
  112. package/sdk/ios/wasm/include/string.h +5 -0
  113. package/sdk/native-hashes.json +1 -1
  114. package/src/dns-over-https.ts +61 -9
  115. package/src/expo-swift-bundle.ts +2 -7
  116. package/src/expo-swift-host.ts +11 -3
  117. package/src/host/fetch-proxy-handler.ts +51 -2
  118. package/src/host/fetch-proxy-overrides.ts +4 -0
  119. package/src/host/hostname-resolver.ts +9 -5
  120. package/src/native-app-identity-project.ts +13 -2
  121. package/src/native-app-identity.ts +47 -0
  122. package/src/nitro-adapter.lock.json +260 -260
  123. package/src/nitro-bundle.ts +7 -10
  124. package/src/nitro-superset.lock.json +4 -4
  125. package/src/podspec-sources.ts +20 -0
  126. package/src/storageSnapshotContract.ts +20 -1
  127. package/src/swift-compile.ts +409 -77
  128. package/src/swift-compiler-digest.ts +15 -0
  129. package/src/swift-coverage/xcode-packages.ts +3 -2
  130. package/src/swift-distribution.lock.json +12 -12
  131. package/src/swift-guest-archive.ts +153 -0
  132. package/src/swift-guest-compile.ts +449 -0
  133. package/src/swift-guest-image-ledger.ts +656 -0
  134. package/src/swift-guest-link-plan.ts +52 -0
  135. package/src/swift-guest-link.ts +1414 -0
  136. package/src/swift-guest-linked-spans.ts +338 -0
  137. package/src/swift-guest-manifest.ts +141 -0
  138. package/src/swift-guest-projection-storage.ts +310 -0
  139. package/src/swift-guest-projection.ts +252 -0
  140. package/src/swift-guest-runtime-plan.ts +834 -0
  141. package/src/swift-guest-source-inputs.ts +427 -0
  142. package/src/swift-guest-source-plan.ts +279 -0
  143. package/src/swift-host.ts +157 -36
  144. package/src/swift-icu.ts +60 -18
  145. package/src/swift-link-roots.ts +27 -50
  146. package/src/swift-package-manifest.ts +34 -18
  147. package/src/swift-package.ts +32 -2
  148. package/src/swift-packages.ts +138 -17
  149. package/src/swift-runtime-products.ts +73 -0
  150. package/src/swift-shared-sdk.ts +1 -1
  151. package/src/swift-submit.ts +15 -3
  152. package/src/swift-toolchain.ts +18 -0
  153. package/src/swift-wasm-prune.ts +313 -14
  154. package/src/swiftContract.ts +83 -0
  155. package/src/swiftRuntimeProductContract.ts +85 -45
  156. package/src/turbo-bundle.ts +1 -1
  157. package/src/turbo-codegen-intake.ts +10 -3
  158. package/src/turbo-runtime.lock.json +23 -23
  159. package/src/wasm-optimize.ts +16 -4
  160. package/src/xcode-project.ts +142 -14
@@ -13,6 +13,7 @@ import fs from 'node:fs'
13
13
  import path from 'node:path'
14
14
  import plist from 'plist'
15
15
  import { isRecord } from './is-record'
16
+ import { readKeychainAccessGroups } from './native-app-identity'
16
17
  import { preparedXcodePhase } from './prepared-xcode-phases'
17
18
  import { localSwiftBinaryModules } from './swift-binary-modules'
18
19
  import { assetSymbolSettingKeys } from './swift-coverage/xcode-assets'
@@ -28,7 +29,7 @@ import {
28
29
  xcodePathResolver,
29
30
  } from './xcode-target-members'
30
31
  import type { SwiftLinkedProduct } from './swift-packages'
31
- import type { SwiftNativeHeaderMap } from './swiftContract'
32
+ import type { SwiftNativeHeaderMap, SwiftSourceLinkGraph } from './swiftContract'
32
33
 
33
34
  export {
34
35
  parseOpenStepPlist,
@@ -75,6 +76,8 @@ const PRE_CXX20_STANDARDS = new Set([
75
76
  ])
76
77
 
77
78
  export interface XcodeModuleTarget {
79
+ /** original project and PBX target identity, independent of module aliases. */
80
+ id: string
78
81
  name: string
79
82
  /** the original project and PBX target identifier, shared by dependency edges. */
80
83
  targetIdentity: string
@@ -151,6 +154,8 @@ export interface XcodeModuleTarget {
151
154
 
152
155
  /** an application target, resolved to files on disk with everything it builds. */
153
156
  export interface XcodeAppTarget extends XcodeModuleTarget {
157
+ /** source products and direct links; IDs are local absolute project identities. */
158
+ sourceLinkGraph: SwiftSourceLinkGraph
154
159
  /** original Clang maps behind CocoaPods' generated compatibility products. */
155
160
  moduleMapSources?: Record<string, string>
156
161
  /**
@@ -165,6 +170,7 @@ export interface XcodeAppTarget extends XcodeModuleTarget {
165
170
  /** the target's processed launch plist, including generated build settings. */
166
171
  infoPlist: string | null
167
172
  infoPlistFile: string | null
173
+ keychainAccessGroups?: readonly string[]
168
174
  /** trailing run scripts which consume the packaged application bundle. */
169
175
  postBundleScripts: {
170
176
  name: string
@@ -215,6 +221,18 @@ export interface XcodeAppTarget extends XcodeModuleTarget {
215
221
 
216
222
  const APPLICATION = 'com.apple.product-type.application'
217
223
  const RESOURCE_BUNDLE = 'com.apple.product-type.bundle'
224
+ // the MACH_O_TYPE each product type builds with when no setting names one, from
225
+ // the product type specifications in Xcode's CoreBuildSystem plugin.
226
+ const PRODUCT_MACH_O_TYPES: Record<string, string> = {
227
+ 'com.apple.product-type.application': 'mh_execute',
228
+ 'com.apple.product-type.app-extension': 'mh_execute',
229
+ 'com.apple.product-type.tool': 'mh_execute',
230
+ 'com.apple.product-type.framework': 'mh_dylib',
231
+ 'com.apple.product-type.framework.static': 'staticlib',
232
+ 'com.apple.product-type.library.dynamic': 'mh_dylib',
233
+ 'com.apple.product-type.library.static': 'staticlib',
234
+ 'com.apple.product-type.bundle': 'mh_bundle',
235
+ }
218
236
  // product types xcode builds as a .framework bundle with Headers and Modules.
219
237
  const FRAMEWORK_PRODUCTS = new Set([
220
238
  'com.apple.product-type.framework',
@@ -735,6 +753,17 @@ function targetSettings(
735
753
  PRODUCT_NAME: () => get('TARGET_NAME'),
736
754
  PRODUCT_MODULE_NAME: () => applyOperator(get('PRODUCT_NAME'), 'c99extidentifier'),
737
755
  EXECUTABLE_NAME: () => get('PRODUCT_NAME'),
756
+ MACH_O_TYPE: () => PRODUCT_MACH_O_TYPES[str(target.productType) ?? ''] ?? '',
757
+ // the native defaults of CoreBuildSystem.xcspec for a dynamic framework
758
+ EXECUTABLE_PATH: () =>
759
+ FRAMEWORK_PRODUCTS.has(str(target.productType) ?? '')
760
+ ? `${get('PRODUCT_NAME')}.framework/${get('EXECUTABLE_NAME')}`
761
+ : get('EXECUTABLE_NAME'),
762
+ DYLIB_INSTALL_NAME_BASE: () => '/Library/Frameworks',
763
+ LD_DYLIB_INSTALL_NAME: () =>
764
+ get('MACH_O_TYPE') === 'mh_dylib'
765
+ ? `${get('DYLIB_INSTALL_NAME_BASE')}/${get('EXECUTABLE_PATH')}`
766
+ : '',
738
767
  // the native default of CoreBuildSystem.xcspec
739
768
  EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES: () =>
740
769
  '*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj',
@@ -1778,18 +1807,11 @@ export function readXcodeAppTarget(
1778
1807
  (ref) => ref.id === remote || str(ref.target.productReference) === remote,
1779
1808
  )
1780
1809
  }
1781
- const dependenciesOf = (ref: TargetRef): TargetRef[] => {
1810
+ const linkedTargets = (
1811
+ ref: TargetRef,
1812
+ ): { target: TargetRef; attributes: string[] }[] => {
1782
1813
  const { project, target } = ref
1783
- const found: TargetRef[] = []
1784
- for (const dependencyId of list(target.dependencies)) {
1785
- const dependency = project.object(dependencyId)
1786
- if (!dependency || !xcodeBuildFileBuildsForIos(dependency)) continue
1787
- const direct = str(dependency.target)
1788
- const resolved = direct
1789
- ? projectTargets(project).find((candidate) => candidate.id === direct)
1790
- : proxied(project, str(dependency.targetProxy))
1791
- if (resolved) found.push(resolved)
1792
- }
1814
+ const found: { target: TargetRef; attributes: string[] }[] = []
1793
1815
  for (const phaseId of list(target.buildPhases)) {
1794
1816
  const phase = project.object(phaseId)
1795
1817
  if (phase?.isa !== 'PBXFrameworksBuildPhase') continue
@@ -1803,10 +1825,47 @@ export function readXcodeAppTarget(
1803
1825
  : file && str(file.sourceTree) === 'BUILT_PRODUCTS_DIR'
1804
1826
  ? byProduct.get(path.basename(str(file.path) ?? ''))
1805
1827
  : undefined
1806
- if (resolved) found.push(resolved)
1828
+ if (resolved)
1829
+ found.push({
1830
+ target: resolved,
1831
+ attributes: list(
1832
+ isDict(buildFile.settings) ? buildFile.settings.ATTRIBUTES : undefined,
1833
+ ),
1834
+ })
1807
1835
  }
1808
1836
  }
1809
- return found.filter(
1837
+ return found
1838
+ }
1839
+ // a plain `-framework Name` in the linker flags (CocoaPods writes them into
1840
+ // the app's xcconfig) links the framework target that builds Name.framework,
1841
+ // as a framework build phase entry does. a name no target builds is a prebuilt
1842
+ // or system framework.
1843
+ const frameworkFlagLinks = (
1844
+ ref: TargetRef,
1845
+ flags: string,
1846
+ ): { target: TargetRef; attributes: string[] }[] => {
1847
+ const words = settingList(flags)
1848
+ const linked = new Set<TargetRef>(linkedTargets(ref).map((link) => link.target))
1849
+ return words.flatMap((word, index) => {
1850
+ const target =
1851
+ words[index - 1] === '-framework' ? byProduct.get(`${word}.framework`) : undefined
1852
+ if (!target || target === ref || linked.has(target)) return []
1853
+ linked.add(target)
1854
+ return [{ target, attributes: [] }]
1855
+ })
1856
+ }
1857
+ const dependenciesOf = (ref: TargetRef): TargetRef[] => {
1858
+ const { project, target } = ref
1859
+ const found = list(target.dependencies).flatMap((dependencyId) => {
1860
+ const dependency = project.object(dependencyId)
1861
+ if (!dependency || !xcodeBuildFileBuildsForIos(dependency)) return []
1862
+ const direct = str(dependency.target)
1863
+ const resolved = direct
1864
+ ? projectTargets(project).find((candidate) => candidate.id === direct)
1865
+ : proxied(project, str(dependency.targetProxy))
1866
+ return resolved ? [resolved] : []
1867
+ })
1868
+ return [...found, ...linkedTargets(ref).map((link) => link.target)].filter(
1810
1869
  (candidate) =>
1811
1870
  candidate.target.isa === 'PBXAggregateTarget' ||
1812
1871
  candidate.target.productType === RESOURCE_BUNDLE ||
@@ -2215,6 +2274,7 @@ export function readXcodeAppTarget(
2215
2274
  settings,
2216
2275
  keys,
2217
2276
  module: {
2277
+ id: `${ref.project.projectFile}#${ref.id}`,
2218
2278
  name,
2219
2279
  targetIdentity: JSON.stringify([ref.project.xcodeproj, ref.id]),
2220
2280
  targetDependencies: Array<string>(),
@@ -2565,6 +2625,20 @@ export function readXcodeAppTarget(
2565
2625
  const infoPlistFile = settings('INFOPLIST_FILE')
2566
2626
  ? path.resolve(app.project.projectDir, settings('INFOPLIST_FILE'))
2567
2627
  : null
2628
+ const entitlementsFile = settings('CODE_SIGN_ENTITLEMENTS')
2629
+ ? path.resolve(app.project.projectDir, settings('CODE_SIGN_ENTITLEMENTS'))
2630
+ : null
2631
+ const keychainAccessGroups = entitlementsFile
2632
+ ? readKeychainAccessGroups(
2633
+ plist.parse(fs.readFileSync(entitlementsFile, 'utf8')),
2634
+ (value) =>
2635
+ expand(value, (key) => {
2636
+ const resolved = settings(key)
2637
+ if (!resolved) throw new Error(`missing signing build setting ${key}`)
2638
+ return resolved
2639
+ }),
2640
+ )
2641
+ : undefined
2568
2642
  // a generated plist is read only once its phase has run
2569
2643
  const infoPlistPending = module.generatedInfoPlist && !options.prepareGeneratedSources
2570
2644
  const sourceInfo =
@@ -2772,6 +2846,20 @@ export function readXcodeAppTarget(
2772
2846
  productPlatforms.set(ref, productPlatforms.get(ref) === true || builds)
2773
2847
  return builds ? [ref] : []
2774
2848
  }
2849
+ const productAttributes = new Map<string, string[]>()
2850
+ for (const phaseId of list(target.buildPhases)) {
2851
+ const phase = project.object(phaseId)
2852
+ if (phase?.isa !== 'PBXFrameworksBuildPhase') continue
2853
+ for (const id of list(phase.files)) {
2854
+ const file = project.object(id)
2855
+ const product = str(file?.productRef)
2856
+ if (file && product && xcodeBuildFileBuildsForIos(file))
2857
+ productAttributes.set(
2858
+ product,
2859
+ list(isDict(file.settings) ? file.settings.ATTRIBUTES : undefined),
2860
+ )
2861
+ }
2862
+ }
2775
2863
  const referencedProducts = [
2776
2864
  ...list(target.dependencies).flatMap(productRef),
2777
2865
  ...list(target.buildPhases).flatMap((id) => {
@@ -2784,6 +2872,7 @@ export function readXcodeAppTarget(
2784
2872
  // the target lists every package product, including products linked only
2785
2873
  // on another platform. an inactive link must not reenter through that list.
2786
2874
  const productDependencies = [
2875
+ ...productAttributes.keys(),
2787
2876
  ...list(target.packageProductDependencies).filter(
2788
2877
  (id) => productPlatforms.get(id) !== false,
2789
2878
  ),
@@ -2801,6 +2890,9 @@ export function readXcodeAppTarget(
2801
2890
  const reference = project.object(str(dependency.package))
2802
2891
  const linked: SwiftLinkedProduct = {
2803
2892
  product,
2893
+ ...(productAttributes.get(dependencyId)?.length
2894
+ ? { attributes: productAttributes.get(dependencyId)! }
2895
+ : {}),
2804
2896
  source:
2805
2897
  reference?.isa === 'XCRemoteSwiftPackageReference'
2806
2898
  ? { kind: 'remote', url: str(reference.repositoryURL) ?? '' }
@@ -2916,6 +3008,40 @@ export function readXcodeAppTarget(
2916
3008
  const used = order.map((ref) => ref.project)
2917
3009
  return {
2918
3010
  ...module,
3011
+ sourceLinkGraph: {
3012
+ entry: module.id,
3013
+ targets: builtTargets
3014
+ .filter(
3015
+ ({ ref }) =>
3016
+ ref === app || MODULE_PRODUCTS.has(str(ref.target.productType) ?? ''),
3017
+ )
3018
+ .map(({ ref, module, settings }) => ({
3019
+ id: module.id,
3020
+ sourceTarget: module.allSources.length > 0 ? module.moduleName : null,
3021
+ productName:
3022
+ settings('FULL_PRODUCT_NAME') ||
3023
+ str(ref.project.object(str(ref.target.productReference))?.path) ||
3024
+ settings('PRODUCT_NAME'),
3025
+ productType: str(ref.target.productType)!,
3026
+ installName: settings('LD_DYLIB_INSTALL_NAME') || null,
3027
+ buildVersion: {
3028
+ platform: settings('PLATFORM_NAME') || null,
3029
+ minimumOS: settings('IPHONEOS_DEPLOYMENT_TARGET') || null,
3030
+ sdk: settings('SDK_VERSION') || null,
3031
+ },
3032
+ machOType: settings('MACH_O_TYPE') || null,
3033
+ linkerFlags: settingList(settings('OTHER_LDFLAGS')),
3034
+ dependencies: linkedTargets(ref)
3035
+ .concat(frameworkFlagLinks(ref, settings('OTHER_LDFLAGS')))
3036
+ .filter((dependency) =>
3037
+ MODULE_PRODUCTS.has(str(dependency.target.target.productType) ?? ''),
3038
+ )
3039
+ .map(({ target, attributes }) => ({
3040
+ target: `${target.project.projectFile}#${target.id}`,
3041
+ attributes,
3042
+ })),
3043
+ })),
3044
+ },
2919
3045
  moduleMapSources: Object.fromEntries(
2920
3046
  builtTargets.flatMap(({ module }) => {
2921
3047
  const compatibility = module.swift?.compatibility
@@ -2948,6 +3074,7 @@ export function readXcodeAppTarget(
2948
3074
  ...new Set([
2949
3075
  ...used.map((project) => project.projectFile),
2950
3076
  ...xcconfigs,
3077
+ ...(entitlementsFile ? [entitlementsFile] : []),
2951
3078
  ...(cocoapods
2952
3079
  ? [cocoapods.podfileLock, cocoapods.manifestLock, ...cocoapods.localPodspecs]
2953
3080
  : []),
@@ -2957,6 +3084,7 @@ export function readXcodeAppTarget(
2957
3084
  appIconName: settings('ASSETCATALOG_COMPILER_APPICON_NAME'),
2958
3085
  infoPlist: infoPlistPending ? null : plist.build(info),
2959
3086
  infoPlistFile,
3087
+ ...(keychainAccessGroups === undefined ? {} : { keychainAccessGroups }),
2960
3088
  postBundleScripts,
2961
3089
  developmentRegion: str(app.project.project.developmentRegion) ?? 'en',
2962
3090
  frameworks,