Swiftpack.co - Package - uxcam/ios-sdk
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

UXCam iOS SDK

This is the UXCam iOS SDK

To install

Using Cocoapods

Add the following to your Podfile:

pod 'UXCam'

and run pod update and you should be good to go.

Using Swift Package Manager

[NB: Due to issues such as https://forums.swift.org/t/swiftpm-binarytarget-dependency-and-code-signing/38953/38 you will be unable to ship to AppStore using the SPM for UXCam, so please continue with CocoaPods until XCode/SPM is fixed]

Starting with the 3.3.0 release UXCam for iOS supports installation via Swift Package Manager in Beta status. Please report any problems here.

Limitations

  • Requires Xcode 12.

Follow the instructions here [NB: on Version 12.2 (12B45b) on macOS 10.15.7 (19H15) picking to resolve to a version is crashing XCode. Pick 'main' branch for a working integration.]

Integration

Get your App key from the dashboard at UXCam.com

Objective-C

In your AppDelegate.m file:

#import <UXCam/UXCam.h>

and in your application:didFinishLaunchingWithOptions: method add:

	[UXCam optIntoSchematicRecordings];
	[UXCam startWithKey:@"App-key from UXCam"]; 

Swift

In your AppDelegate.swift file:

import UXCam

and in your func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool function add:

	UXCam.optIntoSchematicRecordings()
	UXCam.start(withKey:"App-key from UXCam")

Developer Documentation

Documentation on using the various API methods can be found here

Acknowledgements

Thanks to:

Anurag Ajwani for a series of excellent articles on building and distributing XCFrameworks.

Boris Bielik for the post on how to get SPM working with binary targets and dependencies.