Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Example/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ let project = Project(
targets: [
.target(
name: "Example",
destinations: [.iPhone, .iPad, .mac],
destinations: [.iPhone, .iPad, .mac, .appleVision],
product: .app,
bundleId: "org.OpenSwiftUIProject.OpenSwiftUI-spm.Example",
deploymentTargets: .multiplatform(iOS: "18.0", macOS: "15.0"),
deploymentTargets: .multiplatform(iOS: "18.0", macOS: "15.0", visionOS: "2.0"),
infoPlist: .extendingDefault(with: [
"UILaunchScreen": [
"UIColorName": "",
Expand Down
9 changes: 8 additions & 1 deletion Example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example

A minimal iOS and macOS app demonstrating OpenSwiftUI binary framework
A minimal iOS, macOS, and visionOS app demonstrating OpenSwiftUI binary framework
integration through an Xcode-native Swift package dependency. Tuist only
generates the Example project and workspace.

Expand Down Expand Up @@ -38,6 +38,13 @@ export OPENSWIFTUI_LOCAL_XCFRAMEWORKS_PATH=/path/to/OpenSwiftUI/build
"$(dirname "$(xcode-select -p)")/MacOS/Xcode" "$PWD/Example.xcworkspace"
```

## visionOS

The visionOS target requires visionOS 2.0 or later and XCFrameworks with visionOS
device and simulator slices. The 0.23.1 binaries do not include these slices.
Until a release includes them, use `OPENSWIFTUI_LOCAL_XCFRAMEWORKS_PATH` with
locally built XCFrameworks.

## Notes

- The generated `.xcodeproj` and `.xcworkspace` are gitignored — always regenerate via `tuist generate`.
2 changes: 1 addition & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ let package = Package(
* as we can't conditional change platforms for trait. So keep leave this for now.
* And the final MachO target must match the OS version to successfully link the framework.
*/
// platforms: [.iOS(.v18), .macOS(.v15)],
platforms: [.iOS(.v15), .macOS(.v12)],
// platforms: [.iOS(.v18), .macOS(.v15), .visionOS(.v2)],
platforms: [.iOS(.v15), .macOS(.v12), .visionOS(.v1)],
products: [
.library(
name: "OpenSwiftUI",
Expand Down
4 changes: 2 additions & 2 deletions Package.swift.template
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ let package = Package(
* as we can't conditional change platforms for trait. So keep leave this for now.
* And the final MachO target must match the OS version to successfully link the framework.
*/
// platforms: [.iOS(.v18), .macOS(.v15)],
platforms: [.iOS(.v15), .macOS(.v12)],
// platforms: [.iOS(.v18), .macOS(.v15), .visionOS(.v2)],
platforms: [.iOS(.v15), .macOS(.v12), .visionOS(.v1)],
products: [
.library(
name: "OpenSwiftUI",
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ Examples of SwiftUI packages using this integration pattern:
## Platform Support

Currently supports:
- iOS 18.0+ (device and simulator)
- iOS 18.0+
- macOS 15.0+
- visionOS 2.0+

## Macro Distribution

Expand Down
Loading