When I create a swift package, and then I use the simple line:
import Combine
I get the following error:
No such module 'Combine'
I've switched my scheme to Any iOS Device
I also set the platform in the Package.swift
file
import PackageDescription
let package = Package(
name: "AsyncImageView",
platforms: [.iOS(.v8)],
products: [
It still does not accept Combine.
Combine is iOS 13 and/or macOS 10.15 or later, only. You need to guarantee the compiler and linker of that condition. Change your package to include
platforms: [
.iOS(.v13), .macOS(.v10_15)
],
Now build the package scheme, then build the project scheme, and you're all set.