Originally published at: https://amatino.io/blog/amatino-swift-v0-0-4-released/
Amatino Swift allows MacOS and iOS developers to build double-entry accounting functionality into their apps. Until today’s v0.0.4 release, it was a bit tricky to install. To make installation easy, Amatino Swift is now compatible with Carthage. Carthage is a Swift dependency manager. In the project’s own words:
Carthage is intended to be the simplest way to add frameworks to your Cocoa application.
Carthage builds your dependencies and provides you with binary frameworks, but you retain full control over your project structure and setup. Carthage does not automatically modify your project files or your build settings.
You can install Carthage by downloading and running
Carthage.pkgfrom the Carthage project releases page.
Installing Amatino Swift with CarthageNavigate to your project directory, and create a
Cartfile. Inside that file, add the line
github "amatino-code/amatino-swift". You can do this in one line with the following command:
$ echo 'github "amatino-code/amatino-swift"' > CartfileNext, tell Carthage to download the Amatino Swift repository and compile MacOS and iOS frameworks:
$ carthage updateOnce the process is complete, you should have
Amatino.frameworkbinaries available in the
The following instructions are applicable to MacOS applications. Instructions for iOS are broadly similar, and all instructions are available in detailed form in the Carthage project documentation.
Embedding Amatino in a MacOS applicationDrag the binaries for your target platforms to the Embedded Binaries section of your Xcode project.
Next, to enable debugging, create a Copy Files phase in your target’s Build Phases tab:
Inside the phase, select Products Directory from the Destination drop down menu.
Finally, drag the
Amatino.framework.dSYMfile into the Add files here section.
For more detailed instructions, check out the Carthage project documentation.
Where to next?Now that Amatino Swift is easier to install, it's time to smash together more functionality. In particular, I'd like to get Ledgers working as soon as possible.
Have a preferred method of installing Swift Frameworks? Please tell me about it on Twitter, on the forums, or via email. I would love to hear from you, and develop Amatino Swift in such a way as to make it easy for you to install.