You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xcode and OS versions: Xcode 15.4 and Xcode 16 beta.
Please provide a reproduction of the bug:
Create a Swift Package
Add fluentUI as dependency in the Package.swift file
In the autogenerated swift file on the package, create a basic preview with any text
Try to run the preview
Actual behavior:
Previews can't run, with the following error
Xcode 16.0 Beta
== PREVIEW UPDATE ERROR:
StubError
StubError: could not generate preview info: unableToFindTarget
Xcode 15.4 fails, because even though the Package is specified as iOS only it tries to build the macOS version of Fluent, this however, seems to be a bug of Xcode 15.x
Expected behavior:
Adding FluentUI shouldn't break previews
Priorities and help requested:
Requested priority: Normal
Here's my Package.swift if it helps
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "FluentTest",
platforms: [.iOS(.v16)],
products: [
.library(
name: "FluentTest",
targets: ["FluentTest"]),
],
dependencies: [
.package(url: "https://github.com/microsoft/fluentui-apple.git", .upToNextMinor(from: "0.28.0"))
],
targets: [
.target(
name: "FluentTest",
dependencies: [
.product(name: "FluentUI", package: "fluentui-apple")
]
),
.testTarget(
name: "FluentTestTests",
dependencies: ["FluentTest"]
)
]
)
The text was updated successfully, but these errors were encountered:
Environment Information
Please provide a reproduction of the bug:
Actual behavior:
Previews can't run, with the following error
Xcode 16.0 Beta
Xcode 15.4 fails, because even though the Package is specified as iOS only it tries to build the macOS version of Fluent, this however, seems to be a bug of Xcode 15.x
Expected behavior:
Adding FluentUI shouldn't break previews
Priorities and help requested:
Requested priority: Normal
Here's my Package.swift if it helps
The text was updated successfully, but these errors were encountered: