peachsim 0.1.1881 → 0.1.1887
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/control.ts +11 -10
- package/cli/commands/reset.ts +1 -1
- package/cli/native-input.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 +9079 -4305
- 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 +8609 -3976
- 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 +9894 -5149
- 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 +538 -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 +536 -118
- package/dist-lib/native-app-identity-project.cjs +408 -72
- package/dist-lib/native-app-identity-project.mjs +739 -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 +61 -28
- package/dist-lib/public-origins-lib.json +250 -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 +16568 -11674
- package/dist-lib/swift-compile.cjs +6874 -2537
- package/dist-lib/swift-compile.mjs +6207 -1866
- 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 +8753 -4124
- 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-bundle.ts +2 -7
- 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-bundle.ts +7 -10
- package/src/nitro-superset.lock.json +4 -4
- package/src/podspec-sources.ts +20 -0
- package/src/storageSnapshotContract.ts +20 -1
- package/src/swift-compile.ts +409 -77
- 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 +157 -36
- package/src/swift-icu.ts +60 -18
- 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 +15 -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-bundle.ts +1 -1
- package/src/turbo-codegen-intake.ts +10 -3
- 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.1887 | (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,50 @@ 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
|
+
|
|
3166
|
+
// ../sootsim-swift/src/icuData.ts
|
|
3167
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3168
|
+
|
|
3169
|
+
// ../peach-compat/src/stubs/wasm-memory.ts
|
|
3170
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3171
|
+
|
|
3172
|
+
// ../sootsim-swift/src/icuData.ts
|
|
3173
|
+
var PACK_BYTES = 64 * 1024;
|
|
3174
|
+
var VERSION = 1;
|
|
3175
|
+
var SWIFT_ICU_PACKED = `picu${VERSION}`;
|
|
3176
|
+
|
|
3177
|
+
// src/swift-icu.ts
|
|
3178
|
+
var run = (0, import_node_util.promisify)(import_node_child_process.execFile);
|
|
3179
|
+
var deflate = (0, import_node_util.promisify)(import_node_zlib.gzip);
|
|
3180
|
+
var compressBrotli = (0, import_node_util.promisify)(import_node_zlib.brotliCompress);
|
|
3181
|
+
var inflateGzip = (0, import_node_util.promisify)(import_node_zlib.gunzip);
|
|
3182
|
+
|
|
3183
|
+
// src/swift-link-roots.ts
|
|
3184
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3185
|
+
|
|
3186
|
+
// src/swift-objc-import.ts
|
|
3187
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3188
|
+
|
|
3189
|
+
// src/swift-project-user.ts
|
|
3190
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3191
|
+
|
|
3192
|
+
// src/swift-reproducible.ts
|
|
3193
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3194
|
+
|
|
3195
|
+
// src/swift-root-lock.ts
|
|
3196
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3197
|
+
|
|
3198
|
+
// src/swift-uniform-type-constants.ts
|
|
3199
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3200
|
+
|
|
3201
|
+
// src/swiftContract.ts
|
|
3202
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3203
|
+
|
|
2963
3204
|
// src/write-build-file.ts
|
|
2964
3205
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2965
3206
|
|
|
@@ -3046,7 +3287,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
3046
3287
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
3047
3288
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
3048
3289
|
).join("");
|
|
3049
|
-
var compilerSourceDigest = true ? "
|
|
3290
|
+
var compilerSourceDigest = true ? "d46232537a993bc7418818ab7d2dc159518328882280b8b4bfd459cffd910921" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
3050
3291
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
3051
3292
|
"CFAllocator",
|
|
3052
3293
|
"CFArray",
|
|
@@ -3496,6 +3737,16 @@ var PRE_CXX20_STANDARDS = /* @__PURE__ */ new Set([
|
|
|
3496
3737
|
]);
|
|
3497
3738
|
var APPLICATION = "com.apple.product-type.application";
|
|
3498
3739
|
var RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
3740
|
+
var PRODUCT_MACH_O_TYPES = {
|
|
3741
|
+
"com.apple.product-type.application": "mh_execute",
|
|
3742
|
+
"com.apple.product-type.app-extension": "mh_execute",
|
|
3743
|
+
"com.apple.product-type.tool": "mh_execute",
|
|
3744
|
+
"com.apple.product-type.framework": "mh_dylib",
|
|
3745
|
+
"com.apple.product-type.framework.static": "staticlib",
|
|
3746
|
+
"com.apple.product-type.library.dynamic": "mh_dylib",
|
|
3747
|
+
"com.apple.product-type.library.static": "staticlib",
|
|
3748
|
+
"com.apple.product-type.bundle": "mh_bundle"
|
|
3749
|
+
};
|
|
3499
3750
|
var FRAMEWORK_PRODUCTS = /* @__PURE__ */ new Set([
|
|
3500
3751
|
"com.apple.product-type.framework",
|
|
3501
3752
|
"com.apple.product-type.framework.static"
|
|
@@ -3668,11 +3919,11 @@ function loadProject(xcodeproj) {
|
|
|
3668
3919
|
throw new Error(`${projectFile} has no objects table`);
|
|
3669
3920
|
}
|
|
3670
3921
|
const objects = root.objects;
|
|
3671
|
-
const
|
|
3922
|
+
const object3 = (id) => {
|
|
3672
3923
|
const found = id === void 0 ? void 0 : objects[id];
|
|
3673
3924
|
return isDict(found) ? found : void 0;
|
|
3674
3925
|
};
|
|
3675
|
-
const project =
|
|
3926
|
+
const project = object3(str(root.rootObject));
|
|
3676
3927
|
if (!project || project.isa !== "PBXProject") {
|
|
3677
3928
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
3678
3929
|
}
|
|
@@ -3686,7 +3937,7 @@ function loadProject(xcodeproj) {
|
|
|
3686
3937
|
objects,
|
|
3687
3938
|
project,
|
|
3688
3939
|
projectDir,
|
|
3689
|
-
object,
|
|
3940
|
+
object: object3,
|
|
3690
3941
|
resolvePath,
|
|
3691
3942
|
visitMembers: xcodeTargetMemberVisitor(objects)
|
|
3692
3943
|
};
|
|
@@ -3771,6 +4022,11 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
3771
4022
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
3772
4023
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
3773
4024
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
4025
|
+
MACH_O_TYPE: () => PRODUCT_MACH_O_TYPES[str(target.productType) ?? ""] ?? "",
|
|
4026
|
+
// the native defaults of CoreBuildSystem.xcspec for a dynamic framework
|
|
4027
|
+
EXECUTABLE_PATH: () => FRAMEWORK_PRODUCTS.has(str(target.productType) ?? "") ? `${get("PRODUCT_NAME")}.framework/${get("EXECUTABLE_NAME")}` : get("EXECUTABLE_NAME"),
|
|
4028
|
+
DYLIB_INSTALL_NAME_BASE: () => "/Library/Frameworks",
|
|
4029
|
+
LD_DYLIB_INSTALL_NAME: () => get("MACH_O_TYPE") === "mh_dylib" ? `${get("DYLIB_INSTALL_NAME_BASE")}/${get("EXECUTABLE_PATH")}` : "",
|
|
3774
4030
|
// the native default of CoreBuildSystem.xcspec
|
|
3775
4031
|
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES: () => "*.nib *.lproj *.framework *.gch *.xcode* *.xcassets *.icon (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj"
|
|
3776
4032
|
};
|
|
@@ -4451,16 +4707,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4451
4707
|
(ref) => ref.id === remote || str(ref.target.productReference) === remote
|
|
4452
4708
|
);
|
|
4453
4709
|
};
|
|
4454
|
-
const
|
|
4710
|
+
const linkedTargets = (ref) => {
|
|
4455
4711
|
const { project, target } = ref;
|
|
4456
4712
|
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
4713
|
for (const phaseId of list(target.buildPhases)) {
|
|
4465
4714
|
const phase = project.object(phaseId);
|
|
4466
4715
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
@@ -4469,10 +4718,37 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4469
4718
|
if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
|
|
4470
4719
|
const file = project.object(str(buildFile.fileRef));
|
|
4471
4720
|
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)
|
|
4721
|
+
if (resolved)
|
|
4722
|
+
found.push({
|
|
4723
|
+
target: resolved,
|
|
4724
|
+
attributes: list(
|
|
4725
|
+
isDict(buildFile.settings) ? buildFile.settings.ATTRIBUTES : void 0
|
|
4726
|
+
)
|
|
4727
|
+
});
|
|
4473
4728
|
}
|
|
4474
4729
|
}
|
|
4475
|
-
return found
|
|
4730
|
+
return found;
|
|
4731
|
+
};
|
|
4732
|
+
const frameworkFlagLinks = (ref, flags) => {
|
|
4733
|
+
const words = settingList(flags);
|
|
4734
|
+
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
4735
|
+
return words.flatMap((word, index) => {
|
|
4736
|
+
const target = words[index - 1] === "-framework" ? byProduct.get(`${word}.framework`) : void 0;
|
|
4737
|
+
if (!target || target === ref || linked.has(target)) return [];
|
|
4738
|
+
linked.add(target);
|
|
4739
|
+
return [{ target, attributes: [] }];
|
|
4740
|
+
});
|
|
4741
|
+
};
|
|
4742
|
+
const dependenciesOf = (ref) => {
|
|
4743
|
+
const { project, target } = ref;
|
|
4744
|
+
const found = list(target.dependencies).flatMap((dependencyId) => {
|
|
4745
|
+
const dependency = project.object(dependencyId);
|
|
4746
|
+
if (!dependency || !xcodeBuildFileBuildsForIos(dependency)) return [];
|
|
4747
|
+
const direct = str(dependency.target);
|
|
4748
|
+
const resolved = direct ? projectTargets(project).find((candidate) => candidate.id === direct) : proxied(project, str(dependency.targetProxy));
|
|
4749
|
+
return resolved ? [resolved] : [];
|
|
4750
|
+
});
|
|
4751
|
+
return [...found, ...linkedTargets(ref).map((link) => link.target)].filter(
|
|
4476
4752
|
(candidate) => candidate.target.isa === "PBXAggregateTarget" || candidate.target.productType === RESOURCE_BUNDLE || MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
|
|
4477
4753
|
);
|
|
4478
4754
|
};
|
|
@@ -4689,13 +4965,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4689
4965
|
);
|
|
4690
4966
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
4691
4967
|
const [major, minor] = version.split(".");
|
|
4692
|
-
const
|
|
4968
|
+
const number2 = `${major === "" ? "0" : major}.${minor !== void 0 && /^\d+$/.test(minor) ? minor.replace(/^0+(?=\d)/, "") : ""}`;
|
|
4693
4969
|
const unit = [
|
|
4694
4970
|
` extern const unsigned char ${symbol}VersionString[];`,
|
|
4695
4971
|
` extern const double ${symbol}VersionNumber;`,
|
|
4696
4972
|
"",
|
|
4697
4973
|
` const unsigned char ${symbol}VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:${product} PROJECT:${settings2("PROJECT_NAME")}-${version}" "\\n";`,
|
|
4698
|
-
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${
|
|
4974
|
+
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
|
|
4699
4975
|
""
|
|
4700
4976
|
].join("\n");
|
|
4701
4977
|
if (!import_node_fs6.default.existsSync(versioning) || import_node_fs6.default.readFileSync(versioning, "utf8") !== unit) {
|
|
@@ -4797,6 +5073,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
4797
5073
|
settings: settings2,
|
|
4798
5074
|
keys,
|
|
4799
5075
|
module: {
|
|
5076
|
+
id: `${ref.project.projectFile}#${ref.id}`,
|
|
4800
5077
|
name: name2,
|
|
4801
5078
|
targetIdentity: JSON.stringify([ref.project.xcodeproj, ref.id]),
|
|
4802
5079
|
targetDependencies: Array(),
|
|
@@ -5057,6 +5334,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5057
5334
|
}
|
|
5058
5335
|
}
|
|
5059
5336
|
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path10.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
5337
|
+
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path10.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
5338
|
+
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
5339
|
+
import_plist2.default.parse(import_node_fs6.default.readFileSync(entitlementsFile, "utf8")),
|
|
5340
|
+
(value) => expand(value, (key) => {
|
|
5341
|
+
const resolved = settings(key);
|
|
5342
|
+
if (!resolved) throw new Error(`missing signing build setting ${key}`);
|
|
5343
|
+
return resolved;
|
|
5344
|
+
})
|
|
5345
|
+
) : void 0;
|
|
5060
5346
|
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
5061
5347
|
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs6.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
5062
5348
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
@@ -5216,6 +5502,20 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5216
5502
|
productPlatforms.set(ref2, productPlatforms.get(ref2) === true || builds);
|
|
5217
5503
|
return builds ? [ref2] : [];
|
|
5218
5504
|
};
|
|
5505
|
+
const productAttributes = /* @__PURE__ */ new Map();
|
|
5506
|
+
for (const phaseId of list(target.buildPhases)) {
|
|
5507
|
+
const phase = project.object(phaseId);
|
|
5508
|
+
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
5509
|
+
for (const id of list(phase.files)) {
|
|
5510
|
+
const file = project.object(id);
|
|
5511
|
+
const product = str(file?.productRef);
|
|
5512
|
+
if (file && product && xcodeBuildFileBuildsForIos(file))
|
|
5513
|
+
productAttributes.set(
|
|
5514
|
+
product,
|
|
5515
|
+
list(isDict(file.settings) ? file.settings.ATTRIBUTES : void 0)
|
|
5516
|
+
);
|
|
5517
|
+
}
|
|
5518
|
+
}
|
|
5219
5519
|
const referencedProducts = [
|
|
5220
5520
|
...list(target.dependencies).flatMap(productRef),
|
|
5221
5521
|
...list(target.buildPhases).flatMap((id) => {
|
|
@@ -5224,6 +5524,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5224
5524
|
})
|
|
5225
5525
|
];
|
|
5226
5526
|
const productDependencies = [
|
|
5527
|
+
...productAttributes.keys(),
|
|
5227
5528
|
...list(target.packageProductDependencies).filter(
|
|
5228
5529
|
(id) => productPlatforms.get(id) !== false
|
|
5229
5530
|
),
|
|
@@ -5241,6 +5542,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5241
5542
|
const reference = project.object(str(dependency.package));
|
|
5242
5543
|
const linked = {
|
|
5243
5544
|
product,
|
|
5545
|
+
...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
|
|
5244
5546
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
5245
5547
|
kind: "local",
|
|
5246
5548
|
dir: import_node_path10.default.resolve(
|
|
@@ -5314,6 +5616,31 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5314
5616
|
const used = order.map((ref) => ref.project);
|
|
5315
5617
|
return {
|
|
5316
5618
|
...module2,
|
|
5619
|
+
sourceLinkGraph: {
|
|
5620
|
+
entry: module2.id,
|
|
5621
|
+
targets: builtTargets.filter(
|
|
5622
|
+
({ ref }) => ref === app || MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")
|
|
5623
|
+
).map(({ ref, module: module3, settings: settings2 }) => ({
|
|
5624
|
+
id: module3.id,
|
|
5625
|
+
sourceTarget: module3.allSources.length > 0 ? module3.moduleName : null,
|
|
5626
|
+
productName: settings2("FULL_PRODUCT_NAME") || str(ref.project.object(str(ref.target.productReference))?.path) || settings2("PRODUCT_NAME"),
|
|
5627
|
+
productType: str(ref.target.productType),
|
|
5628
|
+
installName: settings2("LD_DYLIB_INSTALL_NAME") || null,
|
|
5629
|
+
buildVersion: {
|
|
5630
|
+
platform: settings2("PLATFORM_NAME") || null,
|
|
5631
|
+
minimumOS: settings2("IPHONEOS_DEPLOYMENT_TARGET") || null,
|
|
5632
|
+
sdk: settings2("SDK_VERSION") || null
|
|
5633
|
+
},
|
|
5634
|
+
machOType: settings2("MACH_O_TYPE") || null,
|
|
5635
|
+
linkerFlags: settingList(settings2("OTHER_LDFLAGS")),
|
|
5636
|
+
dependencies: linkedTargets(ref).concat(frameworkFlagLinks(ref, settings2("OTHER_LDFLAGS"))).filter(
|
|
5637
|
+
(dependency) => MODULE_PRODUCTS.has(str(dependency.target.target.productType) ?? "")
|
|
5638
|
+
).map(({ target, attributes }) => ({
|
|
5639
|
+
target: `${target.project.projectFile}#${target.id}`,
|
|
5640
|
+
attributes
|
|
5641
|
+
}))
|
|
5642
|
+
}))
|
|
5643
|
+
},
|
|
5317
5644
|
moduleMapSources: Object.fromEntries(
|
|
5318
5645
|
builtTargets.flatMap(({ module: module3 }) => {
|
|
5319
5646
|
const compatibility = module3.swift?.compatibility;
|
|
@@ -5342,6 +5669,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5342
5669
|
.../* @__PURE__ */ new Set([
|
|
5343
5670
|
...used.map((project) => project.projectFile),
|
|
5344
5671
|
...xcconfigs,
|
|
5672
|
+
...entitlementsFile ? [entitlementsFile] : [],
|
|
5345
5673
|
...cocoapods ? [cocoapods.podfileLock, cocoapods.manifestLock, ...cocoapods.localPodspecs] : []
|
|
5346
5674
|
])
|
|
5347
5675
|
].sort(),
|
|
@@ -5349,6 +5677,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
5349
5677
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
5350
5678
|
infoPlist: infoPlistPending ? null : import_plist2.default.build(info),
|
|
5351
5679
|
infoPlistFile,
|
|
5680
|
+
...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
|
|
5352
5681
|
postBundleScripts,
|
|
5353
5682
|
developmentRegion: str(app.project.project.developmentRegion) ?? "en",
|
|
5354
5683
|
frameworks,
|
|
@@ -5434,14 +5763,14 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
5434
5763
|
const querySchemes = dictionary.LSApplicationQueriesSchemes;
|
|
5435
5764
|
const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
|
|
5436
5765
|
const intentIds = dictionary.OneAppIntentIdentifiers;
|
|
5437
|
-
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((
|
|
5766
|
+
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v5) => typeof v5 === "string") ? intentIds : [];
|
|
5438
5767
|
const backgroundIds = dictionary.BGTaskSchedulerPermittedIdentifiers;
|
|
5439
|
-
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((
|
|
5768
|
+
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v5) => typeof v5 === "string") ? backgroundIds : [];
|
|
5440
5769
|
const declaredModes = dictionary.UIBackgroundModes;
|
|
5441
|
-
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((
|
|
5442
|
-
const supportedInterfaceOrientations = Array.isArray(dictionary.UISupportedInterfaceOrientations) && dictionary.UISupportedInterfaceOrientations.every((
|
|
5770
|
+
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v5) => typeof v5 === "string") ? declaredModes : [];
|
|
5771
|
+
const supportedInterfaceOrientations = Array.isArray(dictionary.UISupportedInterfaceOrientations) && dictionary.UISupportedInterfaceOrientations.every((v5) => typeof v5 === "string") ? dictionary.UISupportedInterfaceOrientations : [];
|
|
5443
5772
|
const ipadSupportedInterfaceOrientations = Array.isArray(dictionary["UISupportedInterfaceOrientations~ipad"]) && dictionary["UISupportedInterfaceOrientations~ipad"].every(
|
|
5444
|
-
(
|
|
5773
|
+
(v5) => typeof v5 === "string"
|
|
5445
5774
|
) ? dictionary["UISupportedInterfaceOrientations~ipad"] : [];
|
|
5446
5775
|
const defaultScreenOrientationMask = nonEmptyString2(
|
|
5447
5776
|
dictionary.EXDefaultScreenOrientationMask
|
|
@@ -5453,6 +5782,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
5453
5782
|
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
5783
|
);
|
|
5455
5784
|
return stampNativeBuildSdk({
|
|
5785
|
+
...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
|
|
5456
5786
|
applicationName,
|
|
5457
5787
|
...applicationDisplayName ? { applicationDisplayName } : {},
|
|
5458
5788
|
...rootModuleName ? { rootModuleName } : {},
|
|
@@ -5520,13 +5850,19 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
5520
5850
|
for (const entry of import_node_fs7.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
5521
5851
|
if (entry.name === "Pods") continue;
|
|
5522
5852
|
if (entry.isDirectory()) {
|
|
5523
|
-
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
5853
|
+
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
|
|
5854
|
+
"Info.plist",
|
|
5855
|
+
"AppDelegate.swift",
|
|
5856
|
+
"AppDelegate.mm",
|
|
5857
|
+
"AppDelegate.m",
|
|
5858
|
+
...import_node_fs7.default.readdirSync(import_node_path11.default.join(iosRoot, entry.name)).filter((name2) => name2.endsWith(".entitlements"))
|
|
5859
|
+
];
|
|
5524
5860
|
for (const name2 of names) {
|
|
5525
5861
|
const relative = `${prefix}${entry.name}/${name2}`;
|
|
5526
5862
|
const file = import_node_path11.default.join(projectRoot, relative);
|
|
5527
5863
|
if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
|
|
5528
5864
|
}
|
|
5529
|
-
} else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
|
|
5865
|
+
} else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
|
|
5530
5866
|
const relative = `${prefix}${entry.name}`;
|
|
5531
5867
|
const file = import_node_path11.default.join(projectRoot, relative);
|
|
5532
5868
|
if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
|