peachsim 0.1.1961 → 0.1.1963

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 (95) hide show
  1. package/README.md +4 -7
  2. package/cli/commands/inspect/wait-ready.ts +26 -3
  3. package/cli/commands/inspect.ts +6 -1
  4. package/cli/commands/setup.ts +18 -11
  5. package/cli/commands/telemetry.ts +1 -2
  6. package/cli/main.ts +0 -18
  7. package/cli/outbound-endpoints.ts +6 -6
  8. package/cli/privacy.ts +1 -21
  9. package/dist-lib/agent-daemon-client.cjs +1 -1
  10. package/dist-lib/agent-events.cjs +1 -1
  11. package/dist-lib/attached-projects.cjs +1 -1
  12. package/dist-lib/auth/shared-session.cjs +1 -1
  13. package/dist-lib/backend-origin.cjs +1 -1
  14. package/dist-lib/beta.cjs +1 -1
  15. package/dist-lib/beta.mjs +1 -1
  16. package/dist-lib/bridge-constants.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.mjs +1 -1
  19. package/dist-lib/bridge-contract.cjs +1 -1
  20. package/dist-lib/bridge-contract.mjs +1 -1
  21. package/dist-lib/bundle-channel.cjs +37 -9
  22. package/dist-lib/capture-contract.cjs +1 -1
  23. package/dist-lib/capture-contract.mjs +1 -1
  24. package/dist-lib/cloud-contract.cjs +1 -1
  25. package/dist-lib/cloud-contract.mjs +1 -1
  26. package/dist-lib/cloud-test-args.cjs +1 -1
  27. package/dist-lib/cloud-test-args.mjs +1 -1
  28. package/dist-lib/cloud.cjs +1 -1
  29. package/dist-lib/cloud.mjs +1 -1
  30. package/dist-lib/config.cjs +1 -1
  31. package/dist-lib/config.mjs +1 -1
  32. package/dist-lib/detox/index.cjs +2 -2
  33. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  34. package/dist-lib/expo-swift-bundle.cjs +35 -7
  35. package/dist-lib/expo-swift-metadata.cjs +1 -1
  36. package/dist-lib/expo-swift-metadata.mjs +1 -1
  37. package/dist-lib/home-paths.cjs +4 -4
  38. package/dist-lib/host/bridge-host.cjs +37 -9
  39. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  40. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  41. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  42. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  43. package/dist-lib/host/websocket-proxy.cjs +1 -1
  44. package/dist-lib/index.cjs +3 -3
  45. package/dist-lib/jump-to-source-babel.cjs +1 -1
  46. package/dist-lib/jump-to-source-native.cjs +1 -1
  47. package/dist-lib/kotlin-host.cjs +1 -1
  48. package/dist-lib/menu.cjs +1 -1
  49. package/dist-lib/menu.mjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  51. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  52. package/dist-lib/metro-production-bundle.cjs +1 -1
  53. package/dist-lib/metro-production-bundle.mjs +1 -1
  54. package/dist-lib/metro.cjs +3 -3
  55. package/dist-lib/native-app-identity-project.cjs +2 -2
  56. package/dist-lib/native-app-identity-project.mjs +2 -2
  57. package/dist-lib/native-app-identity.cjs +1 -1
  58. package/dist-lib/native-app-identity.mjs +1 -1
  59. package/dist-lib/native-firebase-metadata.cjs +1 -1
  60. package/dist-lib/native-firebase-metadata.mjs +1 -1
  61. package/dist-lib/pdfium-raster.cjs +1 -1
  62. package/dist-lib/pdfium-raster.mjs +1 -1
  63. package/dist-lib/plist.cjs +1 -1
  64. package/dist-lib/plist.mjs +1 -1
  65. package/dist-lib/profiles.cjs +1 -1
  66. package/dist-lib/public-brand.cjs +1 -1
  67. package/dist-lib/public-origins-lib-esm.json +24 -24
  68. package/dist-lib/public-origins-lib.json +53 -53
  69. package/dist-lib/react-native-host-modules.cjs +1 -1
  70. package/dist-lib/react-native-host-modules.mjs +1 -1
  71. package/dist-lib/reap-browser.cjs +1 -1
  72. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  73. package/dist-lib/sdk.cjs +1 -1
  74. package/dist-lib/sdk.mjs +1 -1
  75. package/dist-lib/skills.cjs +43 -25
  76. package/dist-lib/swift-compile.cjs +1 -1
  77. package/dist-lib/swift-compile.mjs +1 -1
  78. package/dist-lib/swift-package.cjs +1 -1
  79. package/dist-lib/swift-package.mjs +1 -1
  80. package/dist-lib/swift-submit.cjs +1 -1
  81. package/dist-lib/swift-submit.mjs +1 -1
  82. package/dist-lib/swift-toolchain.cjs +1 -1
  83. package/dist-lib/swift.cjs +1 -1
  84. package/dist-lib/vite-swift.cjs +7 -6
  85. package/dist-lib/vite.cjs +2 -2
  86. package/dist-lib/worklet-executable.cjs +1 -1
  87. package/dist-lib/worklet-executable.mjs +1 -1
  88. package/package.json +1 -1
  89. package/runtime-companion.json +1 -1
  90. package/src/expo-swift-host.ts +37 -0
  91. package/src/home-paths.ts +4 -5
  92. package/src/settingsContract.ts +2 -2
  93. package/src/swift-cxx-reachable.ts +11 -2
  94. package/src/swift-objc-compile.ts +7 -2
  95. package/src/swift-packages.ts +3 -0
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -16202,7 +16202,7 @@ var init_registry = __esm({
16202
16202
  stubType: "native",
16203
16203
  versions: [
16204
16204
  {
16205
- range: ">=1.5.4 <2.0.0",
16205
+ range: ">=1.5.4 <1.10.0",
16206
16206
  coverage: 0.75,
16207
16207
  note: "native-seam only: upstream package JavaScript runs against browser-backed NitroFetch and NativeStorage hybrid objects; ordinary and secure strings share one persistent tenant keyspace as in the native suite nitro_fetch_storage, and a missing key reads as the empty string",
16208
16208
  working: "fetch with RequestInfo/RequestInit, AbortSignal, headers, string/byte/form-data request bodies, redirects, credentials, request cancellation and timeouts; upstream Headers, Request, Response, generateCurl, NetworkInspector, prefetch queue, token mapping, and token-refresh utilities",
@@ -28599,9 +28599,9 @@ function readPrivacyPreferences() {
28599
28599
  const productAnalytics = settings?.productAnalytics;
28600
28600
  const crashReports = settings?.crashReports;
28601
28601
  return {
28602
- productAnalytics: typeof productAnalytics === "boolean" ? productAnalytics : true,
28603
- crashReports: typeof crashReports === "boolean" ? crashReports : true,
28604
- configured: typeof productAnalytics === "boolean"
28602
+ productAnalytics: typeof productAnalytics === "boolean" ? productAnalytics : false,
28603
+ crashReports: typeof crashReports === "boolean" ? crashReports : false,
28604
+ configured: typeof productAnalytics === "boolean" || typeof crashReports === "boolean"
28605
28605
  };
28606
28606
  }
28607
28607
  function writePrivacyPreferences(preferences) {
@@ -63477,7 +63477,7 @@ var init_swift_standin_digest = __esm({
63477
63477
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
63478
63478
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
63479
63479
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
63480
- STANDIN_SOURCE_DIGEST = true ? "8aa8fa5480dd940d4e0749e290b7a4ed774e98dc3033928ab12d7addc2edb16b" : standinSourceDigest();
63480
+ STANDIN_SOURCE_DIGEST = true ? "561a9a7ebdd507444399a3f8310b2de4592885f9acd0f1005a06c09111d0005b" : standinSourceDigest();
63481
63481
  }
63482
63482
  });
63483
63483
 
@@ -64207,7 +64207,7 @@ var init_expo_native_prebuilt = __esm({
64207
64207
  init_swift_native_pin();
64208
64208
  init_xcode_project();
64209
64209
  EXPO_NATIVE_ENTRY_NAME = "ios";
64210
- EXPO_NATIVE_COMPILER_DIGEST = true ? "1a922f660684f5811fa4afd5f027f538ae938274fb2ac67fdcef9be22941c31a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64210
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "5f003ceebbd4d0d0acca4345d85445b96471f98fd61282e039812541edda3be2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64211
64211
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
64212
64212
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
64213
64213
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -65333,7 +65333,7 @@ function resolveSwiftPackages(options) {
65333
65333
  result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
65334
65334
  return result;
65335
65335
  }
65336
- var import_node_child_process37, import_node_crypto38, import_node_fs69, import_node_path68, import_promises7, import_node_util12, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
65336
+ var import_node_child_process37, import_node_crypto38, import_node_fs69, import_node_path68, import_promises7, import_node_util12, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
65337
65337
  var init_swift_packages = __esm({
65338
65338
  "src/swift-packages.ts"() {
65339
65339
  "use strict";
@@ -65349,6 +65349,7 @@ var init_swift_packages = __esm({
65349
65349
  init_prepared_xcode_phases();
65350
65350
  init_swift_package();
65351
65351
  init_swift_package_manifest();
65352
+ swiftBinaryOnDisk = (binary2) => binary2.url !== null || import_node_fs69.default.existsSync(binary2.dir);
65352
65353
  SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
65353
65354
  placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
65354
65355
  UNSUPPORTED_NATIVE = /\.(s|S)$/;
@@ -68137,7 +68138,7 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
68137
68138
  clangModules.set(import_node_path72.default.resolve(binary2.dir, binary2.publicHeaders), binary2.target);
68138
68139
  }
68139
68140
  const frameworkBinaries = binaries.filter(
68140
- (binary2) => binary2.reached && binary2.publicHeaders === void 0 && binary2.placeholder === void 0
68141
+ (binary2) => binary2.reached && binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2)
68141
68142
  );
68142
68143
  const declaredFrameworks = moduleRoot && frameworkBinaries.length > 0 ? {
68143
68144
  moduleRoot,
@@ -71589,7 +71590,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
71589
71590
  return [...binaries];
71590
71591
  const staged = remoteSwiftCheckouts(app.rootDir);
71591
71592
  if (!binaries.some(
71592
- (binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && binaryHeaderSearchPaths(binary2, staged).headers.length === 1
71593
+ (binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged).headers.length === 1
71593
71594
  ))
71594
71595
  return [...binaries];
71595
71596
  const hash = (0, import_node_crypto41.createHash)("sha256");
@@ -71638,7 +71639,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
71638
71639
  });
71639
71640
  const checkouts = remoteSwiftCheckouts(app.rootDir);
71640
71641
  const search = binaries.map((binary2) => {
71641
- if (binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0)
71642
+ if (binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 || !swiftBinaryOnDisk(binary2))
71642
71643
  return null;
71643
71644
  const headers = binaryHeaderSearchPaths(binary2, checkouts).headers;
71644
71645
  if (headers.length !== 1) return null;
@@ -78986,6 +78987,29 @@ function cloneNativeTarget(target) {
78986
78987
  sourceDirectories: { ...target.sourceDirectories }
78987
78988
  };
78988
78989
  }
78990
+ function podSupportsIOS(pod) {
78991
+ if (!isRecord(pod) || typeof pod.podName !== "string" || typeof pod.podspecDir !== "string")
78992
+ throw new Error("invalid Expo autolinking pod");
78993
+ const base = import_node_path82.default.join(pod.podspecDir, pod.podName);
78994
+ if (import_node_fs84.default.existsSync(`${base}.podspec.json`)) {
78995
+ const platforms2 = JSON.parse(
78996
+ import_node_fs84.default.readFileSync(`${base}.podspec.json`, "utf8")
78997
+ ).platforms;
78998
+ return !isRecord(platforms2) || "ios" in platforms2;
78999
+ }
79000
+ if (!import_node_fs84.default.existsSync(`${base}.podspec`)) return true;
79001
+ const spec = import_node_fs84.default.readFileSync(`${base}.podspec`, "utf8");
79002
+ const names = /* @__PURE__ */ new Set();
79003
+ for (const [, hash] of spec.matchAll(/\.platforms\s*=\s*\{([^}]*)\}/g))
79004
+ for (const [, a, b, c] of hash.matchAll(
79005
+ /:(\w+)\s*=>|\b(\w+):\s|['"](\w+)['"]\s*=>/g
79006
+ ))
79007
+ names.add(a ?? b ?? c);
79008
+ for (const [, name3] of spec.matchAll(/\.platform\s*=\s*:(\w+)/g)) names.add(name3);
79009
+ for (const [, name3] of spec.matchAll(/\.(\w+)\.deployment_target\s*=/g))
79010
+ names.add(name3);
79011
+ return names.size === 0 || names.has("ios");
79012
+ }
78989
79013
  function synthesizedNativeTarget(name3, deploymentTarget) {
78990
79014
  return {
78991
79015
  name: name3,
@@ -79525,6 +79549,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
79525
79549
  const namespaces = resolution && typeof resolution === "object" ? Reflect.get(resolution, "swiftModuleNames") : null;
79526
79550
  const modules = resolution && typeof resolution === "object" ? Reflect.get(resolution, "modules") : null;
79527
79551
  const pods = resolution && typeof resolution === "object" ? Reflect.get(resolution, "pods") : null;
79552
+ if (Array.isArray(pods) && pods.length > 0 && !pods.some(podSupportsIOS)) {
79553
+ report(`${packageName} was not linked: no pod supports iOS`);
79554
+ continue;
79555
+ }
79528
79556
  const delegateNames = (key2) => {
79529
79557
  const names = resolution && typeof resolution === "object" ? Reflect.get(resolution, key2) : null;
79530
79558
  return Array.isArray(names) ? names : [];
@@ -82373,7 +82401,7 @@ var init_nitro_superset = __esm({
82373
82401
  init_swift_standin_digest();
82374
82402
  NITRO_SUPERSET_ENTRY_NAME = "superset";
82375
82403
  packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
82376
- NITRO_COMPILER_DIGEST = true ? "8e8e02dd3e9177f9ee0f908b81f34ac8bba7cedf1731631812d870d3181e6a6e" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82404
+ NITRO_COMPILER_DIGEST = true ? "0edb88bf337167bdbf9f7201d129d9077a26c615463033664ec9d138b538e444" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82377
82405
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
82378
82406
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
82379
82407
  published2 = /* @__PURE__ */ new Map();
@@ -82622,7 +82650,7 @@ var init_expo_widgets_bundle = __esm({
82622
82650
  var runtime_companion_default;
82623
82651
  var init_runtime_companion = __esm({
82624
82652
  "runtime-companion.json"() {
82625
- runtime_companion_default = { abi: 1, sha256: "f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994", file: "node/cli-f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994.cjs" };
82653
+ runtime_companion_default = { abi: 1, sha256: "127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43", file: "node/cli-127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43.cjs" };
82626
82654
  }
82627
82655
  });
82628
82656
 
@@ -104545,22 +104573,12 @@ function doNotTrack() {
104545
104573
  function diagnosticsAllowedForCurrentProcess(preferences = readPrivacyPreferences()) {
104546
104574
  return !doNotTrack() && preferences.productAnalytics;
104547
104575
  }
104548
- var PRIVACY_CONTENTS, PRIVACY_NOTICE;
104549
104576
  var init_privacy = __esm({
104550
104577
  "cli/privacy.ts"() {
104551
104578
  "use strict";
104552
104579
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
104553
104580
  init_home_paths();
104554
104581
  init_env();
104555
- PRIVACY_CONTENTS = [
104556
- "Anonymous diagnostics and crash reports send CLI/runtime versions, OS/arch, command name and exit code, a random install ID, package incompatibilities, and a redacted first-line error message.",
104557
- "Crash reports also include a short output tail or stack, with paths, URLs, known secrets and environment assignments redacted. Output can contain other app text."
104558
- ];
104559
- PRIVACY_NOTICE = [
104560
- "Anonymous diagnostics and crash reports are on.",
104561
- ...PRIVACY_CONTENTS,
104562
- "Turn them off with `peach config telemetry off`, or DO_NOT_TRACK=1 for one run."
104563
- ];
104564
104582
  }
104565
104583
  });
104566
104584
 
@@ -106377,7 +106395,7 @@ var init_meta = __esm({
106377
106395
  navTitle: "setup",
106378
106396
  title: "peach setup",
106379
106397
  description: "configure optional local conveniences",
106380
- summary: "peach works without project setup. This guided flow saves an API key it finds in PEACH_API_KEY or ~/Downloads/peach-api-key.txt (the welcome dialog on peachsim.com downloads it), or asks for one when a person is at the terminal, so tests and recordings work. It explains and offers the strongly recommended background service, which keeps the bridge and runtime ready so agent inspection, interaction, and test commands start much faster. It also installs the native desktop app where it ships (Windows chooses Browser or its Desktop app), says once that bounded diagnostics and crash reports are on and how to turn them off, and can optionally add an exact peachsim dependency plus a peach script when the current directory is inside a Git repository. Declining the service is reversible with `peach daemon install`.",
106398
+ summary: "peach works without project setup. This guided flow saves an API key it finds in PEACH_API_KEY or ~/Downloads/peach-api-key.txt (the welcome dialog on peachsim.com downloads it), or asks for one when a person is at the terminal, so tests and recordings work. It explains and offers the strongly recommended background service, which keeps the bridge and runtime ready so agent inspection, interaction, and test commands start much faster. It also installs the native desktop app where it ships (Windows chooses Browser or its Desktop app), offers to enable bounded diagnostics and crash reports, and can optionally add an exact peachsim dependency plus a peach script when the current directory is inside a Git repository. Declining the service is reversible with `peach daemon install`.",
106381
106399
  order: 140,
106382
106400
  usage: ["peach setup [options]"],
106383
106401
  options: [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -29050,6 +29050,7 @@ var import_node_util6 = require("node:util");
29050
29050
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29051
29051
 
29052
29052
  // src/swift-packages.ts
29053
+ var swiftBinaryOnDisk = (binary) => binary.url !== null || import_node_fs38.default.existsSync(binary.dir);
29053
29054
  var SWIFT_PLACEHOLDER_PACKAGES = /* @__PURE__ */ new Map();
29054
29055
  var placeholderPackage = (pkg) => SWIFT_PLACEHOLDER_PACKAGES.get(swiftPackageIdentity(pkg.manifest.dir));
29055
29056
  function remoteSwiftCheckouts(root) {
@@ -29646,7 +29647,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
29646
29647
  return hash.digest("hex");
29647
29648
  }
29648
29649
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29649
- var STANDIN_SOURCE_DIGEST = true ? "8aa8fa5480dd940d4e0749e290b7a4ed774e98dc3033928ab12d7addc2edb16b" : standinSourceDigest();
29650
+ var STANDIN_SOURCE_DIGEST = true ? "561a9a7ebdd507444399a3f8310b2de4592885f9acd0f1005a06c09111d0005b" : standinSourceDigest();
29650
29651
 
29651
29652
  // src/swift-standins.ts
29652
29653
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -32659,7 +32660,7 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
32659
32660
  clangModules.set(import_node_path48.default.resolve(binary.dir, binary.publicHeaders), binary.target);
32660
32661
  }
32661
32662
  const frameworkBinaries = binaries.filter(
32662
- (binary) => binary.reached && binary.publicHeaders === void 0 && binary.placeholder === void 0
32663
+ (binary) => binary.reached && binary.publicHeaders === void 0 && binary.placeholder === void 0 && swiftBinaryOnDisk(binary)
32663
32664
  );
32664
32665
  const declaredFrameworks = moduleRoot && frameworkBinaries.length > 0 ? {
32665
32666
  moduleRoot,
@@ -33731,7 +33732,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
33731
33732
  return [...binaries];
33732
33733
  const staged = remoteSwiftCheckouts(app.rootDir);
33733
33734
  if (!binaries.some(
33734
- (binary) => binary.publicHeaders === void 0 && binary.placeholder === void 0 && binaryHeaderSearchPaths(binary, staged).headers.length === 1
33735
+ (binary) => binary.publicHeaders === void 0 && binary.placeholder === void 0 && swiftBinaryOnDisk(binary) && binaryHeaderSearchPaths(binary, staged).headers.length === 1
33735
33736
  ))
33736
33737
  return [...binaries];
33737
33738
  const hash = (0, import_node_crypto26.createHash)("sha256");
@@ -33780,7 +33781,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
33780
33781
  });
33781
33782
  const checkouts = remoteSwiftCheckouts(app.rootDir);
33782
33783
  const search = binaries.map((binary) => {
33783
- if (binary.publicHeaders !== void 0 || binary.placeholder !== void 0)
33784
+ if (binary.publicHeaders !== void 0 || binary.placeholder !== void 0 || !swiftBinaryOnDisk(binary))
33784
33785
  return null;
33785
33786
  const headers = binaryHeaderSearchPaths(binary, checkouts).headers;
33786
33787
  if (headers.length !== 1) return null;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -203,7 +203,7 @@ function isValidRuntimeVersion(value) {
203
203
  }
204
204
 
205
205
  // runtime-companion.json
206
- var runtime_companion_default = { abi: 1, sha256: "f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994", file: "node/cli-f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994.cjs" };
206
+ var runtime_companion_default = { abi: 1, sha256: "127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43", file: "node/cli-127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43.cjs" };
207
207
 
208
208
  // src/answeredNativePackages.ts
209
209
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1961 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1963 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1961",
3
+ "version": "0.1.1963",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994","file":"node/cli-f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994.cjs"}
1
+ {"abi":1,"sha256":"127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43","file":"node/cli-127deab9af03c4dbb7e43312af50fa1e0053c61d1cfe99395c38fbfef5bfab43.cjs"}
@@ -448,6 +448,37 @@ function cloneNativeTarget(target: SwiftNativeTarget): SwiftNativeTarget {
448
448
  }
449
449
  }
450
450
 
451
+ // a podspec without a platform declaration is available everywhere; otherwise
452
+ // only the platforms it names are, through platforms, platform or a
453
+ // per-platform deployment target. ruby beyond those literals is not evaluated.
454
+ function podSupportsIOS(pod: unknown): boolean {
455
+ if (
456
+ !isRecord(pod) ||
457
+ typeof pod.podName !== 'string' ||
458
+ typeof pod.podspecDir !== 'string'
459
+ )
460
+ throw new Error('invalid Expo autolinking pod')
461
+ const base = path.join(pod.podspecDir, pod.podName)
462
+ if (fs.existsSync(`${base}.podspec.json`)) {
463
+ const platforms: unknown = JSON.parse(
464
+ fs.readFileSync(`${base}.podspec.json`, 'utf8'),
465
+ ).platforms
466
+ return !isRecord(platforms) || 'ios' in platforms
467
+ }
468
+ if (!fs.existsSync(`${base}.podspec`)) return true
469
+ const spec = fs.readFileSync(`${base}.podspec`, 'utf8')
470
+ const names = new Set<string>()
471
+ for (const [, hash] of spec.matchAll(/\.platforms\s*=\s*\{([^}]*)\}/g))
472
+ for (const [, a, b, c] of hash!.matchAll(
473
+ /:(\w+)\s*=>|\b(\w+):\s|['"](\w+)['"]\s*=>/g,
474
+ ))
475
+ names.add((a ?? b ?? c)!)
476
+ for (const [, name] of spec.matchAll(/\.platform\s*=\s*:(\w+)/g)) names.add(name!)
477
+ for (const [, name] of spec.matchAll(/\.(\w+)\.deployment_target\s*=/g))
478
+ names.add(name!)
479
+ return names.size === 0 || names.has('ios')
480
+ }
481
+
451
482
  // a deployment entry for a target the adapter synthesizes: no clang inputs
452
483
  // of its own, only an inherited floor.
453
484
  function synthesizedNativeTarget(
@@ -1165,6 +1196,12 @@ async function collectExpoSwiftSourcesUncached(
1165
1196
  resolution && typeof resolution === 'object'
1166
1197
  ? Reflect.get(resolution, 'pods')
1167
1198
  : null
1199
+ // expo links a package into an iOS target only when one of its pods
1200
+ // supports iOS (autolinking_manager.rb packages_to_generate).
1201
+ if (Array.isArray(pods) && pods.length > 0 && !pods.some(podSupportsIOS)) {
1202
+ report(`${packageName} was not linked: no pod supports iOS`)
1203
+ continue
1204
+ }
1168
1205
  const delegateNames = (key: string): unknown[] => {
1169
1206
  const names =
1170
1207
  resolution && typeof resolution === 'object' ? Reflect.get(resolution, key) : null
package/src/home-paths.ts CHANGED
@@ -298,16 +298,15 @@ export interface PrivacyPreferences {
298
298
  configured: boolean
299
299
  }
300
300
 
301
- // bounded diagnostics and automatic crash reports are on until the person turns
302
- // them off (`peach config telemetry off`, or DO_NOT_TRACK for one run).
303
301
  export function readPrivacyPreferences(): PrivacyPreferences {
304
302
  const settings = readSharedConfig().settings
305
303
  const productAnalytics = settings?.productAnalytics
306
304
  const crashReports = settings?.crashReports
307
305
  return {
308
- productAnalytics: typeof productAnalytics === 'boolean' ? productAnalytics : true,
309
- crashReports: typeof crashReports === 'boolean' ? crashReports : true,
310
- configured: typeof productAnalytics === 'boolean',
306
+ productAnalytics: typeof productAnalytics === 'boolean' ? productAnalytics : false,
307
+ crashReports: typeof crashReports === 'boolean' ? crashReports : false,
308
+ configured:
309
+ typeof productAnalytics === 'boolean' || typeof crashReports === 'boolean',
311
310
  }
312
311
  }
313
312
 
@@ -566,13 +566,13 @@ export const settingsSchema: Record<SettingKey, SettingDef> = {
566
566
  // privacy
567
567
  productAnalytics: {
568
568
  type: 'boolean',
569
- default: true,
569
+ default: false,
570
570
  description: 'send bounded product usage analytics',
571
571
  group: 'privacy',
572
572
  },
573
573
  crashReports: {
574
574
  type: 'boolean',
575
- default: true,
575
+ default: false,
576
576
  description: 'send anonymous crash reports',
577
577
  group: 'privacy',
578
578
  },
@@ -9,7 +9,11 @@ import {
9
9
  prepareXcodeObjCImplementations,
10
10
  xcodeObjCInputs,
11
11
  } from './swift-objc-compile'
12
- import { remoteSwiftCheckouts, type SwiftPackageBinary } from './swift-packages'
12
+ import {
13
+ remoteSwiftCheckouts,
14
+ swiftBinaryOnDisk,
15
+ type SwiftPackageBinary,
16
+ } from './swift-packages'
13
17
  import { relativeInside } from './swift-source-file'
14
18
  import { binaryHeaderSearchPaths } from './swift-standins'
15
19
  import { swiftEnvironment } from './swift-toolchain'
@@ -63,6 +67,7 @@ export async function xcodeCxxReachable(
63
67
  (binary) =>
64
68
  binary.publicHeaders === undefined &&
65
69
  binary.placeholder === undefined &&
70
+ swiftBinaryOnDisk(binary) &&
66
71
  binaryHeaderSearchPaths(binary, staged).headers.length === 1,
67
72
  )
68
73
  )
@@ -125,7 +130,11 @@ export async function xcodeCxxReachable(
125
130
  })
126
131
  const checkouts = remoteSwiftCheckouts(app.rootDir)
127
132
  const search = binaries.map((binary) => {
128
- if (binary.publicHeaders !== undefined || binary.placeholder !== undefined)
133
+ if (
134
+ binary.publicHeaders !== undefined ||
135
+ binary.placeholder !== undefined ||
136
+ !swiftBinaryOnDisk(binary)
137
+ )
129
138
  return null
130
139
  const headers = binaryHeaderSearchPaths(binary, checkouts).headers
131
140
  if (headers.length !== 1) return null
@@ -25,7 +25,11 @@ import {
25
25
  swiftTargetModuleName,
26
26
  } from './swift-package'
27
27
  import { swiftPackageManifest, swiftTargetFiles } from './swift-package-manifest'
28
- import { remoteSwiftCheckouts, type SwiftPackageBinary } from './swift-packages'
28
+ import {
29
+ remoteSwiftCheckouts,
30
+ swiftBinaryOnDisk,
31
+ type SwiftPackageBinary,
32
+ } from './swift-packages'
29
33
  import { readPackageFile, relativeInside } from './swift-source-file'
30
34
  import { STANDIN_SOURCE_DIGEST } from './swift-standin-digest'
31
35
  import { binaryHeaderSearchPaths, isBinaryLibraryFile } from './swift-standins'
@@ -403,7 +407,8 @@ function* xcodeObjCInputSteps(
403
407
  (binary) =>
404
408
  binary.reached &&
405
409
  binary.publicHeaders === undefined &&
406
- binary.placeholder === undefined,
410
+ binary.placeholder === undefined &&
411
+ swiftBinaryOnDisk(binary),
407
412
  )
408
413
  // all binaries consume the same source snapshot. scan its imports once.
409
414
  const declaredFrameworks =
@@ -128,6 +128,9 @@ export interface SwiftPackageBinary {
128
128
  placeholder?: { gap: string; sources: string[]; flags: string[] }
129
129
  }
130
130
 
131
+ export const swiftBinaryOnDisk = (binary: SwiftPackageBinary): boolean =>
132
+ binary.url !== null || fs.existsSync(binary.dir)
133
+
131
134
  // sdks that send telemetry, by package identity, that peach's swift cannot
132
135
  // compile yet, each with the compiler gap that forces it. their swift targets
133
136
  // stand in from their own public interface with inert bodies, so an app's