Estimote / iOS-Fleet-Management-SDK

Estimote Fleet Management SDK for iOS
https://developer.estimote.com
MIT License
1.18k stars 398 forks source link

ConvertSDK to XCFramework and add to project package #293

Open tylerlantern opened 1 year ago

tylerlantern commented 1 year ago

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 Screenshot 2023-06-29 at 15 58 51 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"
    )
  ]
)