Open cerupcat opened 3 years ago
Has anyone gotten SPM's binary targets to work? I've tried adding
.binaryTarget(
name: "LinkKit",
url: "https://github.com/Ableton/LinkKit/releases/download/LinkKit-3.2.1/LinkKit.zip",
checksum: "ed0f216a7cd63e569b045397958be2a622d1e8a403939570781d8e8e8b32f182"
)
along with the corresponding target dependency to my package, but am still getting
error: no such module 'LinkKit'
It looks like Xcode finds the xcframework
, but for some reason it is neither linked nor shows up in the list of libraries:
Edit: Adding a wrapper target seems to work, as a workaround: https://forums.swift.org/t/no-such-module-when-using-swiftpm-binarytarget-xcframework-on-dependency/48070/4
Are there any plans for adding cocoapods or Swift Package Manager support? It would help to maintain up-to-date versioning.
For SPM, I believe you can point to xcframeworks to include. So it doesn't need to build from code. https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages