BookmarkSubscribeRSS Feed

Installing the SAS Customer Intelligence 360 Mobile SDK on an iOS Application

Started ‎04-03-2024 by
Modified ‎04-03-2024 by
Views 170

In an earlier post I provided step by step instructions on how the mobile app developer can install and initialize the mobile SDK in an Android application. The purpose of this post is to provide instructions on how a mobile app developer can install and initialize the mobile SDK in an iOS application both manually and using Swift Package Manger. Future posts will discuss other topics such as how to set up mobile messages, how configure events, and how to prepare the mobile application to show spots.

 

Manual Installation

 

The first step in installing the SDK is obtaining it from SAS Customer Intelligence 360. Please see my previous post on how to do this.

 

Next, navigate to the folder that contains the mobile SDK, select the iOS folder, and double-click the sascollector.zip file:

 

01_JH_Screenshot1_jh.png

Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.

 

This creates a directory named SASCollector.xcframework.

 

In your project, create a folder named Frameworks and copy the SASCollector.xcframework file to it and, add the SASCollector.plist file to your project as well:

 

02_JH_Screenshot2_jh.png

 

In Xcode, click the target application, General, and then click the plus button under the Frameworks, Libraries, and Embedded Content tab:

 

03_JH_Screenshot3_jh.png

 

Select Add Other, then select Add Files:

 

04_JH_Screenshot4_jh.png

 

Navigate to the Frameworks folder, and click the SASCollector.xcframework, click Open:

 

05_JH_Screenshot5_jh.png

 

 Ensure that this file is set to Embed and Sign:

 

06_JH_Screenshot6_jh.png

 

Drag the SASCollector.plist file from finder to the project folder in the Xcode Navigator panel:

 

07_JH_plist-1024x576.gif

 

Select Copy items if needed. Confirm that it is added to the target and select Finish:

 

08_JH_Screenshot7_jh.png

 

Install using Swift Package Manager

 

In Swift Package Manager, select your project. Next, select Package Dependencies, then click the plus button:

 09_JH_Screenshot8_jh.png

 

Enter https://github.com/sassoftware/ci360-mobile-ios-sdk  on the search bar and select add package:

 

10_JH_Screenshot9_jh.png

 

Drag the SASCollector.plist file from finder to the project folder in the Xcode Navigator panel as described in the manual installation section.

 

For additional information see SAS Help Center: Installing the iOS Mobile SDK or Installing the iOS Mobile SDK | Customer Intelligence 360 - Customer Intelligence - SAS Video Portal.

 

Additionally, I am currently developing the SAS Customer Intelligence 360: Mobile SDK course. This course delves into more detail about the Mobile SDK and will include a demonstration on how to install the mobile SDK onto an iOS application. Once finished this course will be accessible from the SAS Customer Intelligence Learning Subscription.

 

 

Find more articles from SAS Global Enablement and Learning here.

Version history
Last update:
‎04-03-2024 03:50 PM
Updated by:
Contributors

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags