iOS
Setup Guide
This document provides a comprehensive overview of the Spike SDK for iOS, detailing its features and capabilities.
Current Swift SDK Version: 4.3.21
- Swift Package: Available here
- API Reference for SpikeSDK: Available here
Requirements
- iOS Version:
13.0+
iOS Signing & Capabilities
To add HealthKit support to your application’s Capabilities:
- Open the
iOS/
folder of your project in Xcode. - Select the project name in the left sidebar.
- Open the Signing & Capabilities section.
- In the main view, select + Capability and double-click HealthKit.
For more details, see Apple’s HealthKit setup guide.
Info.plist
Add Health Kit permissions descriptions to your Info.plist
file:
SDK Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. To integrate SpikeSDK into your Xcode project using CocoaPods, specify it in your Podfile
:
Use pod install
and pod update
commands to install/update pods afterward.
Swift Package Manager
To integrate SpikeSDK into your Xcode project using Swift Package Manager, add it in your Package.swift
or through the Project’s Package Dependencies tab: