I'm preparing the SPM package, with resources folder. When I compile it for device, it work ok and I got successful. But when I try to build to simulator, I got error: ... bundle format unrecognized, invalid, or unsuitable
What can be wrong?
- Tried to make Resource folder empty - no result. Package.swift
- defaults variants with delete DerivenData - no result.
let package = Package(
name: "GPUVideo",
platforms: [
.macOS(.v10_13), .iOS(.v13),
],
products: [
.library(
name: "GPUVideo",
targets: ["GPUVideo"]),
],
dependencies: [
],
targets: [
.target(
name: "GPUVideo",
dependencies: [],
exclude: ["Metal"],
resources: [
.copy("Resources")
])
]
)