peachsim 0.1.1881 → 0.1.1886
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.
- package/cli/commands/control.ts +11 -10
- package/cli/commands/reset.ts +1 -1
- package/cli/outbound-endpoints.ts +1 -1
- package/detox/index.ts +62 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +8914 -4264
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +35 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +8494 -3955
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +9679 -5057
- package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
- package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +8 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +525 -120
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +523 -118
- package/dist-lib/native-app-identity-project.cjs +395 -72
- package/dist-lib/native-app-identity-project.mjs +720 -375
- package/dist-lib/native-app-identity.cjs +37 -1
- package/dist-lib/native-app-identity.mjs +36 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +58 -28
- package/dist-lib/public-origins-lib.json +233 -92
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +30711 -25956
- package/dist-lib/swift-compile.cjs +6782 -2533
- package/dist-lib/swift-compile.mjs +6112 -1864
- package/dist-lib/swift-package.cjs +20 -3
- package/dist-lib/swift-package.mjs +20 -3
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +8640 -4109
- package/dist-lib/vite.cjs +93 -13
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
- package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
- package/sdk/ios/usr/include/os/activity.h +534 -0
- package/sdk/ios/usr/include/os.modulemap +15 -0
- package/sdk/ios/wasm/include/fcntl.h +16 -0
- package/sdk/ios/wasm/include/string.h +5 -0
- package/sdk/native-hashes.json +1 -1
- package/src/dns-over-https.ts +61 -9
- package/src/expo-swift-host.ts +11 -3
- package/src/host/fetch-proxy-handler.ts +51 -2
- package/src/host/fetch-proxy-overrides.ts +4 -0
- package/src/host/hostname-resolver.ts +9 -5
- package/src/native-app-identity-project.ts +13 -2
- package/src/native-app-identity.ts +47 -0
- package/src/nitro-adapter.lock.json +260 -260
- package/src/nitro-superset.lock.json +4 -4
- package/src/storageSnapshotContract.ts +20 -1
- package/src/swift-compile.ts +399 -72
- package/src/swift-compiler-digest.ts +15 -0
- package/src/swift-coverage/xcode-packages.ts +3 -2
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-guest-archive.ts +153 -0
- package/src/swift-guest-compile.ts +449 -0
- package/src/swift-guest-image-ledger.ts +656 -0
- package/src/swift-guest-link-plan.ts +52 -0
- package/src/swift-guest-link.ts +1414 -0
- package/src/swift-guest-linked-spans.ts +338 -0
- package/src/swift-guest-manifest.ts +141 -0
- package/src/swift-guest-projection-storage.ts +310 -0
- package/src/swift-guest-projection.ts +252 -0
- package/src/swift-guest-runtime-plan.ts +834 -0
- package/src/swift-guest-source-inputs.ts +427 -0
- package/src/swift-guest-source-plan.ts +279 -0
- package/src/swift-host.ts +125 -17
- package/src/swift-link-roots.ts +27 -50
- package/src/swift-package-manifest.ts +34 -18
- package/src/swift-package.ts +32 -2
- package/src/swift-packages.ts +138 -17
- package/src/swift-runtime-products.ts +73 -0
- package/src/swift-shared-sdk.ts +1 -1
- package/src/swift-submit.ts +13 -3
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +313 -14
- package/src/swiftContract.ts +83 -0
- package/src/swiftRuntimeProductContract.ts +85 -45
- package/src/turbo-runtime.lock.json +23 -23
- package/src/wasm-optimize.ts +16 -4
- package/src/xcode-project.ts +142 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1886 | (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": "
|
|
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": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "6bf3eed98e77aac803f3015787d461af79f549c57a5773a83e13b46633a871c6", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "0669e4cca53dc8db00059018d7f93ff9139915fc0f4fb0c82a938febb7862dfe", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -92,7 +92,7 @@ var require_parse = __commonJS({
|
|
|
92
92
|
var token;
|
|
93
93
|
var key;
|
|
94
94
|
var root;
|
|
95
|
-
module2.exports = function
|
|
95
|
+
module2.exports = function parse4(text2, reviver) {
|
|
96
96
|
source = String(text2);
|
|
97
97
|
parseState = "start";
|
|
98
98
|
stack = [];
|
|
@@ -275,15 +275,15 @@ var require_parse = __commonJS({
|
|
|
275
275
|
return newToken("punctuator", read());
|
|
276
276
|
case "n":
|
|
277
277
|
read();
|
|
278
|
-
|
|
278
|
+
literal2("ull");
|
|
279
279
|
return newToken("null", null);
|
|
280
280
|
case "t":
|
|
281
281
|
read();
|
|
282
|
-
|
|
282
|
+
literal2("rue");
|
|
283
283
|
return newToken("boolean", true);
|
|
284
284
|
case "f":
|
|
285
285
|
read();
|
|
286
|
-
|
|
286
|
+
literal2("alse");
|
|
287
287
|
return newToken("boolean", false);
|
|
288
288
|
case "-":
|
|
289
289
|
case "+":
|
|
@@ -314,11 +314,11 @@ var require_parse = __commonJS({
|
|
|
314
314
|
return;
|
|
315
315
|
case "I":
|
|
316
316
|
read();
|
|
317
|
-
|
|
317
|
+
literal2("nfinity");
|
|
318
318
|
return newToken("numeric", Infinity);
|
|
319
319
|
case "N":
|
|
320
320
|
read();
|
|
321
|
-
|
|
321
|
+
literal2("aN");
|
|
322
322
|
return newToken("numeric", NaN);
|
|
323
323
|
case '"':
|
|
324
324
|
case "'":
|
|
@@ -412,11 +412,11 @@ var require_parse = __commonJS({
|
|
|
412
412
|
return;
|
|
413
413
|
case "I":
|
|
414
414
|
read();
|
|
415
|
-
|
|
415
|
+
literal2("nfinity");
|
|
416
416
|
return newToken("numeric", sign * Infinity);
|
|
417
417
|
case "N":
|
|
418
418
|
read();
|
|
419
|
-
|
|
419
|
+
literal2("aN");
|
|
420
420
|
return newToken("numeric", NaN);
|
|
421
421
|
}
|
|
422
422
|
throw invalidChar(read());
|
|
@@ -649,7 +649,7 @@ var require_parse = __commonJS({
|
|
|
649
649
|
column
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function literal2(s) {
|
|
653
653
|
for (const c2 of s) {
|
|
654
654
|
const p = peek();
|
|
655
655
|
if (p !== c2) {
|
|
@@ -947,12 +947,12 @@ var require_stringify = __commonJS({
|
|
|
947
947
|
replacerFunc = replacer;
|
|
948
948
|
} else if (Array.isArray(replacer)) {
|
|
949
949
|
propertyList = [];
|
|
950
|
-
for (const
|
|
950
|
+
for (const v5 of replacer) {
|
|
951
951
|
let item;
|
|
952
|
-
if (typeof
|
|
953
|
-
item =
|
|
954
|
-
} else if (typeof
|
|
955
|
-
item = String(
|
|
952
|
+
if (typeof v5 === "string") {
|
|
953
|
+
item = v5;
|
|
954
|
+
} else if (typeof v5 === "number" || v5 instanceof String || v5 instanceof Number) {
|
|
955
|
+
item = String(v5);
|
|
956
956
|
}
|
|
957
957
|
if (item !== void 0 && propertyList.indexOf(item) < 0) {
|
|
958
958
|
propertyList.push(item);
|
|
@@ -1150,10 +1150,10 @@ var require_stringify = __commonJS({
|
|
|
1150
1150
|
var require_lib = __commonJS({
|
|
1151
1151
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
1152
1152
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1153
|
-
var
|
|
1153
|
+
var parse4 = require_parse();
|
|
1154
1154
|
var stringify = require_stringify();
|
|
1155
1155
|
var JSON52 = {
|
|
1156
|
-
parse,
|
|
1156
|
+
parse: parse4,
|
|
1157
1157
|
stringify
|
|
1158
1158
|
};
|
|
1159
1159
|
module2.exports = JSON52;
|
|
@@ -1364,10 +1364,10 @@ function androidMergedResourceValuesDirectory(manifestFile) {
|
|
|
1364
1364
|
manifestFile
|
|
1365
1365
|
);
|
|
1366
1366
|
if (!match) return null;
|
|
1367
|
-
const [, intermediates,
|
|
1368
|
-
if (!
|
|
1369
|
-
const taskVariant =
|
|
1370
|
-
return `${intermediates}incremental/${
|
|
1367
|
+
const [, intermediates, variant2] = match;
|
|
1368
|
+
if (!variant2) return null;
|
|
1369
|
+
const taskVariant = variant2[0].toUpperCase() + variant2.slice(1);
|
|
1370
|
+
return `${intermediates}incremental/${variant2}/merge${taskVariant}Resources/merged.dir`;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
// src/is-record.ts
|
|
@@ -1663,6 +1663,21 @@ function xcodeTargetMemberVisitor(objects) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
// src/native-app-identity.ts
|
|
1666
|
+
function readKeychainAccessGroups(dictionary, resolve) {
|
|
1667
|
+
if (!isRecord(dictionary))
|
|
1668
|
+
throw new Error("native app entitlements are not a dictionary");
|
|
1669
|
+
const groups = dictionary["keychain-access-groups"];
|
|
1670
|
+
if (groups === void 0) return void 0;
|
|
1671
|
+
if (!Array.isArray(groups)) throw new Error("keychain-access-groups is not an array");
|
|
1672
|
+
return groups.map((group) => {
|
|
1673
|
+
if (typeof group !== "string")
|
|
1674
|
+
throw new Error("keychain access group is not a string");
|
|
1675
|
+
const value = resolve(group);
|
|
1676
|
+
if (!value || /\$[({]/.test(value))
|
|
1677
|
+
throw new Error("keychain access group has unresolved signing settings");
|
|
1678
|
+
return value;
|
|
1679
|
+
});
|
|
1680
|
+
}
|
|
1666
1681
|
function nonEmptyString(value) {
|
|
1667
1682
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
1668
1683
|
}
|
|
@@ -1842,8 +1857,8 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1842
1857
|
if (typeof configId === "string") {
|
|
1843
1858
|
const configObj = objects[configId];
|
|
1844
1859
|
if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
|
|
1845
|
-
for (const [k,
|
|
1846
|
-
if (typeof
|
|
1860
|
+
for (const [k, v5] of Object.entries(configObj.buildSettings)) {
|
|
1861
|
+
if (typeof v5 === "string") settings[k] = v5;
|
|
1847
1862
|
}
|
|
1848
1863
|
}
|
|
1849
1864
|
}
|
|
@@ -1858,8 +1873,8 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1858
1873
|
if (typeof configId === "string") {
|
|
1859
1874
|
const configObj = objects[configId];
|
|
1860
1875
|
if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
|
|
1861
|
-
for (const [k,
|
|
1862
|
-
if (typeof
|
|
1876
|
+
for (const [k, v5] of Object.entries(configObj.buildSettings)) {
|
|
1877
|
+
if (typeof v5 === "string") settings[k] = v5;
|
|
1863
1878
|
}
|
|
1864
1879
|
}
|
|
1865
1880
|
}
|
|
@@ -1909,6 +1924,19 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1909
1924
|
const applicationName = identityFieldFrom(settings, plistString(plist3, "CFBundleDisplayName"), void 0) ?? bundleName;
|
|
1910
1925
|
const dictionary = parseInfoPlist(plist3);
|
|
1911
1926
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
1927
|
+
let keychainAccessGroups;
|
|
1928
|
+
if (settings.CODE_SIGN_ENTITLEMENTS) {
|
|
1929
|
+
const entitlementPath = resolveBuildSetting(settings.CODE_SIGN_ENTITLEMENTS, settings);
|
|
1930
|
+
if (!entitlementPath)
|
|
1931
|
+
throw new Error("CODE_SIGN_ENTITLEMENTS has unresolved build settings");
|
|
1932
|
+
const source = files[`ios/${entitlementPath}`] ?? files[entitlementPath];
|
|
1933
|
+
if (source === void 0)
|
|
1934
|
+
throw new Error(`missing selected entitlement input ${entitlementPath}`);
|
|
1935
|
+
keychainAccessGroups = readKeychainAccessGroups(
|
|
1936
|
+
parseInfoPlist(source),
|
|
1937
|
+
(value) => resolveBuildSetting(value, settings)
|
|
1938
|
+
);
|
|
1939
|
+
}
|
|
1912
1940
|
const declaredDisplayName = dictionary.CFBundleDisplayName;
|
|
1913
1941
|
const applicationDisplayName = typeof declaredDisplayName === "string" ? resolveBuildSetting(declaredDisplayName, settings) : void 0;
|
|
1914
1942
|
if (applicationDisplayName === null)
|
|
@@ -2027,7 +2055,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2027
2055
|
return `${base.startsWith("/") ? "/" : ""}${segments.join("/")}`;
|
|
2028
2056
|
};
|
|
2029
2057
|
const project = Object.values(objects).find(
|
|
2030
|
-
(
|
|
2058
|
+
(object3) => isRecord(object3) && object3.isa === "PBXProject"
|
|
2031
2059
|
);
|
|
2032
2060
|
const projectDir = join2(
|
|
2033
2061
|
pbxprojPath.replace(/(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/, ""),
|
|
@@ -2100,6 +2128,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2100
2128
|
permissionUsageDescriptions,
|
|
2101
2129
|
infoPlistStrings,
|
|
2102
2130
|
urlQuerySchemes,
|
|
2131
|
+
...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
|
|
2103
2132
|
...shareIntoAppGroupId === void 0 ? {} : { shareIntoAppGroupId },
|
|
2104
2133
|
...rtcAppGroupIdentifier === void 0 ? {} : { rtcAppGroupIdentifier },
|
|
2105
2134
|
...screenShareExtensionBundleId === void 0 ? {} : { screenShareExtensionBundleId },
|
|
@@ -2163,6 +2192,24 @@ function peachsimPackageRoot() {
|
|
|
2163
2192
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
|
|
2164
2193
|
var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
|
|
2165
2194
|
var compilerArchives = {
|
|
2195
|
+
"swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
|
|
2196
|
+
identity: "45bb46301c86fe73",
|
|
2197
|
+
archive: "tar.gz",
|
|
2198
|
+
hosts: {
|
|
2199
|
+
"darwin-arm64": {
|
|
2200
|
+
checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
|
|
2201
|
+
manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
|
|
2202
|
+
},
|
|
2203
|
+
"linux-x64": {
|
|
2204
|
+
checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
|
|
2205
|
+
manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
|
|
2206
|
+
},
|
|
2207
|
+
"linux-arm64": {
|
|
2208
|
+
checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
|
|
2209
|
+
manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2166
2213
|
"swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
|
|
2167
2214
|
identity: "0b2d0a9011c88e66",
|
|
2168
2215
|
archive: "tar.gz",
|
|
@@ -2891,36 +2938,130 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
2891
2938
|
// src/swift-foundation.ts
|
|
2892
2939
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2893
2940
|
|
|
2894
|
-
// src/swift-
|
|
2895
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2896
|
-
var import_node_child_process = require("node:child_process");
|
|
2897
|
-
var import_node_util = require("node:util");
|
|
2898
|
-
var import_node_zlib = require("node:zlib");
|
|
2899
|
-
var run = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
2900
|
-
var deflate = (0, import_node_util.promisify)(import_node_zlib.gzip);
|
|
2901
|
-
var compressBrotli = (0, import_node_util.promisify)(import_node_zlib.brotliCompress);
|
|
2902
|
-
var inflateGzip = (0, import_node_util.promisify)(import_node_zlib.gunzip);
|
|
2903
|
-
|
|
2904
|
-
// src/swift-link-roots.ts
|
|
2905
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2906
|
-
|
|
2907
|
-
// src/swift-objc-import.ts
|
|
2941
|
+
// src/swift-guest-compile.ts
|
|
2908
2942
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2909
2943
|
|
|
2910
|
-
// src/swift-
|
|
2944
|
+
// src/swift-guest-archive.ts
|
|
2911
2945
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2912
2946
|
|
|
2913
|
-
// src/swift-
|
|
2914
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2915
|
-
|
|
2916
|
-
// src/swift-root-lock.ts
|
|
2947
|
+
// src/swift-wasm-prune.ts
|
|
2917
2948
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2949
|
+
var v2 = __toESM(require("valibot"), 1);
|
|
2918
2950
|
|
|
2919
|
-
// src/
|
|
2951
|
+
// src/swiftRuntimeProductContract.ts
|
|
2920
2952
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2953
|
+
var v = __toESM(require("valibot"), 1);
|
|
2954
|
+
var swiftFrameworkProductSchema = v.object({
|
|
2955
|
+
version: v.literal(1),
|
|
2956
|
+
packageName: v.string(),
|
|
2957
|
+
manifestSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
2958
|
+
product: v.object({
|
|
2959
|
+
name: v.string(),
|
|
2960
|
+
linkage: v.picklist(["static", "dynamic", "automatic"]),
|
|
2961
|
+
targets: v.array(v.string())
|
|
2962
|
+
}),
|
|
2963
|
+
// framework names are distinct from SDK library linkNames. they identify
|
|
2964
|
+
// the packaged owner, not an observed native image dependency.
|
|
2965
|
+
frameworkAliases: v.array(
|
|
2966
|
+
v.object({
|
|
2967
|
+
kind: v.literal("framework"),
|
|
2968
|
+
name: v.string(),
|
|
2969
|
+
targets: v.array(v.string()),
|
|
2970
|
+
moduleMap: v.string(),
|
|
2971
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
2972
|
+
wasmSdkId: v.string(),
|
|
2973
|
+
wasmSdkChecksum: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
2974
|
+
})
|
|
2975
|
+
),
|
|
2976
|
+
targets: v.array(
|
|
2977
|
+
v.object({
|
|
2978
|
+
name: v.string(),
|
|
2979
|
+
path: v.string(),
|
|
2980
|
+
kind: v.picklist(["regular", "system"]),
|
|
2981
|
+
dependencies: v.array(v.string())
|
|
2982
|
+
})
|
|
2983
|
+
),
|
|
2984
|
+
objects: v.array(v.object({ path: v.string(), target: v.string() })),
|
|
2985
|
+
autolink: v.array(v.string())
|
|
2986
|
+
});
|
|
2987
|
+
var swiftSdkProductSchema = v.pipe(
|
|
2988
|
+
v.object({
|
|
2989
|
+
id: v.string(),
|
|
2990
|
+
installName: v.string(),
|
|
2991
|
+
target: v.literal("wasm32-unknown-wasip1"),
|
|
2992
|
+
linkNames: v.array(v.string()),
|
|
2993
|
+
// absent records declare no framework namespace, even when a library name matches.
|
|
2994
|
+
frameworkAliases: v.optional(
|
|
2995
|
+
v.array(
|
|
2996
|
+
v.object({
|
|
2997
|
+
name: v.string(),
|
|
2998
|
+
moduleMap: v.string(),
|
|
2999
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
3000
|
+
})
|
|
3001
|
+
),
|
|
3002
|
+
[]
|
|
3003
|
+
),
|
|
3004
|
+
buildDependencies: v.array(v.string()),
|
|
3005
|
+
linkOwnership: v.picklist(["image", "containing-image"]),
|
|
3006
|
+
linkDependencies: v.nullable(v.array(v.string())),
|
|
3007
|
+
autolink: v.array(v.string()),
|
|
3008
|
+
sources: v.array(
|
|
3009
|
+
v.object({
|
|
3010
|
+
path: v.string(),
|
|
3011
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
3012
|
+
})
|
|
3013
|
+
),
|
|
3014
|
+
artifacts: v.array(
|
|
3015
|
+
v.variant("kind", [
|
|
3016
|
+
v.object({
|
|
3017
|
+
kind: v.literal("archive"),
|
|
3018
|
+
path: v.string(),
|
|
3019
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
3020
|
+
members: v.array(
|
|
3021
|
+
v.object({
|
|
3022
|
+
name: v.string(),
|
|
3023
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
3024
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
3025
|
+
sources: v.array(v.string())
|
|
3026
|
+
})
|
|
3027
|
+
)
|
|
3028
|
+
}),
|
|
3029
|
+
v.object({
|
|
3030
|
+
kind: v.literal("object"),
|
|
3031
|
+
path: v.string(),
|
|
3032
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
3033
|
+
sources: v.array(v.string()),
|
|
3034
|
+
input: v.optional(
|
|
3035
|
+
v.object({
|
|
3036
|
+
product: v.string(),
|
|
3037
|
+
artifact: v.object({
|
|
3038
|
+
path: v.string(),
|
|
3039
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
3040
|
+
}),
|
|
3041
|
+
member: v.optional(
|
|
3042
|
+
v.object({
|
|
3043
|
+
name: v.string(),
|
|
3044
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
3045
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
3046
|
+
})
|
|
3047
|
+
)
|
|
3048
|
+
})
|
|
3049
|
+
)
|
|
3050
|
+
})
|
|
3051
|
+
])
|
|
3052
|
+
)
|
|
3053
|
+
}),
|
|
3054
|
+
v.check(
|
|
3055
|
+
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
3056
|
+
"containing-image products cannot declare an image scope"
|
|
3057
|
+
)
|
|
3058
|
+
);
|
|
3059
|
+
var swiftSdkProductsSchema = v.object({
|
|
3060
|
+
version: v.literal(1),
|
|
3061
|
+
products: v.array(swiftSdkProductSchema)
|
|
3062
|
+
});
|
|
2921
3063
|
|
|
2922
3064
|
// src/swift-wasm-prune.ts
|
|
2923
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2924
3065
|
var PRUNED_SDK_ARCHIVES = /* @__PURE__ */ new Set([
|
|
2925
3066
|
"libFoundation",
|
|
2926
3067
|
"lib_FoundationCollections",
|
|
@@ -2940,7 +3081,63 @@ var OMIT_SDK_LIB_FLAGS = /* @__PURE__ */ new Set([
|
|
|
2940
3081
|
"-lswift_Concurrency"
|
|
2941
3082
|
]);
|
|
2942
3083
|
|
|
2943
|
-
// src/
|
|
3084
|
+
// src/swift-guest-link.ts
|
|
3085
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3086
|
+
|
|
3087
|
+
// src/swift-guest-image-ledger.ts
|
|
3088
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3089
|
+
|
|
3090
|
+
// src/swift-guest-link-plan.ts
|
|
3091
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3092
|
+
|
|
3093
|
+
// src/swift-guest-manifest.ts
|
|
3094
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3095
|
+
|
|
3096
|
+
// src/swift-guest-projection-storage.ts
|
|
3097
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3098
|
+
|
|
3099
|
+
// src/swift-guest-linked-spans.ts
|
|
3100
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3101
|
+
|
|
3102
|
+
// src/swift-guest-projection.ts
|
|
3103
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3104
|
+
|
|
3105
|
+
// src/swiftGuestImageContract.ts
|
|
3106
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3107
|
+
|
|
3108
|
+
// src/swift-guest-projection-storage.ts
|
|
3109
|
+
var maxProjectionRegions = 1 << 20;
|
|
3110
|
+
|
|
3111
|
+
// src/swift-guest-runtime-plan.ts
|
|
3112
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3113
|
+
var v4 = __toESM(require("valibot"), 1);
|
|
3114
|
+
|
|
3115
|
+
// src/swift-guest-source-plan.ts
|
|
3116
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3117
|
+
|
|
3118
|
+
// src/swift-runtime-products.ts
|
|
3119
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3120
|
+
var v3 = __toESM(require("valibot"), 1);
|
|
3121
|
+
var packageSchema = v3.object({
|
|
3122
|
+
name: v3.string(),
|
|
3123
|
+
products: v3.array(
|
|
3124
|
+
v3.object({
|
|
3125
|
+
name: v3.string(),
|
|
3126
|
+
targets: v3.array(v3.string()),
|
|
3127
|
+
type: v3.unknown()
|
|
3128
|
+
})
|
|
3129
|
+
),
|
|
3130
|
+
targets: v3.array(
|
|
3131
|
+
v3.object({
|
|
3132
|
+
name: v3.string(),
|
|
3133
|
+
type: v3.string(),
|
|
3134
|
+
path: v3.optional(v3.string()),
|
|
3135
|
+
dependencies: v3.array(v3.unknown())
|
|
3136
|
+
})
|
|
3137
|
+
)
|
|
3138
|
+
});
|
|
3139
|
+
|
|
3140
|
+
// src/swift-guest-source-inputs.ts
|
|
2944
3141
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2945
3142
|
|
|
2946
3143
|
// src/wasm-optimize.ts
|
|
@@ -2960,6 +3157,37 @@ var FEATURES = [
|
|
|
2960
3157
|
];
|
|
2961
3158
|
var WASM_OPTIMIZE_IDENTITY = `wasm-opt ${import_wasm_opt.BINARYEN_VERSION} -Oz ${FEATURES.join(",")}`;
|
|
2962
3159
|
|
|
3160
|
+
// src/swift-icu.ts
|
|
3161
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3162
|
+
var import_node_child_process = require("node:child_process");
|
|
3163
|
+
var import_node_util = require("node:util");
|
|
3164
|
+
var import_node_zlib = require("node:zlib");
|
|
3165
|
+
var run = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
3166
|
+
var deflate = (0, import_node_util.promisify)(import_node_zlib.gzip);
|
|
3167
|
+
var compressBrotli = (0, import_node_util.promisify)(import_node_zlib.brotliCompress);
|
|
3168
|
+
var inflateGzip = (0, import_node_util.promisify)(import_node_zlib.gunzip);
|
|
3169
|
+
|
|
3170
|
+
// src/swift-link-roots.ts
|
|
3171
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3172
|
+
|
|
3173
|
+
// src/swift-objc-import.ts
|
|
3174
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3175
|
+
|
|
3176
|
+
// src/swift-project-user.ts
|
|
3177
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3178
|
+
|
|
3179
|
+
// src/swift-reproducible.ts
|
|
3180
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3181
|
+
|
|
3182
|
+
// src/swift-root-lock.ts
|
|
3183
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3184
|
+
|
|
3185
|
+
// src/swift-uniform-type-constants.ts
|
|
3186
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3187
|
+
|
|
3188
|
+
// src/swiftContract.ts
|
|
3189
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3190
|
+
|
|
2963
3191
|
// src/write-build-file.ts
|
|
2964
3192
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2965
3193
|
|
|
@@ -3046,7 +3274,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
3046
3274
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
3047
3275
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
3048
3276
|
).join("");
|
|
3049
|
-
var compilerSourceDigest = true ? "
|
|
3277
|
+
var compilerSourceDigest = true ? "a3a3606aced607c5458fcb143386bc40e87f886a19f283b511374ac04ba02293" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
3050
3278
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
3051
3279
|
"CFAllocator",
|
|
3052
3280
|
"CFArray",
|
|
@@ -3496,6 +3724,16 @@ var PRE_CXX20_STANDARDS = /* @__PURE__ */ new Set([
|
|
|
3496
3724
|
]);
|
|
3497
3725
|
var APPLICATION = "com.apple.product-type.application";
|
|
3498
3726
|
var RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
3727
|
+
var PRODUCT_MACH_O_TYPES = {
|
|
3728
|
+
"com.apple.product-type.application": "mh_execute",
|
|
3729
|
+
"com.apple.product-type.app-extension": "mh_execute",
|
|
3730
|
+
"com.apple.product-type.tool": "mh_execute",
|
|
3731
|
+
"com.apple.product-type.framework": "mh_dylib",
|
|
3732
|
+
"com.apple.product-type.framework.static": "staticlib",
|
|
3733
|
+
"com.apple.product-type.library.dynamic": "mh_dylib",
|
|
3734
|
+
"com.apple.product-type.library.static": "staticlib",
|
|
3735
|
+
"com.apple.product-type.bundle": "mh_bundle"
|
|
3736
|
+
};
|
|
3499
3737
|
var FRAMEWORK_PRODUCTS = /* @__PURE__ */ new Set([
|
|
3500
3738
|
"com.apple.product-type.framework",
|
|
3501
3739
|
"com.apple.product-type.framework.static"
|
|
@@ -3668,11 +3906,11 @@ function loadProject(xcodeproj) {
|
|
|
3668
3906
|
throw new Error(`${projectFile} has no objects table`);
|
|
3669
3907
|
}
|
|
3670
3908
|
const objects = root.objects;
|
|
3671
|
-
const
|
|
3909
|
+
const object3 = (id) => {
|
|
3672
3910
|
const found = id === void 0 ? void 0 : objects[id];
|
|
3673
3911
|
return isDict(found) ? found : void 0;
|
|
3674
3912
|
};
|
|
3675
|
-
const project =
|
|
3913
|
+
const project = object3(str(root.rootObject));
|
|
3676
3914
|
if (!project || project.isa !== "PBXProject") {
|
|
3677
3915
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
3678
3916
|
}
|
|
@@ -3686,7 +3924,7 @@ function loadProject(xcodeproj) {
|
|
|
3686
3924
|
objects,
|
|
3687
3925
|
project,
|
|
3688
3926
|
projectDir,
|
|
3689
|
-
object,
|
|
3927
|
+
object: object3,
|
|
3690
3928
|
resolvePath,
|
|
3691
3929
|
visitMembers: xcodeTargetMemberVisitor(objects)
|
|
3692
3930
|
};
|
|
@@ -3771,6 +4009,11 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
3771
4009
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
3772
4010
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
3773
4011
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
4012
|
+
MACH_O_TYPE: () => PRODUCT_MACH_O_TYPES[str(target.productType) ?? ""] ?? "",
|
|
4013
|
+
// the native defaults of CoreBuildSystem.xcspec for a dynamic framework
|
|
4014
|
+
EXECUTABLE_PATH: () => FRAMEWORK_PRODUCTS.has(str(target.productType) ?? "") ? `${get("PRODUCT_NAME")}.framework/${get("EXECUTABLE_NAME")}` : get("EXECUTABLE_NAME"),
|
|
4015
|
+
DYLIB_INSTALL_NAME_BASE: () => "/Library/Frameworks",
|
|
4016
|
+
LD_DYLIB_INSTALL_NAME: () => get("MACH_O_TYPE") === "mh_dylib" ? `${get("DYLIB_INSTALL_NAME_BASE")}/${get("EXECUTABLE_PATH")}` : "",
|
|
3774
4017
|
// the native default of CoreBuildSystem.xcspec
|
|
3775
4018
|
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES: () => "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
|
|
3776
4019
|
};
|
|
@@ -4451,16 +4694,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4451
4694
|
(ref) => ref.id === remote || str(ref.target.productReference) === remote
|
|
4452
4695
|
);
|
|
4453
4696
|
};
|
|
4454
|
-
const
|
|
4697
|
+
const linkedTargets = (ref) => {
|
|
4455
4698
|
const { project, target } = ref;
|
|
4456
4699
|
const found = [];
|
|
4457
|
-
for (const dependencyId of list(target.dependencies)) {
|
|
4458
|
-
const dependency = project.object(dependencyId);
|
|
4459
|
-
if (!dependency || !xcodeBuildFileBuildsForIos(dependency)) continue;
|
|
4460
|
-
const direct = str(dependency.target);
|
|
4461
|
-
const resolved = direct ? projectTargets(project).find((candidate) => candidate.id === direct) : proxied(project, str(dependency.targetProxy));
|
|
4462
|
-
if (resolved) found.push(resolved);
|
|
4463
|
-
}
|
|
4464
4700
|
for (const phaseId of list(target.buildPhases)) {
|
|
4465
4701
|
const phase = project.object(phaseId);
|
|
4466
4702
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
@@ -4469,10 +4705,37 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4469
4705
|
if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
|
|
4470
4706
|
const file = project.object(str(buildFile.fileRef));
|
|
4471
4707
|
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path10.default.basename(str(file.path) ?? "")) : void 0;
|
|
4472
|
-
if (resolved)
|
|
4708
|
+
if (resolved)
|
|
4709
|
+
found.push({
|
|
4710
|
+
target: resolved,
|
|
4711
|
+
attributes: list(
|
|
4712
|
+
isDict(buildFile.settings) ? buildFile.settings.ATTRIBUTES : void 0
|
|
4713
|
+
)
|
|
4714
|
+
});
|
|
4473
4715
|
}
|
|
4474
4716
|
}
|
|
4475
|
-
return found
|
|
4717
|
+
return found;
|
|
4718
|
+
};
|
|
4719
|
+
const frameworkFlagLinks = (ref, flags) => {
|
|
4720
|
+
const words = settingList(flags);
|
|
4721
|
+
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
4722
|
+
return words.flatMap((word, index) => {
|
|
4723
|
+
const target = words[index - 1] === "-framework" ? byProduct.get(`${word}.framework`) : void 0;
|
|
4724
|
+
if (!target || target === ref || linked.has(target)) return [];
|
|
4725
|
+
linked.add(target);
|
|
4726
|
+
return [{ target, attributes: [] }];
|
|
4727
|
+
});
|
|
4728
|
+
};
|
|
4729
|
+
const dependenciesOf = (ref) => {
|
|
4730
|
+
const { project, target } = ref;
|
|
4731
|
+
const found = list(target.dependencies).flatMap((dependencyId) => {
|
|
4732
|
+
const dependency = project.object(dependencyId);
|
|
4733
|
+
if (!dependency || !xcodeBuildFileBuildsForIos(dependency)) return [];
|
|
4734
|
+
const direct = str(dependency.target);
|
|
4735
|
+
const resolved = direct ? projectTargets(project).find((candidate) => candidate.id === direct) : proxied(project, str(dependency.targetProxy));
|
|
4736
|
+
return resolved ? [resolved] : [];
|
|
4737
|
+
});
|
|
4738
|
+
return [...found, ...linkedTargets(ref).map((link) => link.target)].filter(
|
|
4476
4739
|
(candidate) => candidate.target.isa === "PBXAggregateTarget" || candidate.target.productType === RESOURCE_BUNDLE || MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
|
|
4477
4740
|
);
|
|
4478
4741
|
};
|
|
@@ -4689,13 +4952,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4689
4952
|
);
|
|
4690
4953
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
4691
4954
|
const [major, minor] = version.split(".");
|
|
4692
|
-
const
|
|
4955
|
+
const number2 = `${major === "" ? "0" : major}.${minor !== void 0 && /^\d+$/.test(minor) ? minor.replace(/^0+(?=\d)/, "") : ""}`;
|
|
4693
4956
|
const unit = [
|
|
4694
4957
|
` extern const unsigned char ${symbol}VersionString[];`,
|
|
4695
4958
|
` extern const double ${symbol}VersionNumber;`,
|
|
4696
4959
|
"",
|
|
4697
4960
|
` const unsigned char ${symbol}VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:${product} PROJECT:${settings2("PROJECT_NAME")}-${version}" "\\n";`,
|
|
4698
|
-
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${
|
|
4961
|
+
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
|
|
4699
4962
|
""
|
|
4700
4963
|
].join("\n");
|
|
4701
4964
|
if (!import_node_fs6.default.existsSync(versioning) || import_node_fs6.default.readFileSync(versioning, "utf8") !== unit) {
|
|
@@ -4797,6 +5060,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4797
5060
|
settings: settings2,
|
|
4798
5061
|
keys,
|
|
4799
5062
|
module: {
|
|
5063
|
+
id: `${ref.project.projectFile}#${ref.id}`,
|
|
4800
5064
|
name: name2,
|
|
4801
5065
|
targetIdentity: JSON.stringify([ref.project.xcodeproj, ref.id]),
|
|
4802
5066
|
targetDependencies: Array(),
|
|
@@ -5057,6 +5321,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5057
5321
|
}
|
|
5058
5322
|
}
|
|
5059
5323
|
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path10.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
5324
|
+
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path10.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
5325
|
+
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
5326
|
+
import_plist2.default.parse(import_node_fs6.default.readFileSync(entitlementsFile, "utf8")),
|
|
5327
|
+
(value) => expand(value, (key) => {
|
|
5328
|
+
const resolved = settings(key);
|
|
5329
|
+
if (!resolved) throw new Error(`missing signing build setting ${key}`);
|
|
5330
|
+
return resolved;
|
|
5331
|
+
})
|
|
5332
|
+
) : void 0;
|
|
5060
5333
|
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
5061
5334
|
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs6.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
5062
5335
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
@@ -5216,6 +5489,20 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5216
5489
|
productPlatforms.set(ref2, productPlatforms.get(ref2) === true || builds);
|
|
5217
5490
|
return builds ? [ref2] : [];
|
|
5218
5491
|
};
|
|
5492
|
+
const productAttributes = /* @__PURE__ */ new Map();
|
|
5493
|
+
for (const phaseId of list(target.buildPhases)) {
|
|
5494
|
+
const phase = project.object(phaseId);
|
|
5495
|
+
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
5496
|
+
for (const id of list(phase.files)) {
|
|
5497
|
+
const file = project.object(id);
|
|
5498
|
+
const product = str(file?.productRef);
|
|
5499
|
+
if (file && product && xcodeBuildFileBuildsForIos(file))
|
|
5500
|
+
productAttributes.set(
|
|
5501
|
+
product,
|
|
5502
|
+
list(isDict(file.settings) ? file.settings.ATTRIBUTES : void 0)
|
|
5503
|
+
);
|
|
5504
|
+
}
|
|
5505
|
+
}
|
|
5219
5506
|
const referencedProducts = [
|
|
5220
5507
|
...list(target.dependencies).flatMap(productRef),
|
|
5221
5508
|
...list(target.buildPhases).flatMap((id) => {
|
|
@@ -5224,6 +5511,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5224
5511
|
})
|
|
5225
5512
|
];
|
|
5226
5513
|
const productDependencies = [
|
|
5514
|
+
...productAttributes.keys(),
|
|
5227
5515
|
...list(target.packageProductDependencies).filter(
|
|
5228
5516
|
(id) => productPlatforms.get(id) !== false
|
|
5229
5517
|
),
|
|
@@ -5241,6 +5529,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5241
5529
|
const reference = project.object(str(dependency.package));
|
|
5242
5530
|
const linked = {
|
|
5243
5531
|
product,
|
|
5532
|
+
...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
|
|
5244
5533
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
5245
5534
|
kind: "local",
|
|
5246
5535
|
dir: import_node_path10.default.resolve(
|
|
@@ -5314,6 +5603,31 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5314
5603
|
const used = order.map((ref) => ref.project);
|
|
5315
5604
|
return {
|
|
5316
5605
|
...module2,
|
|
5606
|
+
sourceLinkGraph: {
|
|
5607
|
+
entry: module2.id,
|
|
5608
|
+
targets: builtTargets.filter(
|
|
5609
|
+
({ ref }) => ref === app || MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")
|
|
5610
|
+
).map(({ ref, module: module3, settings: settings2 }) => ({
|
|
5611
|
+
id: module3.id,
|
|
5612
|
+
sourceTarget: module3.allSources.length > 0 ? module3.moduleName : null,
|
|
5613
|
+
productName: settings2("FULL_PRODUCT_NAME") || str(ref.project.object(str(ref.target.productReference))?.path) || settings2("PRODUCT_NAME"),
|
|
5614
|
+
productType: str(ref.target.productType),
|
|
5615
|
+
installName: settings2("LD_DYLIB_INSTALL_NAME") || null,
|
|
5616
|
+
buildVersion: {
|
|
5617
|
+
platform: settings2("PLATFORM_NAME") || null,
|
|
5618
|
+
minimumOS: settings2("IPHONEOS_DEPLOYMENT_TARGET") || null,
|
|
5619
|
+
sdk: settings2("SDK_VERSION") || null
|
|
5620
|
+
},
|
|
5621
|
+
machOType: settings2("MACH_O_TYPE") || null,
|
|
5622
|
+
linkerFlags: settingList(settings2("OTHER_LDFLAGS")),
|
|
5623
|
+
dependencies: linkedTargets(ref).concat(frameworkFlagLinks(ref, settings2("OTHER_LDFLAGS"))).filter(
|
|
5624
|
+
(dependency) => MODULE_PRODUCTS.has(str(dependency.target.target.productType) ?? "")
|
|
5625
|
+
).map(({ target, attributes }) => ({
|
|
5626
|
+
target: `${target.project.projectFile}#${target.id}`,
|
|
5627
|
+
attributes
|
|
5628
|
+
}))
|
|
5629
|
+
}))
|
|
5630
|
+
},
|
|
5317
5631
|
moduleMapSources: Object.fromEntries(
|
|
5318
5632
|
builtTargets.flatMap(({ module: module3 }) => {
|
|
5319
5633
|
const compatibility = module3.swift?.compatibility;
|
|
@@ -5342,6 +5656,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5342
5656
|
.../* @__PURE__ */ new Set([
|
|
5343
5657
|
...used.map((project) => project.projectFile),
|
|
5344
5658
|
...xcconfigs,
|
|
5659
|
+
...entitlementsFile ? [entitlementsFile] : [],
|
|
5345
5660
|
...cocoapods ? [cocoapods.podfileLock, cocoapods.manifestLock, ...cocoapods.localPodspecs] : []
|
|
5346
5661
|
])
|
|
5347
5662
|
].sort(),
|
|
@@ -5349,6 +5664,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5349
5664
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
5350
5665
|
infoPlist: infoPlistPending ? null : import_plist2.default.build(info),
|
|
5351
5666
|
infoPlistFile,
|
|
5667
|
+
...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
|
|
5352
5668
|
postBundleScripts,
|
|
5353
5669
|
developmentRegion: str(app.project.project.developmentRegion) ?? "en",
|
|
5354
5670
|
frameworks,
|
|
@@ -5434,14 +5750,14 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
5434
5750
|
const querySchemes = dictionary.LSApplicationQueriesSchemes;
|
|
5435
5751
|
const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
|
|
5436
5752
|
const intentIds = dictionary.OneAppIntentIdentifiers;
|
|
5437
|
-
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((
|
|
5753
|
+
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v5) => typeof v5 === "string") ? intentIds : [];
|
|
5438
5754
|
const backgroundIds = dictionary.BGTaskSchedulerPermittedIdentifiers;
|
|
5439
|
-
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((
|
|
5755
|
+
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v5) => typeof v5 === "string") ? backgroundIds : [];
|
|
5440
5756
|
const declaredModes = dictionary.UIBackgroundModes;
|
|
5441
|
-
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((
|
|
5442
|
-
const supportedInterfaceOrientations = Array.isArray(dictionary.UISupportedInterfaceOrientations) && dictionary.UISupportedInterfaceOrientations.every((
|
|
5757
|
+
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v5) => typeof v5 === "string") ? declaredModes : [];
|
|
5758
|
+
const supportedInterfaceOrientations = Array.isArray(dictionary.UISupportedInterfaceOrientations) && dictionary.UISupportedInterfaceOrientations.every((v5) => typeof v5 === "string") ? dictionary.UISupportedInterfaceOrientations : [];
|
|
5443
5759
|
const ipadSupportedInterfaceOrientations = Array.isArray(dictionary["UISupportedInterfaceOrientations~ipad"]) && dictionary["UISupportedInterfaceOrientations~ipad"].every(
|
|
5444
|
-
(
|
|
5760
|
+
(v5) => typeof v5 === "string"
|
|
5445
5761
|
) ? dictionary["UISupportedInterfaceOrientations~ipad"] : [];
|
|
5446
5762
|
const defaultScreenOrientationMask = nonEmptyString2(
|
|
5447
5763
|
dictionary.EXDefaultScreenOrientationMask
|
|
@@ -5453,6 +5769,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
5453
5769
|
app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs7.default.existsSync(file)).map((file) => import_node_fs7.default.readFileSync(file, "utf8"))
|
|
5454
5770
|
);
|
|
5455
5771
|
return stampNativeBuildSdk({
|
|
5772
|
+
...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
|
|
5456
5773
|
applicationName,
|
|
5457
5774
|
...applicationDisplayName ? { applicationDisplayName } : {},
|
|
5458
5775
|
...rootModuleName ? { rootModuleName } : {},
|
|
@@ -5520,13 +5837,19 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
5520
5837
|
for (const entry of import_node_fs7.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
5521
5838
|
if (entry.name === "Pods") continue;
|
|
5522
5839
|
if (entry.isDirectory()) {
|
|
5523
|
-
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
5840
|
+
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
5841
|
+
"Info.plist",
|
|
5842
|
+
"AppDelegate.swift",
|
|
5843
|
+
"AppDelegate.mm",
|
|
5844
|
+
"AppDelegate.m",
|
|
5845
|
+
...import_node_fs7.default.readdirSync(import_node_path11.default.join(iosRoot, entry.name)).filter((name2) => name2.endsWith(".entitlements"))
|
|
5846
|
+
];
|
|
5524
5847
|
for (const name2 of names) {
|
|
5525
5848
|
const relative = `${prefix}${entry.name}/${name2}`;
|
|
5526
5849
|
const file = import_node_path11.default.join(projectRoot, relative);
|
|
5527
5850
|
if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
|
|
5528
5851
|
}
|
|
5529
|
-
} else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
|
|
5852
|
+
} else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
|
|
5530
5853
|
const relative = `${prefix}${entry.name}`;
|
|
5531
5854
|
const file = import_node_path11.default.join(projectRoot, relative);
|
|
5532
5855
|
if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
|