ConvertSDK to XCFramework and add to project package
tylerlantern opened this issue · 0 comments
tylerlantern commented
I converted the EstimoteSDK.framework
in to XCFramework by this library xcframework-maker
It went well with your iOS-Proximity-SDK. I was able to proximity-sdk xcframework to my project.
But for EstimoteSDK.framework
it does not work i got an errors
Here is below what my Package.swift look like
let package = Package(
name: "TryoutFleet",
defaultLocalization: "en",
platforms: [.iOS(.v14), .macOS(.v10_15)],
products: [
.library(name: "AppFeature", targets: ["AppFeature"]),
.library(name: "EstimoteFleetManagementClient", targets: ["EstimoteFleetManagementClient"]),
.library(name: "EstimoteFleetManagementClientLive", targets: ["EstimoteFleetManagementClientLive"])
],
dependencies: [
.package(
url: "https://github.com/pointfreeco/swift-composable-architecture.git",
from: "0.55.0"
)
],
targets: [
.target(
name: "AppFeature",
dependencies: [
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
"EstimoteFleetManagementClient"
]
),
.target(
name: "EstimoteFleetManagementClient",
dependencies: [
.product(name: "ComposableArchitecture", package: "swift-composable-architecture")
]
),
.target(
name: "EstimoteFleetManagementClientLive",
dependencies: [
"EstimoteFleetManagementClient",
// "EstimoteFleetManagementSDK",
"EstimoteSDK"
// "EstimoteBluetoothScanning"
]
),
.binaryTarget(
name: "EstimoteFleetManagementSDK",
path: "Frameworks/EstimoteFleetManagementSDK.xcframework"
),
.binaryTarget(
name: "EstimoteSDK",
path: "Frameworks/EstimoteSDK.xcframework"
),
.binaryTarget(
name: "EstimoteBluetoothScanning",
path: "Frameworks/EstimoteBluetoothScanning.xcframework"
)
]
)