Setup Instructions

Using CocoaPods

  1. Add pod "ConnectSDK" to your Podfile
  2. Run pod install
  3. Open the workspace file and run your project
  4. If you get any errors about the Google Cast framework, download the latest framework and include it in your project's Link Binary With Libraries build phase

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

Important note about google-cast-sdk CocoaPod

As of this writing, Google does not maintain the links for old versions of the Google Cast iOS sender framework files. This means that the google-cast-sdk CocoaPod will break upon each release of the Google Cast SDK. When this occurs, you will need to do either of the following.

  • Check to see if the google-cast-sdk CocoaPod has been updated
  • Manually download and add/update the GoogleCast.framework file from Google's site

Without CocoaPods

  1. Clone repository (or download & unzip)
  2. Open your project in Xcode
  3. Locate the Connect SDK Xcode project in the Finder
  4. Drag the Connect SDK Xcode project file (ConnectSDK.xcodeproj) into your project's Xcode library
  5. Navigate to your project's settings screen, then navigate to the Build Phases tab
  6. Add ConnectSDK as a Target Dependency
  7. Add the following in the Link Binary with Libraries section
    1. libConnectSDK.a
    2. libz.dylib
    3. libicucore.dylib
  8. Navigate to the Build Settings tab and make sure that -ObjC is in your target's Other Linker Flags. If it is not, please add it.
  9. Download the Google Cast SDK iOS sender library file
  10. Extract GoogleCast.framework and copy it to $(Connect SDK project directory)/ConnectSDK/Frameworks
  11. Drag and drop GoogleCast.framework into your project's Frameworks folder
  12. Add MediaAccessibility.framework to the target's Link Binary With Libraries section.

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