SPM 包找不到导入 SwiftUI

SPM package can't find import SwiftUI

我在我的项目中使用了我自己 (Here is the Github Link) 制作的 Swift Package Manager 数据包,我测试了该数据包并且它确实可以正常工作并且它确实工作了几天但是当我尝试存档应用程序以将其发布到 TestFlight 它开始显示这些对我来说没有任何意义的错误

我已经

我的项目

原来我必须指定支持 SwiftUI 的 iOS、TvOS、watchOS 和 macOS 版本,在我的例子中,我主要使用每个平台的最新版本,因为我的库需要那个,但是对于 SwiftUI,最早支持的版本是 iOS13

let package = Package(
    name: "SwiftUISnackbar",
    platforms: [
            .macOS(.v11),
            .iOS(.v14),
            .tvOS(.v14),
            .watchOS(.v7)
        ],
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "SwiftUISnackbar",
            targets: ["SwiftUISnackbar"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        // .package(url: /* package url */, from: "1.0.0"),
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages this package depends on.
        .target(
            name: "SwiftUISnackbar",
            dependencies: []),
        .testTarget(
            name: "SwiftUISnackbarTests",
            dependencies: ["SwiftUISnackbar"]),
    ]
)