Run the CI setup script from the OpenSwiftUI repository root. It checks out the local package dependencies used by the generated Example project.
# From OpenSwiftUI/Example
../Scripts/CI/darwin_setup_build.shOpenCoreGraphics and OpenObservation are resolved through the OpenSwiftUI package dependency.
Since OpenAttributeGraph is not yet completed, you need to configure an AG backend before building.
This example defaults to Apple's private AttributeGraph framework through mise.toml.
To use Compute instead, run setup with the Compute mise environment:
./setup.sh --computeThe Compute environment is defined in mise.compute.toml. It disables the private AttributeGraph framework and uses OpenSwiftUIProject/Compute from source on the main branch.
The recommended setup path is the local setup script:
./setup.shThe script trusts and installs the tools declared by Example/mise.toml, then runs Tuist through mise exec so the pinned Tuist version is used.
To generate the project with Compute:
./setup.sh --computeThis uses mise --env compute, which loads Example/mise.compute.toml for mise install, tuist install, and tuist generate.
To run the steps manually:
mise trust mise.toml
mise install
mise exec -- tuist install
mise exec -- tuist generate --no-openOr with Compute:
mise trust mise.compute.toml
mise --env compute install
mise --env compute exec -- tuist install
mise --env compute exec -- tuist generate --no-openBy default, the generated Debug Example targets include LookInsideServer. You can switch the debug inspector server before running tuist install and tuist generate:
# Default
export OPENSWIFTUI_EXAMPLE_LOOKINSIDE_SERVER=1
export OPENSWIFTUI_EXAMPLE_LOOKIN_SERVER=0
# Use Lookin instead
export OPENSWIFTUI_EXAMPLE_LOOKINSIDE_SERVER=0
export OPENSWIFTUI_EXAMPLE_LOOKIN_SERVER=1
# Disable both
export OPENSWIFTUI_EXAMPLE_LOOKINSIDE_SERVER=0
export OPENSWIFTUI_EXAMPLE_LOOKIN_SERVER=0Do not enable both server variables at the same time.
A OpenSwiftUI/SwiftUI App lifecycle example.
- Choose
SwiftUIDebugconfiguration to run with SwiftUI - Choose
OpenSwiftUIDebugconfiguration to run with OpenSwiftUI
A UIKit/AppKit hosting example that manually sets up the application lifecycle and window using UIHostingView / NSHostingView.
- Choose
SwiftUIDebugconfiguration to run with SwiftUI - Choose
OpenSwiftUIDebugconfiguration to run with OpenSwiftUI