Aroma provides easy integration with Carthage.
github "RedRoma/AromaSwiftClient" "develop"
Add the following import statement wherever you use the Aroma Client.
import AromaSwiftClient
Before you can send messages to Aroma, be sure to set the Application Token
given when the App was provisioned from within the app.
The Token should look something like this:
abcdefgh-1234-474c-ae46-1234567890ab
Put this in your AppDelegate
when the Application Loads.
AromaClient.TOKEN_ID = "abcdefgh-1234-474c-ae46-1234567890ab"
AromaClient.begin(withTitle: "Operation Failed")
.addBody("Details: \(error)")
.addLine(2)
.addBody("For User \(user)")
.withPriority(.low)
.send()
Try to only Send messages that are actually interesting. You don't want to bombard Aroma with too many diagnostic messages that are better suited for Logging.
Set an Urgency to each message. Think of Urgency like you would a Log Severity Level. Using them allows you and your team to know just how important a message is.
Additional info on the Swift Client can be found by visiting the GitHub project.