I tried different ways with different configurations and cannot make it run. Here is what I tried while creating the xcframework:
Add 1 framework dependency as pod
Add 1 framework dependency as Swift package (MKRingProgressView) and created also a swift package marking the dependency in the package dependency as follows:
name: "FirstFramework", platforms: [ .iOS(.v15) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "FirstFramework", targets: ["FirstFramework"]), ], dependencies: [ .package(url: "https://github.com/maxkonovalov/MKRingProgressView.git", from: "2.3.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 this package depends on. .binaryTarget( name: "FirstFramework", path: "./Sources/FirstFramework.xcframework") ]
Set build libraries for distribution to YES
I am always getting the error "No such module MKRingProgressView" when adding my framework to a Test project, so its not recognising the dependency of my framework.
Any ideas?