Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertSDK to XCFramework and add to project package #293

Open
tylerlantern opened this issue Jun 29, 2023 · 0 comments
Open

ConvertSDK to XCFramework and add to project package #293

tylerlantern opened this issue Jun 29, 2023 · 0 comments

Comments

@tylerlantern
Copy link

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"
    )
  ]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant