Ableton / LinkKit

iOS SDK for Ableton Link, a new technology that synchronizes musical beat, tempo, and phase across multiple applications running on one or more devices.
http://ableton.github.io/linkkit
Other
151 stars 10 forks source link

Cocoapod or SPM support #59

Open cerupcat opened 3 years ago

cerupcat commented 3 years ago

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

fwcd commented 4 months 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:

image

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