In order to build your app on a SmartDeviceLink (SDL) Core, the SDL software development kit (SDK) must be installed in your app. The following steps will guide you through adding the SDL SDK to your workspace and configuring the environment.
There are three different ways to install the SDL SDK in your project: CocoaPods, Carthage, or manually.
sudo gem install cocoapods
Navigate to the root directory of your app. Make sure your current folder contains the .xcodeproj file
Create a new Podfile.
In the Podfile, add the following text. This tells CocoaPods to install SDL SDK for iOS. SDL Versions are available on Github. We suggest always using the latest release.
target ‘<#Your Project Name#>’ do pod ‘SmartDeviceLink’, ‘~> <#SDL Version#>’ end
Install SDL SDK for iOS:
There will be a newly created .xcworkspace file in the directory in addition to the .xcodeproj file. Always use the .xcworkspace file from now on.
open <#Your Project Name#>.xcworkspace
SDL iOS supports Carthage! Install using Carthage by following this guide.
Tagged to our releases is a dynamic framework file that can be drag-and-dropped into the application. Please Note: You cannot submit your app to the app store with the framework as is. You MUST strip the simulator part of the framework first. Use a script such as Carthage's to accomplish this.View on GitHub.com