Swift Package Manager for Raygun4ApplePosted Sep 7, 2022 | 2 min. (426 words)
Raygun4Apple can now be added to your project using the newer Swift Package Manager, instead of Cocoapods. Raygun4Apple provides Crash Reporting and Real User Monitoring for iOS, tvOS & macOS.
Users of Raygun4Apple can now add it to their project by adding a reference to our GitHub repository. If you are not familiar with Swift, You might also want to check out Apple’s guide on how to add Swift packages in xcode first.
An app with Raygun4Apple Swift Package as a dependency
What is Swift Package Manager?
The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. The Package Manager is included in Swift 3.0 and above.
Why Swift Package Manager?
The Swift Package Manager is a new tool from Apple and is quickly becoming the industry standard way of managing dependencies.
Apple describes the Swift Package Manager as “a tool for managing distribution of source code, aimed at making it easy to share your code and reuse others’ code. The tool directly addresses the challenges of compiling and linking Swift packages, managing dependencies, versioning, and supporting flexible distribution and collaboration models.”.
The Swift Package Manager allows developers to build reusable components made up of Swift, Objective-C, Objective-C++, C, or C++ code that other developers can use in their own projects.
Apple has implemented native Swift Package Manager support into Xcode, which makes working with package dependencies simpler than ever before. By taking advantage of Xcode, developers can specify exactly how they depend on a package, all the way down to a specific version, and even which commit of the package they wish to use.
How do I find Raygun4Apple in the Swift Package Indices?
You can find Raygun4Apple in the Swift Package Registry or Raygun4Apple on the Swift Package Index.
Alternatively, you can find the Raygun4Apple Swift Package hosted on our GitHub repository.
What if I prefer Cocoapods?
If you are using Cocoapods, you can continue to do so. There are no breaking changes with this update and we have no plans to drop support for Cocoapods.
Feedback for us?
We’ve been loving the feature ourselves here at Raygun HQ and we’d love for you to give it a try and see for yourself.
Our Product team would love to hear what you think of this latest enhancement for mobile performance monitoring. Please email email@example.com or use the “Contact Raygun” link in the sidebar of your Raygun app to start a conversation with us.