InstalogIOS is a powerful SDK for iOS applications that provides crash reporting, event logging, and user feedback collection capabilities.
InstalogIOS is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'InstalogIOS'InstalogIOS is also available through Swift Package Manager. To install it, add the following to your Package.swift file:
dependencies: [
.package(url: "https://github.com/instalog-dev/instalog-ios.git", .exact("1.0.0"))
]Or in Xcode:
- File > Add Packages...
- Enter package URL:
https://github.com/instalog-dev/instalog-ios.git - Select "Exact Version" and enter "1.0.0"
- Click "Add Package"
import InstalogIOS
// In AppDelegate
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Instalog.shared.initialize(key: "your-api-key")
return true
}// Set user ID
Instalog.shared.identifyUser("user123")
// Log an event
let log = InstalogLogModel(
level: .info,
message: "User completed onboarding"
)
Instalog.shared.logEvent(log: log)
// Show feedback modal
Instalog.shared.showFeedbackModal()- Automatic crash detection
- Manual crash reporting
- Crash simulation for testing
- Multiple log levels (debug, info, warning, error)
- Custom metadata support
- Automatic device information collection
- In-app feedback modal
- Screenshot attachment (up to 4 images)
- Programmatic feedback submission
To run the example project:
- Clone the repo
- Run
pod installfrom the Example directory - Open the workspace in Xcode
The example project demonstrates:
- SDK initialization
- Event logging
- Crash reporting
- User feedback collection
Ogbonda Chiziaruhoma
[email protected]
InstalogIOS is available under the MIT license. See the LICENSE file for more info.