peachsim 0.1.767 → 0.1.769
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/daemon.ts +2 -1
- package/cli/commands/detox.ts +16 -10
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +301 -24
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +326 -43
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +294 -17
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/ios-sdk-frameworks.json +289 -0
- package/src/swift-host.ts +6 -18
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.769 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1958,7 +1958,6 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
1960
|
// src/swift-host.ts
|
|
1961
|
-
var import_node_child_process7 = require("node:child_process");
|
|
1962
1961
|
var import_node_crypto5 = require("node:crypto");
|
|
1963
1962
|
var import_node_fs10 = __toESM(require("node:fs"), 1);
|
|
1964
1963
|
var import_node_os6 = __toESM(require("node:os"), 1);
|
|
@@ -2437,6 +2436,297 @@ function resolveContrastBackendOrigin(currentOrigin) {
|
|
|
2437
2436
|
return DEFAULT_CONTRAST_BACKEND_ORIGIN;
|
|
2438
2437
|
}
|
|
2439
2438
|
|
|
2439
|
+
// src/ios-sdk-frameworks.json
|
|
2440
|
+
var ios_sdk_frameworks_default = {
|
|
2441
|
+
sdk: "iphonesimulator27.1",
|
|
2442
|
+
frameworks: [
|
|
2443
|
+
"ARKit",
|
|
2444
|
+
"AVFAudio",
|
|
2445
|
+
"AVFoundation",
|
|
2446
|
+
"AVKit",
|
|
2447
|
+
"AVRouting",
|
|
2448
|
+
"Accelerate",
|
|
2449
|
+
"Accessibility",
|
|
2450
|
+
"AccessoryLiveActivities",
|
|
2451
|
+
"AccessoryNotifications",
|
|
2452
|
+
"AccessorySetupKit",
|
|
2453
|
+
"AccessoryTransportExtension",
|
|
2454
|
+
"Accounts",
|
|
2455
|
+
"ActivityKit",
|
|
2456
|
+
"AdAttributionKit",
|
|
2457
|
+
"AdServices",
|
|
2458
|
+
"AdSupport",
|
|
2459
|
+
"AddressBook",
|
|
2460
|
+
"AddressBookUI",
|
|
2461
|
+
"AlarmKit",
|
|
2462
|
+
"AppClip",
|
|
2463
|
+
"AppIntents",
|
|
2464
|
+
"AppIntentsTypeSupport",
|
|
2465
|
+
"AppMigrationKit",
|
|
2466
|
+
"AppTrackingTransparency",
|
|
2467
|
+
"AssetsLibrary",
|
|
2468
|
+
"AudioToolbox",
|
|
2469
|
+
"AudioUnit",
|
|
2470
|
+
"AuthenticationServices",
|
|
2471
|
+
"AutomatedDeviceEnrollment",
|
|
2472
|
+
"AutomaticAssessmentConfiguration",
|
|
2473
|
+
"BackgroundAssets",
|
|
2474
|
+
"BackgroundTasks",
|
|
2475
|
+
"BrowserEngineCore",
|
|
2476
|
+
"BrowserEngineKit",
|
|
2477
|
+
"BrowserKit",
|
|
2478
|
+
"BusinessChat",
|
|
2479
|
+
"CFNetwork",
|
|
2480
|
+
"CallKit",
|
|
2481
|
+
"CarKey",
|
|
2482
|
+
"CarPlay",
|
|
2483
|
+
"Charts",
|
|
2484
|
+
"ClassKit",
|
|
2485
|
+
"ClassKitUI",
|
|
2486
|
+
"ClockKit",
|
|
2487
|
+
"CloudKit",
|
|
2488
|
+
"ColorSync",
|
|
2489
|
+
"Combine",
|
|
2490
|
+
"ComputeGraph",
|
|
2491
|
+
"ContactProvider",
|
|
2492
|
+
"Contacts",
|
|
2493
|
+
"ContactsUI",
|
|
2494
|
+
"CoreAudio",
|
|
2495
|
+
"CoreAudioKit",
|
|
2496
|
+
"CoreAudioTypes",
|
|
2497
|
+
"CoreBluetooth",
|
|
2498
|
+
"CoreData",
|
|
2499
|
+
"CoreFoundation",
|
|
2500
|
+
"CoreGraphics",
|
|
2501
|
+
"CoreHaptics",
|
|
2502
|
+
"CoreImage",
|
|
2503
|
+
"CoreLocation",
|
|
2504
|
+
"CoreLocationUI",
|
|
2505
|
+
"CoreMIDI",
|
|
2506
|
+
"CoreML",
|
|
2507
|
+
"CoreMedia",
|
|
2508
|
+
"CoreMotion",
|
|
2509
|
+
"CoreNFC",
|
|
2510
|
+
"CoreServices",
|
|
2511
|
+
"CoreSpotlight",
|
|
2512
|
+
"CoreTelephony",
|
|
2513
|
+
"CoreText",
|
|
2514
|
+
"CoreTransferable",
|
|
2515
|
+
"CoreVideo",
|
|
2516
|
+
"CreateMLComponents",
|
|
2517
|
+
"CryptoKit",
|
|
2518
|
+
"CryptoTokenKit",
|
|
2519
|
+
"DataDetection",
|
|
2520
|
+
"DeclaredAgeRange",
|
|
2521
|
+
"DeveloperToolsSupport",
|
|
2522
|
+
"DeviceActivity",
|
|
2523
|
+
"DeviceCheck",
|
|
2524
|
+
"DeviceDiscoveryExtension",
|
|
2525
|
+
"DeviceDiscoveryUI",
|
|
2526
|
+
"EnergyKit",
|
|
2527
|
+
"EventKit",
|
|
2528
|
+
"EventKitUI",
|
|
2529
|
+
"ExposureNotification",
|
|
2530
|
+
"ExtensionFoundation",
|
|
2531
|
+
"ExtensionKit",
|
|
2532
|
+
"ExternalAccessory",
|
|
2533
|
+
"FamilyControls",
|
|
2534
|
+
"FileProvider",
|
|
2535
|
+
"FileProviderUI",
|
|
2536
|
+
"FinanceKit",
|
|
2537
|
+
"FinanceKitUI",
|
|
2538
|
+
"Foundation",
|
|
2539
|
+
"FoundationModels",
|
|
2540
|
+
"GLKit",
|
|
2541
|
+
"GSS",
|
|
2542
|
+
"GameController",
|
|
2543
|
+
"GameKit",
|
|
2544
|
+
"GameSave",
|
|
2545
|
+
"GameplayKit",
|
|
2546
|
+
"GeoToolbox",
|
|
2547
|
+
"GroupActivities",
|
|
2548
|
+
"HealthKit",
|
|
2549
|
+
"HealthKitUI",
|
|
2550
|
+
"HomeKit",
|
|
2551
|
+
"IOKit",
|
|
2552
|
+
"IOSurface",
|
|
2553
|
+
"IdentityDocumentServices",
|
|
2554
|
+
"IdentityDocumentServicesUI",
|
|
2555
|
+
"IdentityLookup",
|
|
2556
|
+
"IdentityLookupUI",
|
|
2557
|
+
"ImageCaptureCore",
|
|
2558
|
+
"ImageIO",
|
|
2559
|
+
"ImagePlayground",
|
|
2560
|
+
"ImmersiveMediaSupport",
|
|
2561
|
+
"Intents",
|
|
2562
|
+
"IntentsUI",
|
|
2563
|
+
"JavaScriptCore",
|
|
2564
|
+
"LinkPresentation",
|
|
2565
|
+
"LinkSecurity",
|
|
2566
|
+
"LiveCommunicationKit",
|
|
2567
|
+
"LocalAuthentication",
|
|
2568
|
+
"LocalAuthenticationEmbeddedUI",
|
|
2569
|
+
"LockedCameraCapture",
|
|
2570
|
+
"ManagedApp",
|
|
2571
|
+
"ManagedAppDistribution",
|
|
2572
|
+
"ManagedSettings",
|
|
2573
|
+
"ManagedSettingsUI",
|
|
2574
|
+
"MapKit",
|
|
2575
|
+
"MarketplaceKit",
|
|
2576
|
+
"Matter",
|
|
2577
|
+
"MatterSupport",
|
|
2578
|
+
"MediaAccessibility",
|
|
2579
|
+
"MediaIntelligence",
|
|
2580
|
+
"MediaIntents",
|
|
2581
|
+
"MediaPlayer",
|
|
2582
|
+
"MediaToolbox",
|
|
2583
|
+
"MessageUI",
|
|
2584
|
+
"Messages",
|
|
2585
|
+
"Metal",
|
|
2586
|
+
"MetalKit",
|
|
2587
|
+
"MetalPerformancePrimitives",
|
|
2588
|
+
"MetalPerformanceShaders",
|
|
2589
|
+
"MetalPerformanceShadersGraph",
|
|
2590
|
+
"MetricKit",
|
|
2591
|
+
"MobileCoreServices",
|
|
2592
|
+
"ModelIO",
|
|
2593
|
+
"MultipeerConnectivity",
|
|
2594
|
+
"MusicKit",
|
|
2595
|
+
"MusicUnderstanding",
|
|
2596
|
+
"NaturalLanguage",
|
|
2597
|
+
"NearbyInteraction",
|
|
2598
|
+
"Network",
|
|
2599
|
+
"NetworkExtension",
|
|
2600
|
+
"NotificationCenter",
|
|
2601
|
+
"NowPlaying",
|
|
2602
|
+
"OSLog",
|
|
2603
|
+
"OpenAL",
|
|
2604
|
+
"OpenGLES",
|
|
2605
|
+
"PDFKit",
|
|
2606
|
+
"PHASE",
|
|
2607
|
+
"PaperKit",
|
|
2608
|
+
"PassKit",
|
|
2609
|
+
"PencilKit",
|
|
2610
|
+
"PermissionKit",
|
|
2611
|
+
"Photos",
|
|
2612
|
+
"PhotosUI",
|
|
2613
|
+
"ProximityReader",
|
|
2614
|
+
"PushKit",
|
|
2615
|
+
"PushToTalk",
|
|
2616
|
+
"QuartzCore",
|
|
2617
|
+
"QuickLook",
|
|
2618
|
+
"QuickLookThumbnailing",
|
|
2619
|
+
"RealityFoundation",
|
|
2620
|
+
"RealityKit",
|
|
2621
|
+
"RelevanceKit",
|
|
2622
|
+
"ReplayKit",
|
|
2623
|
+
"RoomPlan",
|
|
2624
|
+
"SafariServices",
|
|
2625
|
+
"SafetyKit",
|
|
2626
|
+
"SceneKit",
|
|
2627
|
+
"ScreenTime",
|
|
2628
|
+
"SecureElementCredential",
|
|
2629
|
+
"Security",
|
|
2630
|
+
"SecurityUI",
|
|
2631
|
+
"SensitiveContentAnalysis",
|
|
2632
|
+
"SensorKit",
|
|
2633
|
+
"ServicesAccountLinking",
|
|
2634
|
+
"SharedWithYou",
|
|
2635
|
+
"SharedWithYouCore",
|
|
2636
|
+
"ShazamKit",
|
|
2637
|
+
"Social",
|
|
2638
|
+
"SoundAnalysis",
|
|
2639
|
+
"Speech",
|
|
2640
|
+
"SpriteKit",
|
|
2641
|
+
"StateReporting",
|
|
2642
|
+
"StoreKit",
|
|
2643
|
+
"SuggestedActions",
|
|
2644
|
+
"SwiftData",
|
|
2645
|
+
"SwiftUI",
|
|
2646
|
+
"SwiftUICore",
|
|
2647
|
+
"Symbols",
|
|
2648
|
+
"SystemConfiguration",
|
|
2649
|
+
"SystemExtensions",
|
|
2650
|
+
"TabularData",
|
|
2651
|
+
"TelephonyMessagingKit",
|
|
2652
|
+
"TipKit",
|
|
2653
|
+
"TouchController",
|
|
2654
|
+
"Translation",
|
|
2655
|
+
"TranslationUIProvider",
|
|
2656
|
+
"TrustInsights",
|
|
2657
|
+
"Twitter",
|
|
2658
|
+
"UIKit",
|
|
2659
|
+
"USDKit",
|
|
2660
|
+
"UniformTypeIdentifiers",
|
|
2661
|
+
"UserNotifications",
|
|
2662
|
+
"UserNotificationsUI",
|
|
2663
|
+
"VideoSubscriberAccount",
|
|
2664
|
+
"VideoToolbox",
|
|
2665
|
+
"Vision",
|
|
2666
|
+
"VisionKit",
|
|
2667
|
+
"WatchConnectivity",
|
|
2668
|
+
"WeatherKit",
|
|
2669
|
+
"WebKit",
|
|
2670
|
+
"WiFiAware",
|
|
2671
|
+
"WidgetKit",
|
|
2672
|
+
"WorkoutKit",
|
|
2673
|
+
"_AVKit_SwiftUI",
|
|
2674
|
+
"_AdAttributionKit_StoreKit",
|
|
2675
|
+
"_AppIntents_HealthKit",
|
|
2676
|
+
"_AppIntents_SwiftUI",
|
|
2677
|
+
"_AppIntents_UIKit",
|
|
2678
|
+
"_AuthenticationServices_SwiftUI",
|
|
2679
|
+
"_Contacts_AppIntents",
|
|
2680
|
+
"_CoreData_CloudKit",
|
|
2681
|
+
"_CoreLocationUI_SwiftUI",
|
|
2682
|
+
"_CoreNFC_UIKit",
|
|
2683
|
+
"_CoreSpotlight_FoundationModels",
|
|
2684
|
+
"_DataDetection_SwiftUI",
|
|
2685
|
+
"_DeviceActivity_SwiftUI",
|
|
2686
|
+
"_DeviceDiscoveryUI_SwiftUI",
|
|
2687
|
+
"_FinanceKit_AppIntents",
|
|
2688
|
+
"_FoundationModels_SwiftUI",
|
|
2689
|
+
"_FoundationModels_UIKit",
|
|
2690
|
+
"_GameController_SwiftUI",
|
|
2691
|
+
"_GeoToolbox_AppIntents",
|
|
2692
|
+
"_GroupActivities_UIKit",
|
|
2693
|
+
"_HomeKit_SwiftUI",
|
|
2694
|
+
"_Intents_TipKit",
|
|
2695
|
+
"_LinkPresentation_AppIntents",
|
|
2696
|
+
"_LocationEssentials",
|
|
2697
|
+
"_MapKit_SwiftUI",
|
|
2698
|
+
"_MarketplaceKit_UIKit",
|
|
2699
|
+
"_MediaIntents_AppIntents",
|
|
2700
|
+
"_MediaPlayer_AppIntents",
|
|
2701
|
+
"_MusicKit_SwiftUI",
|
|
2702
|
+
"_NowPlaying_AppIntents",
|
|
2703
|
+
"_PassKit_SwiftUI",
|
|
2704
|
+
"_PermissionKit_SwiftUI",
|
|
2705
|
+
"_PermissionKit_UIKit",
|
|
2706
|
+
"_PhotosUI_SwiftUI",
|
|
2707
|
+
"_PhotosUI_WidgetKit",
|
|
2708
|
+
"_Photos_AppIntents",
|
|
2709
|
+
"_QuickLook_SwiftUI",
|
|
2710
|
+
"_RealityKit_ComputeGraph",
|
|
2711
|
+
"_RealityKit_SwiftUI",
|
|
2712
|
+
"_RelevanceKit_MapKit",
|
|
2713
|
+
"_SceneKit_SwiftUI",
|
|
2714
|
+
"_SecureElementCredential_SwiftUI",
|
|
2715
|
+
"_SecureElementCredential_UIKit",
|
|
2716
|
+
"_SharedWithYou_AppIntents",
|
|
2717
|
+
"_SpriteKit_SwiftUI",
|
|
2718
|
+
"_StoreKit_SwiftUI",
|
|
2719
|
+
"_SwiftData_CoreData",
|
|
2720
|
+
"_SwiftData_SwiftUI",
|
|
2721
|
+
"_Translation_SwiftUI",
|
|
2722
|
+
"_USDKit_RealityKit",
|
|
2723
|
+
"_UserNotifications_AppIntents",
|
|
2724
|
+
"_WebKit_SwiftUI",
|
|
2725
|
+
"_WorkoutKit_SwiftUI",
|
|
2726
|
+
"iAd"
|
|
2727
|
+
]
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2440
2730
|
// src/swift-distribution.ts
|
|
2441
2731
|
var import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
2442
2732
|
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
@@ -4849,20 +5139,7 @@ var UNPROVIDED_PLATFORM_MODULES = {
|
|
|
4849
5139
|
Darwin: "Peach compiles for WebAssembly, which has no Darwin; C library names come through Foundation",
|
|
4850
5140
|
MachO: "Peach compiles for WebAssembly, which has no Mach-O images"
|
|
4851
5141
|
};
|
|
4852
|
-
var
|
|
4853
|
-
function iosFrameworks() {
|
|
4854
|
-
if (iosSdkFrameworks) return iosSdkFrameworks;
|
|
4855
|
-
iosSdkFrameworks = /* @__PURE__ */ new Set();
|
|
4856
|
-
if (process.platform !== "darwin") return iosSdkFrameworks;
|
|
4857
|
-
const sdk = (0, import_node_child_process7.execFileSync)("xcrun", ["--sdk", "iphonesimulator", "--show-sdk-path"], {
|
|
4858
|
-
encoding: "utf8",
|
|
4859
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
4860
|
-
}).trim();
|
|
4861
|
-
for (const entry of import_node_fs10.default.readdirSync(import_node_path12.default.join(sdk, "System/Library/Frameworks")))
|
|
4862
|
-
if (entry.endsWith(".framework"))
|
|
4863
|
-
iosSdkFrameworks.add(entry.slice(0, -".framework".length));
|
|
4864
|
-
return iosSdkFrameworks;
|
|
4865
|
-
}
|
|
5142
|
+
var IOS_SDK_FRAMEWORKS = new Set(ios_sdk_frameworks_default.frameworks);
|
|
4866
5143
|
function missingModulesMessage(packagePath, missing) {
|
|
4867
5144
|
const layout = xcodeLayout(packagePath);
|
|
4868
5145
|
const gaps = new Map([
|
|
@@ -4875,7 +5152,7 @@ function missingModulesMessage(packagePath, missing) {
|
|
|
4875
5152
|
name,
|
|
4876
5153
|
{ source: "the iOS SDK", reason: UNPROVIDED_PLATFORM_MODULES[name] }
|
|
4877
5154
|
]
|
|
4878
|
-
] :
|
|
5155
|
+
] : IOS_SDK_FRAMEWORKS.has(name) ? [
|
|
4879
5156
|
[
|
|
4880
5157
|
name,
|
|
4881
5158
|
{ source: "the iOS SDK", reason: "a framework Peach does not provide" }
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.769 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/package.json
CHANGED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sdk": "iphonesimulator27.1",
|
|
3
|
+
"frameworks": [
|
|
4
|
+
"ARKit",
|
|
5
|
+
"AVFAudio",
|
|
6
|
+
"AVFoundation",
|
|
7
|
+
"AVKit",
|
|
8
|
+
"AVRouting",
|
|
9
|
+
"Accelerate",
|
|
10
|
+
"Accessibility",
|
|
11
|
+
"AccessoryLiveActivities",
|
|
12
|
+
"AccessoryNotifications",
|
|
13
|
+
"AccessorySetupKit",
|
|
14
|
+
"AccessoryTransportExtension",
|
|
15
|
+
"Accounts",
|
|
16
|
+
"ActivityKit",
|
|
17
|
+
"AdAttributionKit",
|
|
18
|
+
"AdServices",
|
|
19
|
+
"AdSupport",
|
|
20
|
+
"AddressBook",
|
|
21
|
+
"AddressBookUI",
|
|
22
|
+
"AlarmKit",
|
|
23
|
+
"AppClip",
|
|
24
|
+
"AppIntents",
|
|
25
|
+
"AppIntentsTypeSupport",
|
|
26
|
+
"AppMigrationKit",
|
|
27
|
+
"AppTrackingTransparency",
|
|
28
|
+
"AssetsLibrary",
|
|
29
|
+
"AudioToolbox",
|
|
30
|
+
"AudioUnit",
|
|
31
|
+
"AuthenticationServices",
|
|
32
|
+
"AutomatedDeviceEnrollment",
|
|
33
|
+
"AutomaticAssessmentConfiguration",
|
|
34
|
+
"BackgroundAssets",
|
|
35
|
+
"BackgroundTasks",
|
|
36
|
+
"BrowserEngineCore",
|
|
37
|
+
"BrowserEngineKit",
|
|
38
|
+
"BrowserKit",
|
|
39
|
+
"BusinessChat",
|
|
40
|
+
"CFNetwork",
|
|
41
|
+
"CallKit",
|
|
42
|
+
"CarKey",
|
|
43
|
+
"CarPlay",
|
|
44
|
+
"Charts",
|
|
45
|
+
"ClassKit",
|
|
46
|
+
"ClassKitUI",
|
|
47
|
+
"ClockKit",
|
|
48
|
+
"CloudKit",
|
|
49
|
+
"ColorSync",
|
|
50
|
+
"Combine",
|
|
51
|
+
"ComputeGraph",
|
|
52
|
+
"ContactProvider",
|
|
53
|
+
"Contacts",
|
|
54
|
+
"ContactsUI",
|
|
55
|
+
"CoreAudio",
|
|
56
|
+
"CoreAudioKit",
|
|
57
|
+
"CoreAudioTypes",
|
|
58
|
+
"CoreBluetooth",
|
|
59
|
+
"CoreData",
|
|
60
|
+
"CoreFoundation",
|
|
61
|
+
"CoreGraphics",
|
|
62
|
+
"CoreHaptics",
|
|
63
|
+
"CoreImage",
|
|
64
|
+
"CoreLocation",
|
|
65
|
+
"CoreLocationUI",
|
|
66
|
+
"CoreMIDI",
|
|
67
|
+
"CoreML",
|
|
68
|
+
"CoreMedia",
|
|
69
|
+
"CoreMotion",
|
|
70
|
+
"CoreNFC",
|
|
71
|
+
"CoreServices",
|
|
72
|
+
"CoreSpotlight",
|
|
73
|
+
"CoreTelephony",
|
|
74
|
+
"CoreText",
|
|
75
|
+
"CoreTransferable",
|
|
76
|
+
"CoreVideo",
|
|
77
|
+
"CreateMLComponents",
|
|
78
|
+
"CryptoKit",
|
|
79
|
+
"CryptoTokenKit",
|
|
80
|
+
"DataDetection",
|
|
81
|
+
"DeclaredAgeRange",
|
|
82
|
+
"DeveloperToolsSupport",
|
|
83
|
+
"DeviceActivity",
|
|
84
|
+
"DeviceCheck",
|
|
85
|
+
"DeviceDiscoveryExtension",
|
|
86
|
+
"DeviceDiscoveryUI",
|
|
87
|
+
"EnergyKit",
|
|
88
|
+
"EventKit",
|
|
89
|
+
"EventKitUI",
|
|
90
|
+
"ExposureNotification",
|
|
91
|
+
"ExtensionFoundation",
|
|
92
|
+
"ExtensionKit",
|
|
93
|
+
"ExternalAccessory",
|
|
94
|
+
"FamilyControls",
|
|
95
|
+
"FileProvider",
|
|
96
|
+
"FileProviderUI",
|
|
97
|
+
"FinanceKit",
|
|
98
|
+
"FinanceKitUI",
|
|
99
|
+
"Foundation",
|
|
100
|
+
"FoundationModels",
|
|
101
|
+
"GLKit",
|
|
102
|
+
"GSS",
|
|
103
|
+
"GameController",
|
|
104
|
+
"GameKit",
|
|
105
|
+
"GameSave",
|
|
106
|
+
"GameplayKit",
|
|
107
|
+
"GeoToolbox",
|
|
108
|
+
"GroupActivities",
|
|
109
|
+
"HealthKit",
|
|
110
|
+
"HealthKitUI",
|
|
111
|
+
"HomeKit",
|
|
112
|
+
"IOKit",
|
|
113
|
+
"IOSurface",
|
|
114
|
+
"IdentityDocumentServices",
|
|
115
|
+
"IdentityDocumentServicesUI",
|
|
116
|
+
"IdentityLookup",
|
|
117
|
+
"IdentityLookupUI",
|
|
118
|
+
"ImageCaptureCore",
|
|
119
|
+
"ImageIO",
|
|
120
|
+
"ImagePlayground",
|
|
121
|
+
"ImmersiveMediaSupport",
|
|
122
|
+
"Intents",
|
|
123
|
+
"IntentsUI",
|
|
124
|
+
"JavaScriptCore",
|
|
125
|
+
"LinkPresentation",
|
|
126
|
+
"LinkSecurity",
|
|
127
|
+
"LiveCommunicationKit",
|
|
128
|
+
"LocalAuthentication",
|
|
129
|
+
"LocalAuthenticationEmbeddedUI",
|
|
130
|
+
"LockedCameraCapture",
|
|
131
|
+
"ManagedApp",
|
|
132
|
+
"ManagedAppDistribution",
|
|
133
|
+
"ManagedSettings",
|
|
134
|
+
"ManagedSettingsUI",
|
|
135
|
+
"MapKit",
|
|
136
|
+
"MarketplaceKit",
|
|
137
|
+
"Matter",
|
|
138
|
+
"MatterSupport",
|
|
139
|
+
"MediaAccessibility",
|
|
140
|
+
"MediaIntelligence",
|
|
141
|
+
"MediaIntents",
|
|
142
|
+
"MediaPlayer",
|
|
143
|
+
"MediaToolbox",
|
|
144
|
+
"MessageUI",
|
|
145
|
+
"Messages",
|
|
146
|
+
"Metal",
|
|
147
|
+
"MetalKit",
|
|
148
|
+
"MetalPerformancePrimitives",
|
|
149
|
+
"MetalPerformanceShaders",
|
|
150
|
+
"MetalPerformanceShadersGraph",
|
|
151
|
+
"MetricKit",
|
|
152
|
+
"MobileCoreServices",
|
|
153
|
+
"ModelIO",
|
|
154
|
+
"MultipeerConnectivity",
|
|
155
|
+
"MusicKit",
|
|
156
|
+
"MusicUnderstanding",
|
|
157
|
+
"NaturalLanguage",
|
|
158
|
+
"NearbyInteraction",
|
|
159
|
+
"Network",
|
|
160
|
+
"NetworkExtension",
|
|
161
|
+
"NotificationCenter",
|
|
162
|
+
"NowPlaying",
|
|
163
|
+
"OSLog",
|
|
164
|
+
"OpenAL",
|
|
165
|
+
"OpenGLES",
|
|
166
|
+
"PDFKit",
|
|
167
|
+
"PHASE",
|
|
168
|
+
"PaperKit",
|
|
169
|
+
"PassKit",
|
|
170
|
+
"PencilKit",
|
|
171
|
+
"PermissionKit",
|
|
172
|
+
"Photos",
|
|
173
|
+
"PhotosUI",
|
|
174
|
+
"ProximityReader",
|
|
175
|
+
"PushKit",
|
|
176
|
+
"PushToTalk",
|
|
177
|
+
"QuartzCore",
|
|
178
|
+
"QuickLook",
|
|
179
|
+
"QuickLookThumbnailing",
|
|
180
|
+
"RealityFoundation",
|
|
181
|
+
"RealityKit",
|
|
182
|
+
"RelevanceKit",
|
|
183
|
+
"ReplayKit",
|
|
184
|
+
"RoomPlan",
|
|
185
|
+
"SafariServices",
|
|
186
|
+
"SafetyKit",
|
|
187
|
+
"SceneKit",
|
|
188
|
+
"ScreenTime",
|
|
189
|
+
"SecureElementCredential",
|
|
190
|
+
"Security",
|
|
191
|
+
"SecurityUI",
|
|
192
|
+
"SensitiveContentAnalysis",
|
|
193
|
+
"SensorKit",
|
|
194
|
+
"ServicesAccountLinking",
|
|
195
|
+
"SharedWithYou",
|
|
196
|
+
"SharedWithYouCore",
|
|
197
|
+
"ShazamKit",
|
|
198
|
+
"Social",
|
|
199
|
+
"SoundAnalysis",
|
|
200
|
+
"Speech",
|
|
201
|
+
"SpriteKit",
|
|
202
|
+
"StateReporting",
|
|
203
|
+
"StoreKit",
|
|
204
|
+
"SuggestedActions",
|
|
205
|
+
"SwiftData",
|
|
206
|
+
"SwiftUI",
|
|
207
|
+
"SwiftUICore",
|
|
208
|
+
"Symbols",
|
|
209
|
+
"SystemConfiguration",
|
|
210
|
+
"SystemExtensions",
|
|
211
|
+
"TabularData",
|
|
212
|
+
"TelephonyMessagingKit",
|
|
213
|
+
"TipKit",
|
|
214
|
+
"TouchController",
|
|
215
|
+
"Translation",
|
|
216
|
+
"TranslationUIProvider",
|
|
217
|
+
"TrustInsights",
|
|
218
|
+
"Twitter",
|
|
219
|
+
"UIKit",
|
|
220
|
+
"USDKit",
|
|
221
|
+
"UniformTypeIdentifiers",
|
|
222
|
+
"UserNotifications",
|
|
223
|
+
"UserNotificationsUI",
|
|
224
|
+
"VideoSubscriberAccount",
|
|
225
|
+
"VideoToolbox",
|
|
226
|
+
"Vision",
|
|
227
|
+
"VisionKit",
|
|
228
|
+
"WatchConnectivity",
|
|
229
|
+
"WeatherKit",
|
|
230
|
+
"WebKit",
|
|
231
|
+
"WiFiAware",
|
|
232
|
+
"WidgetKit",
|
|
233
|
+
"WorkoutKit",
|
|
234
|
+
"_AVKit_SwiftUI",
|
|
235
|
+
"_AdAttributionKit_StoreKit",
|
|
236
|
+
"_AppIntents_HealthKit",
|
|
237
|
+
"_AppIntents_SwiftUI",
|
|
238
|
+
"_AppIntents_UIKit",
|
|
239
|
+
"_AuthenticationServices_SwiftUI",
|
|
240
|
+
"_Contacts_AppIntents",
|
|
241
|
+
"_CoreData_CloudKit",
|
|
242
|
+
"_CoreLocationUI_SwiftUI",
|
|
243
|
+
"_CoreNFC_UIKit",
|
|
244
|
+
"_CoreSpotlight_FoundationModels",
|
|
245
|
+
"_DataDetection_SwiftUI",
|
|
246
|
+
"_DeviceActivity_SwiftUI",
|
|
247
|
+
"_DeviceDiscoveryUI_SwiftUI",
|
|
248
|
+
"_FinanceKit_AppIntents",
|
|
249
|
+
"_FoundationModels_SwiftUI",
|
|
250
|
+
"_FoundationModels_UIKit",
|
|
251
|
+
"_GameController_SwiftUI",
|
|
252
|
+
"_GeoToolbox_AppIntents",
|
|
253
|
+
"_GroupActivities_UIKit",
|
|
254
|
+
"_HomeKit_SwiftUI",
|
|
255
|
+
"_Intents_TipKit",
|
|
256
|
+
"_LinkPresentation_AppIntents",
|
|
257
|
+
"_LocationEssentials",
|
|
258
|
+
"_MapKit_SwiftUI",
|
|
259
|
+
"_MarketplaceKit_UIKit",
|
|
260
|
+
"_MediaIntents_AppIntents",
|
|
261
|
+
"_MediaPlayer_AppIntents",
|
|
262
|
+
"_MusicKit_SwiftUI",
|
|
263
|
+
"_NowPlaying_AppIntents",
|
|
264
|
+
"_PassKit_SwiftUI",
|
|
265
|
+
"_PermissionKit_SwiftUI",
|
|
266
|
+
"_PermissionKit_UIKit",
|
|
267
|
+
"_PhotosUI_SwiftUI",
|
|
268
|
+
"_PhotosUI_WidgetKit",
|
|
269
|
+
"_Photos_AppIntents",
|
|
270
|
+
"_QuickLook_SwiftUI",
|
|
271
|
+
"_RealityKit_ComputeGraph",
|
|
272
|
+
"_RealityKit_SwiftUI",
|
|
273
|
+
"_RelevanceKit_MapKit",
|
|
274
|
+
"_SceneKit_SwiftUI",
|
|
275
|
+
"_SecureElementCredential_SwiftUI",
|
|
276
|
+
"_SecureElementCredential_UIKit",
|
|
277
|
+
"_SharedWithYou_AppIntents",
|
|
278
|
+
"_SpriteKit_SwiftUI",
|
|
279
|
+
"_StoreKit_SwiftUI",
|
|
280
|
+
"_SwiftData_CoreData",
|
|
281
|
+
"_SwiftData_SwiftUI",
|
|
282
|
+
"_Translation_SwiftUI",
|
|
283
|
+
"_USDKit_RealityKit",
|
|
284
|
+
"_UserNotifications_AppIntents",
|
|
285
|
+
"_WebKit_SwiftUI",
|
|
286
|
+
"_WorkoutKit_SwiftUI",
|
|
287
|
+
"iAd"
|
|
288
|
+
]
|
|
289
|
+
}
|
package/src/swift-host.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// the node host for every Swift preview: package inputs, one compile and
|
|
2
2
|
// immutable artifact addresses. vite and the foreground CLI adapt this host.
|
|
3
3
|
|
|
4
|
-
import { execFileSync } from 'node:child_process'
|
|
5
4
|
import { createHash } from 'node:crypto'
|
|
6
5
|
import fs from 'node:fs'
|
|
7
6
|
import os from 'node:os'
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
} from '../../sootsim-swift/src/bundleAssets'
|
|
15
14
|
import { authHeaderValue, resolveCliAuth } from '../cli/auth'
|
|
16
15
|
import { resolveContrastBackendOrigin } from './backend-origin'
|
|
16
|
+
import iosSdk from './ios-sdk-frameworks.json' with { type: 'json' }
|
|
17
17
|
import {
|
|
18
18
|
compileSwiftProjectUnit,
|
|
19
19
|
compileTargets,
|
|
@@ -943,22 +943,10 @@ const UNPROVIDED_PLATFORM_MODULES: Record<string, string> = {
|
|
|
943
943
|
MachO: 'Peach compiles for WebAssembly, which has no Mach-O images',
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
// the frameworks the
|
|
947
|
-
//
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
if (iosSdkFrameworks) return iosSdkFrameworks
|
|
951
|
-
iosSdkFrameworks = new Set()
|
|
952
|
-
if (process.platform !== 'darwin') return iosSdkFrameworks
|
|
953
|
-
const sdk = execFileSync('xcrun', ['--sdk', 'iphonesimulator', '--show-sdk-path'], {
|
|
954
|
-
encoding: 'utf8',
|
|
955
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
956
|
-
}).trim()
|
|
957
|
-
for (const entry of fs.readdirSync(path.join(sdk, 'System/Library/Frameworks')))
|
|
958
|
-
if (entry.endsWith('.framework'))
|
|
959
|
-
iosSdkFrameworks.add(entry.slice(0, -'.framework'.length))
|
|
960
|
-
return iosSdkFrameworks
|
|
961
|
-
}
|
|
946
|
+
// the frameworks the iOS simulator SDK ships, so a report can say which
|
|
947
|
+
// missing modules are Apple's on any host, linux included. regenerated by
|
|
948
|
+
// scripts/ios-sdk-frameworks.ts.
|
|
949
|
+
const IOS_SDK_FRAMEWORKS = new Set(iosSdk.frameworks)
|
|
962
950
|
|
|
963
951
|
// one report of every module the app imports that Peach lacks, so a project
|
|
964
952
|
// learns its whole gap from one run instead of one compile error at a time.
|
|
@@ -980,7 +968,7 @@ function missingModulesMessage(
|
|
|
980
968
|
{ source: 'the iOS SDK', reason: UNPROVIDED_PLATFORM_MODULES[name]! },
|
|
981
969
|
] as const,
|
|
982
970
|
]
|
|
983
|
-
:
|
|
971
|
+
: IOS_SDK_FRAMEWORKS.has(name)
|
|
984
972
|
? [
|
|
985
973
|
[
|
|
986
974
|
name,
|