kiwix / kiwix-build

Kiwix & openZIM build engine
GNU General Public License v3.0
86 stars 42 forks source link

Wrap XCFramework into a swift package, for Apple (iOS, macOS) distribution #671

Open BPerlakiH opened 8 months ago

BPerlakiH commented 8 months ago

Importing / adding the libkiwix library into iOS and macOS application could become a lot easier, by providing a swift package, which is a folder structure + manifest file that is wrapping up the current XCFramework output.

Details / how to can be found here: https://blog.devgenius.io/xcframework-swiftpackagemanager-c03f4b1903d9 https://developer.apple.com/documentation/xcode/distributing-binary-frameworks-as-swift-packages

kelson42 commented 8 months ago

It's important we use this opportunity to rename the whole package to "libkiwix" to be coherent with the rest.

BPerlakiH commented 8 months ago

We have tried the following setups:

For these reasons we have decided not to use Swift Package Manager for integrating our XCFramework, as it is not yet fully supported in it's current form.

kelson42 commented 8 months ago

I will keep the ticket open, this will be reassesed in a year.