peachsim 0.1.1808 → 0.1.1812
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/README.md +4 -2
- package/cli/app-bundle-resources.ts +15 -2
- package/cli/cloud-box-artifact.ts +115 -0
- package/cli/cloud-client.ts +148 -76
- package/cli/cloud-dispatch.ts +4 -4
- package/cli/cloud-session.ts +60 -22
- package/cli/commands/box.ts +8 -2
- package/cli/commands/compat.ts +7 -4
- package/cli/commands/control.ts +69 -3
- package/cli/commands/coverage.ts +14 -4
- package/cli/commands/daemon.ts +41 -0
- package/cli/commands/no-bridge-hint.ts +9 -0
- package/cli/commands/package.ts +31 -56
- package/cli/commands/platform.ts +71 -60
- package/cli/commands/preview.ts +73 -24
- package/cli/commands/record.ts +10 -2
- package/cli/commands/screenshot.ts +17 -60
- package/cli/commands/setup.ts +3 -1
- package/cli/commands/three-mode.ts +22 -12
- package/cli/commands/upload.ts +2 -1
- package/cli/desktop-companion.ts +6 -1
- package/cli/drivers/desktop.ts +4 -1
- package/cli/main.ts +12 -2
- package/cli/metro-bundle-assets.ts +14 -4
- package/cli/outbound-endpoints.ts +7 -3
- package/cli/output-redaction.ts +38 -0
- package/cli/privacy.ts +2 -2
- package/cli/recording-access.ts +5 -0
- package/cli/remote-project-bundle.ts +83 -0
- package/cli/shell-init.ts +7 -11
- package/cli/telemetry.ts +41 -4
- package/cli/usage-error.ts +3 -0
- package/cli/ws-bridge.ts +42 -6
- 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 +42897 -40755
- package/dist-lib/capture-contract.cjs +7 -8
- package/dist-lib/capture-contract.mjs +7 -8
- 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 +13 -7
- package/dist-lib/dev-bundle-resolution.cjs +10 -4
- package/dist-lib/expo-swift-bundle.cjs +15889 -15553
- package/dist-lib/expo-swift-metadata.cjs +2 -1
- package/dist-lib/expo-swift-metadata.mjs +2 -1
- package/dist-lib/home-paths.cjs +2 -33
- package/dist-lib/host/bridge-host.cjs +20891 -18714
- package/dist-lib/host/fetch-proxy-handler.cjs +10 -11
- 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 +620 -553
- 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 +57 -28
- package/dist-lib/native-app-identity-project.cjs +47 -14
- package/dist-lib/native-app-identity-project.mjs +55 -20
- 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/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 +27 -26
- package/dist-lib/public-origins-lib.json +104 -81
- 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 +30700 -24410
- package/dist-lib/swift-compile.cjs +336 -222
- package/dist-lib/swift-compile.mjs +378 -263
- package/dist-lib/swift-package.cjs +19 -7
- package/dist-lib/swift-package.mjs +16 -6
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +49 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +19213 -18937
- package/dist-lib/vite.cjs +11 -12
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +12 -50
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +2 -8
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +62 -0
- package/sdk/ios/usr/include/dispatch.modulemap +22 -0
- package/sdk/ios/usr/include/module.modulemap +8 -3
- package/sdk/ios/usr/include/net/if.h +24 -0
- package/sdk/ios/usr/include/sys/time.h +1 -1
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/sdk/ios/wasm/include/fcntl.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +2 -0
- package/sdk/ios/wasm/include/unistd.h +2 -2
- package/skills/contrast/SKILL.md +2 -2
- package/src/bundle-channel.mjs +9 -72
- package/src/capture-contract.ts +12 -9
- package/src/desktop-host-delivery.ts +16 -2
- package/src/dev-bundle-resolution.ts +12 -3
- package/src/expo-native-workspace.ts +113 -46
- package/src/expo-swift-host.ts +17 -12
- package/src/expo-swift-ready.ts +4 -1
- package/src/expoSwiftContract.ts +1 -0
- package/src/home-paths.ts +4 -48
- package/src/host/bridge-host.ts +1 -0
- package/src/installed-native-libraries.ts +2 -8
- package/src/metro-project-root.ts +2 -1
- package/src/native-bundles.ts +122 -0
- package/src/native-static-libraries.ts +65 -8
- package/src/nitro-adapter.lock.json +272 -272
- package/src/nitro-bundle.ts +2 -2
- package/src/nitro-compile.ts +68 -28
- package/src/nitro-source.ts +24 -6
- package/src/nitro-superset.lock.json +94 -34
- package/src/nitroContract.ts +3 -0
- package/src/podspec-sources.ts +1966 -0
- package/src/storageSnapshotContract.ts +40 -0
- package/src/swift-compile.ts +77 -26
- package/src/swift-design-time.ts +18 -1
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-distribution.ts +9 -6
- package/src/swift-host.ts +1 -2
- package/src/swift-link-roots.ts +13 -2
- package/src/swift-objc-compile.ts +12 -0
- package/src/swift-objc-standin.ts +321 -114
- package/src/swift-package-manifest.ts +4 -3
- package/src/swift-package.ts +31 -4
- package/src/swift-root-lock.ts +11 -0
- package/src/swift-shared-sdk.ts +10 -9
- package/src/swift-source-pods.ts +2 -2
- package/src/swift-standins.ts +40 -143
- package/src/swift-toolchain.ts +59 -0
- package/src/swift-wasm-prune.ts +53 -21
- package/src/turbo-bundle.ts +4 -5
- package/src/turbo-codegen-intake.ts +111 -108
- package/src/turbo-compile.ts +63 -33
- package/src/turbo-runtime.lock.json +22 -22
- package/src/turbo-source.ts +171 -76
- package/src/wasm-optimize.ts +31 -2
- package/src/xcode-project.ts +65 -15
package/src/xcode-project.ts
CHANGED
|
@@ -475,6 +475,31 @@ export function selectXcodeWorkspace(
|
|
|
475
475
|
return named.length === 1 ? path.join(directory, named[0]!) : null
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
+
/** the CocoaPods workspace in a project's ios directory, or null while no pods
|
|
479
|
+
* are installed: off a Mac, prebuild alone produces the Xcode project. */
|
|
480
|
+
export function installedXcodeWorkspace(projectRoot: string): string | null {
|
|
481
|
+
const ios = path.join(projectRoot, 'ios')
|
|
482
|
+
if (!fs.existsSync(ios)) return null
|
|
483
|
+
return selectXcodeWorkspace(
|
|
484
|
+
ios,
|
|
485
|
+
fs.readdirSync(ios).filter((name) => name.endsWith('.xcworkspace')),
|
|
486
|
+
)
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/** the installed workspace for a compile step that cannot proceed from
|
|
490
|
+
* podspecs alone, with the reason it is missing off a Mac. */
|
|
491
|
+
export function requireInstalledXcodeWorkspace(
|
|
492
|
+
projectRoot: string,
|
|
493
|
+
needed: string,
|
|
494
|
+
): string {
|
|
495
|
+
const workspace = installedXcodeWorkspace(projectRoot)
|
|
496
|
+
if (!workspace)
|
|
497
|
+
throw new Error(
|
|
498
|
+
`${needed} needs the installed CocoaPods workspace in ${path.join(projectRoot, 'ios')}, which only a Mac prepares or PEACH_PREPARED_NATIVE_WORKSPACES supplies`,
|
|
499
|
+
)
|
|
500
|
+
return workspace
|
|
501
|
+
}
|
|
502
|
+
|
|
478
503
|
function versionRequirement(
|
|
479
504
|
url: string,
|
|
480
505
|
requirement: PlistDict,
|
|
@@ -606,7 +631,8 @@ function defaultConfiguration(project: LoadedProject): string {
|
|
|
606
631
|
// the build settings of one target in `configuration`, evaluated as xcode
|
|
607
632
|
// does: project then target level, each an xcconfig under its own settings;
|
|
608
633
|
// `$(inherited)` reads the level below and an undefined setting is empty. a
|
|
609
|
-
// list without that configuration builds its default one
|
|
634
|
+
// list without that configuration builds its default one, and names it in
|
|
635
|
+
// $(CONFIGURATION). overrides outrank
|
|
610
636
|
// every level, as the build location xcode chooses for a workspace does.
|
|
611
637
|
function targetSettings(
|
|
612
638
|
ref: TargetRef,
|
|
@@ -617,12 +643,15 @@ function targetSettings(
|
|
|
617
643
|
): { get: (key: string) => string; keys: Set<string>; xcconfigs: string[] } {
|
|
618
644
|
const { project, target } = ref
|
|
619
645
|
const xcconfigs: string[] = []
|
|
620
|
-
const
|
|
646
|
+
const selected = (listId: string | undefined): PlistDict | undefined => {
|
|
621
647
|
const configList = project.object(listId)
|
|
622
648
|
const configs = list(configList?.buildConfigurations).map(project.object)
|
|
623
|
-
|
|
649
|
+
return (
|
|
624
650
|
configs.find((entry) => entry?.name === configuration) ??
|
|
625
651
|
configs.find((entry) => entry?.name === str(configList?.defaultConfigurationName))
|
|
652
|
+
)
|
|
653
|
+
}
|
|
654
|
+
const level = (config: PlistDict | undefined): Record<string, string>[] => {
|
|
626
655
|
if (!config) return []
|
|
627
656
|
const name = str(config.name) ?? configuration
|
|
628
657
|
const base = str(config.baseConfigurationReference)
|
|
@@ -662,10 +691,11 @@ function targetSettings(
|
|
|
662
691
|
),
|
|
663
692
|
]
|
|
664
693
|
}
|
|
694
|
+
const targetConfig = selected(str(target.buildConfigurationList))
|
|
665
695
|
const levels = [
|
|
666
|
-
{ ...builtins, CONFIGURATION: configuration },
|
|
667
|
-
...level(str(project.project.buildConfigurationList)),
|
|
668
|
-
...level(
|
|
696
|
+
{ ...builtins, CONFIGURATION: str(targetConfig?.name) ?? configuration },
|
|
697
|
+
...level(selected(str(project.project.buildConfigurationList))),
|
|
698
|
+
...level(targetConfig),
|
|
669
699
|
overrides,
|
|
670
700
|
]
|
|
671
701
|
const resolving = new Set<string>()
|
|
@@ -1657,16 +1687,32 @@ export function readXcodeAppTarget(
|
|
|
1657
1687
|
? appTargets.filter((ref) => ref.target.name === targetName)
|
|
1658
1688
|
: appTargets
|
|
1659
1689
|
if (named.length !== 1) {
|
|
1690
|
+
if (appTargets.length === 0)
|
|
1691
|
+
throw new Error(
|
|
1692
|
+
`${container} has no application targets; open a project or workspace that contains one`,
|
|
1693
|
+
)
|
|
1660
1694
|
throw new Error(
|
|
1661
1695
|
targetName && named.length === 0
|
|
1662
1696
|
? `${container} has no application target ${targetName}; it has ${appTargetNames.join(', ') || 'none'}`
|
|
1663
1697
|
: targetName
|
|
1664
1698
|
? `${container} has ${named.length} application targets named ${targetName}; open its .xcodeproj`
|
|
1665
|
-
: `${container} has ${appTargetNames.length} application targets (${appTargetNames.join(', ')
|
|
1699
|
+
: `${container} has ${appTargetNames.length} application targets (${appTargetNames.join(', ')}); pass --target`,
|
|
1666
1700
|
)
|
|
1667
1701
|
}
|
|
1668
1702
|
const app = named[0]!
|
|
1669
|
-
|
|
1703
|
+
// an application without the requested configuration builds its list's
|
|
1704
|
+
// default, and the workspace builds that one too: cocoapods mirrors the
|
|
1705
|
+
// application's configurations and names a default it may not define
|
|
1706
|
+
const appConfigs = app.project.object(str(app.target.buildConfigurationList))
|
|
1707
|
+
const appConfigNames = list(appConfigs?.buildConfigurations).flatMap(
|
|
1708
|
+
(id) => str(app.project.object(id)?.name) ?? [],
|
|
1709
|
+
)
|
|
1710
|
+
const configuration =
|
|
1711
|
+
configurationName === undefined
|
|
1712
|
+
? defaultConfiguration(app.project)
|
|
1713
|
+
: appConfigNames.includes(configurationName)
|
|
1714
|
+
? configurationName
|
|
1715
|
+
: (str(appConfigs?.defaultConfigurationName) ?? configurationName)
|
|
1670
1716
|
|
|
1671
1717
|
// dependencies: explicit target dependencies, in this project or another
|
|
1672
1718
|
// through a container proxy, and products linked by file name, which xcode
|
|
@@ -1848,10 +1894,10 @@ export function readXcodeAppTarget(
|
|
|
1848
1894
|
const xcconfigs = new Set<string>()
|
|
1849
1895
|
const buildDir = (project: LoadedProject) =>
|
|
1850
1896
|
path.join(project.projectDir, '.build/peach-xcode/Build')
|
|
1851
|
-
// a workspace build writes every
|
|
1852
|
-
//
|
|
1853
|
-
// SYMROOT
|
|
1854
|
-
const
|
|
1897
|
+
// a workspace build writes every project's products into the app's build
|
|
1898
|
+
// directory, where pods' xcconfigs and every project's find each other's
|
|
1899
|
+
// frameworks and resource bundles, whatever SYMROOT a generated project names.
|
|
1900
|
+
const workspaceBuild = {
|
|
1855
1901
|
SYMROOT: path.join(buildDir(app.project), 'Products'),
|
|
1856
1902
|
OBJROOT: path.join(buildDir(app.project), 'Intermediates.noindex'),
|
|
1857
1903
|
}
|
|
@@ -1909,7 +1955,7 @@ export function readXcodeAppTarget(
|
|
|
1909
1955
|
DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? 'en',
|
|
1910
1956
|
},
|
|
1911
1957
|
options,
|
|
1912
|
-
|
|
1958
|
+
workspaceBuild,
|
|
1913
1959
|
)
|
|
1914
1960
|
for (const file of read) xcconfigs.add(file)
|
|
1915
1961
|
const swiftVersion = Number.parseFloat(settings('SWIFT_VERSION') || '5')
|
|
@@ -2183,7 +2229,9 @@ export function readXcodeAppTarget(
|
|
|
2183
2229
|
),
|
|
2184
2230
|
...podHeaders.filter((file) => HEADER_FILE.test(file)),
|
|
2185
2231
|
],
|
|
2186
|
-
headers
|
|
2232
|
+
headers: [
|
|
2233
|
+
...new Set([...headers, ...headerFiles.map(({ file }) => file)]),
|
|
2234
|
+
],
|
|
2187
2235
|
prefixHeader: settings('GCC_PREFIX_HEADER')
|
|
2188
2236
|
? absolute(settings('GCC_PREFIX_HEADER'))
|
|
2189
2237
|
: null,
|
|
@@ -2389,7 +2437,9 @@ export function readXcodeAppTarget(
|
|
|
2389
2437
|
const bundleTargets = builtTargets.filter(
|
|
2390
2438
|
({ ref }) => ref.target.productType === RESOURCE_BUNDLE,
|
|
2391
2439
|
)
|
|
2392
|
-
|
|
2440
|
+
// the app target copies every pod resource bundle, whichever native modules
|
|
2441
|
+
// peach compiles: native code finds them through Bundle at runtime.
|
|
2442
|
+
for (const owner of options.installedPods ? builtTargets : []) {
|
|
2393
2443
|
for (const phaseId of list(owner.ref.target.buildPhases)) {
|
|
2394
2444
|
const phase = owner.ref.project.object(phaseId)
|
|
2395
2445
|
if (
|