How to Integrate Appxiom in iOS
This guide explains how to integrate Appxiom into your iOS project for advanced monitoring and diagnostics.
Prefer AI Coding Agents? You can automate this setup using Appxiom iOS Skills with Claude, Antigravity, Cursor, or GitHub Copilot (
npx @appxiom/ios-skills add all).
Choose Integration Method
- CocoaPods
- Swift Package Manager (SPM)
Set Up CocoaPods
CocoaPods is a popular dependency manager for Swift and Objective-C projects. If you haven't already, install CocoaPods by following the official guide.
Add Appxiom to Your Project
Add the following lines to your Podfile to include both AppxiomCore and AppxiomDebug:
Podfile:
pod 'AppxiomCore', '2.1.0', :configuration => ['Release']
pod 'AppxiomDebug', '2.1.0', :configuration => ['Debug']
AppxiomDebugincludes all features ofAppxiomCoreplus auto detection of Frame rate issues.
Next, install the pods by running the following command in the terminal where your Podfile is located:
Terminal:
pod install --repo-update
Use the
--repo-updateoption the first time to ensure you have the latest pod specs.
Integrate via Swift Package Manager
To integrate AppxiomCore into your Xcode project:
- Open your project in Xcode.
- Go to File -> Add Package Dependencies...
- Paste the repository URL into the search field:
https://github.com/basilgregory/appxiom-spm.git - Choose the version/dependency rules and add
AppxiomCoreto your app target.
Import Appxiom in Your Code
Import AppxiomCore wherever you need to use its APIs:
- Objective C
- Swift
#import <AppxiomCore/Ax.h>
import AppxiomCore
Frequently Asked Questions (FAQ)
Q: Do I need to run pod install every time I change the Podfile?
A. Yes, after modifying your Podfile, always run pod install to update your dependencies.
Q: What does --repo-update do?
A. It updates your local CocoaPods repository to fetch the latest pod versions and specs.
Q: Can I use Appxiom with Swift Package Manager or CocoaPods?
A. Yes, Appxiom supports integration via CocoaPods or Swift Package Manager (SPM).
Q: Where should I import AppxiomCore?
A. Import AppxiomCore in any file where you want to use Appxiom APIs.