Setup Instructions

Using CocoaPods

  1. Add pod "ConnectSDK" to your Podfile
  2. Run pod install
  3. Open the workspace file and run your project

Important: Unfortunately, Amazon Fling SDK is not distributed via CocoaPods, so we cannot include its support in a subspec in an automated way. If you need it, please use the source ConnectSDK project directly.

You can use pod "ConnectSDK/Core" to get the lite version.

Without CocoaPods

  1. Clone the repository (git clone https://github.com/ConnectSDK/Connect-SDK-iOS.git)
  2. Set up the submodules by running the following command (in the Connect-SDK-iOS/ directory in this example): git submodule update --init
  3. Open your project in Xcode
  4. Locate the Connect SDK Xcode project in Finder
  5. Drag the Connect SDK Xcode project (ConnectSDK.xcodeproj) into your project’s Xcode library
  6. Navigate to your target’s settings screen, then navigate to the “Build Phases” tab
  7. Add the following in the “Link Binary With Libraries” section:
    • libConnectSDK.a
    • libz.dylib
    • libicucore.dylib
  8. Navigate to the “Build Settings” tab and add -ObjC to your target’s “Other Linker Flags”
  9. Follow the setup instructions for the service submodules:

If these steps are failing, try checking the repository for the latest setup instructions.

Include Strings File for Localization (optional)

  1. Locate the Connect SDK Xcode project in the Finder
  2. Drag the ConnectSDKStrings folder into your project’s Resources folder
  3. You may make whatever changes you would like to the values and the SDK will use your strings file