Integrate Luciq on iOS
Installation
You can integrate Luciq using one of four methods: CocoaPods, Carthage, SPM, or manually.
The installation process will set up the Luciq SDK to support App Performance Monitoring, Crash Reporting, and Bug Reporting, Session Replay and In-App Surveys
1. CocoaPods
To integrate Luciq into your Xcode project using CocoaPods, add it to your Podfile.
pod 'Luciq'Then, run the following command
pod installCocoaPods will download and install the SDK and add all the required dependencies to your Xcode project. You can follow the steps here to add a script that will automatically upload your dSYMs so that your crash reports are automatically symbolicated.
Pod Update
Since CocoaPods might not always download the latest version of the SDK when using pod install, we recommend that you also run pod update Luciq after the installation has completed or whenever you would like to update Luciq.
2. Swift Package Manager
To integrate Luciq into your Xcode project using SPM, follow the below steps:
Open target project
Select Swift Packages as shown below
Add a new package with the following link: https://github.com/luciqai/luciq-ios-sdk
Select Next then Finish
3. Carthage
To integrate Luciq in your Xcode project using Carthage, add it to your Cartfile.
Then, run the following command.
Finally, drag LuciqSDK.xcframework into your Xcode project. You can follow the steps here to add a script that will automatically upload your dSYMs so that your crash reports are automatically symbolicated.
4. Manually
Download the Luciq SDK.
Extract it, then drag and drop
LuciqSDK.xcframeworkto your project'sEmbedded Binariessection under the General tab, and make sure that the Copy items if needed checkbox is checked.You can follow the steps here to add a script that will automatically upload your dSYMs so that your crash reports are automatically symbolicated.
You can follow the steps here to add a script that will automatically upload your dSYMs so that your crash reports are automatically symbolicated.
Using Luciq
It is absolutely safe to include Luciq in your App Store builds as it doesn't use any private APIs. If you'd like to only include it in beta builds, that can be done two ways depending on how you create your builds, either by having separate builds or the same build for Beta and Production.
Separate Beta and Production Builds
Use this method if you create your development builds for beta testers using a different build configuration than the production builds that you submit to the App Store. You can only initialize Luciq using the profile that you use for your beta builds. To show Luciq, you can set up multiple invocation events.
The code below only enables Luciq for the DEBUG build profile.
Same Beta and Production Build
Use this method if you create your beta and production builds using the same configuration.
The following method returns YES if the app is running live from the App Store and NO if it is running from the simulator, Xcode, Fabric Beta, or TestFlight.
You can find your app token by selecting SDK Integration in the Settings menu from your Luciq dashboard.

Managing Permissions
Luciq needs access to the device microphone and photo library to be able to let users add audio, image, and video attachments. Starting from iOS 10, apps that don’t provide a usage description for those two permissions will be rejected when submitted to the App Store.
To prevent your app from being rejected, you’ll need to add the following two keys to your app’s info.plist file with text that explains to your app users why those permissions are needed:
NSMicrophoneUsageDescriptionNSPhotoLibraryUsageDescription
If your app doesn’t already access the microphone or photo library, we recommend usage descriptions like:
" needs access to your microphone so you can attach voice notes."
" needs access to your photo library so you can attach images."
The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Luciq.
Last updated