We already have an objective C interface framework, which contents only the header files and having following contents -
-
protocol declaration
-
methods and property declarations
-
Umbrella header file
I have created Swift Package manger for the same interface framework, when I try to import this framework header file in the implementation framework, I didn't find the header file in that case.
my package.swift
is
import PackageDescription
let package = Package(
name: "communication",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "communication",
targets: ["communication"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://interface.git", 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 which this package depends on.
.target(
name: "communication",
dependencies: ["interface"],
path: ".",
sources: ["Interface"],
publicHeadersPath: "Interface"),
]
)
Please guide for same.