mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Add iOS Framework #636

Closed fluffyemily closed 6 years ago

fluffyemily commented 6 years ago

An iOS framework wrapping Mentat's API over FFI.

How to build for iOS

cd ffi
cargo lipo --release

When the build is complete, open sdks/swift/Mentat/Mentat.xcproj in Xcode, do a force clean (Cmd + alt + Shift + k).

To run tests, ensure that the MentatDebug target is selected.

@rnewman can you please check something for me? About 3/4 of the way through developing this, something weird happened with libmentat_ffi.a. It stopped bundling sqlite up when running cargo lipo, however if I build Toodle with the current mentat and linked that, everything was fine. Can you please see if you have the same problem, or whether it's just my machine being weird?

fluffyemily commented 6 years ago

@rnewman I've made the changes related to your comments on https://github.com/mozilla/mentat/pull/643 so I could make the relevant changes to both the iOS and Android versions. I shall close this PR and move all work over to #643