Skip to main content
Version: 26.2.9

iOS

This article outlines the steps required to install and set up the Skillz SDK for iOS.

iOS SDK Installation Steps

Download the Skillz SDK

The latest version of the Skillz SDK for iOS can be found at the Downloads section of the Skillz Developer Console. Decompress the file you download.

Add the Skillz SDK to your Xcode project

Inside of the folder you decompressed you will find the file Skillz.framework. Drag the Skillz.framework file into your Xcode project like so:

NOTE

When adding the Skillz.framework make sure that the Create groups option is selected.

Skillz.framework contains everything needed for Skillz to operate. Your project should now contain the Skillz SDK.

Set the Deployment Target

Next, you'll need to ensure that your Deployment Target is set to 10.0, which is the minimum iOS version the Skillz SDK is compatible with.

This can be set by editing the your project build settings by double clicking on your project’s root entry, selecting the General tab, and edit the Deployment Info Target.

Deployment Target

Update Embed Binaries Build Step

The framework will need to be embedded in your app via Xcode’s Embed Binaries build setting. This setting can be found under the General settings page of your app target.

Skillz.framework should then be listed under both the Link Binary With Libraries build phases step, and the new Embed Frameworks build step as seen below. Make sure Code Sign on Copy is checked.

NOTE

This error will occur if Code Sign on Copy is not checked

Add the Skillz Run Script

The final configuration step is to add a Skillz specific script to the Build Phases of your project.

Go into your project target in Xcode. Select the Build Phases section and click the + sign to add a New Run Script Phase.

Confirm the shell is set to /bin/sh and paste the following in the box,

if [ -e "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Skillz.framework/postprocess.sh" ]; then
/bin/sh "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Skillz.framework/postprocess.sh"
fi

Ensure that this run script is the last item in Build Phases.

This script will add a standard NSLocationWhenInUseUsageDescription property to your project’s Info.plist if it isn’t already present. If this property already exists, we recommend updating the description string to reflect that cash gameplay requires location information for legal reasons.