Setup Instructions
Using CocoaPods
- Add
pod "ConnectSDK"
to yourPodfile
- Run
pod install
- Open the workspace file and run your project
- 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
- Clone repository (or download & unzip)
- Open your project in Xcode
- Locate the Connect SDK Xcode project in the Finder
- Drag the Connect SDK Xcode project file (ConnectSDK.xcodeproj) into your project's Xcode library
- Navigate to your project's settings screen, then navigate to the Build Phases tab
- Add ConnectSDK as a Target Dependency
- Add the following in the Link Binary with Libraries section
- libConnectSDK.a
- libz.dylib
- libicucore.dylib
- 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.
- Download the Google Cast SDK iOS sender library file
- Extract GoogleCast.framework and copy it to $(Connect SDK project directory)/ConnectSDK/Frameworks
- Drag and drop GoogleCast.framework into your project's Frameworks folder
- Add
MediaAccessibility.framework
to the target'sLink Binary With Libraries
section.
If these steps are failing, try checking the repository for the latest setup instructions.
Include Strings File for Localization (optional)
- Locate the Connect SDK Xcode project in the Finder
- Drag the ConnectSDKStrings folder into your project's Resources folder
- You may make whatever changes you would like to the values and the SDK will use your strings file