Setting Up your Amazon Fling Development Environment for iOS
Our SDK for iOS is distributed as an iOS framework which can be linked to your iOS controller app. This document describes how to set up your iOS projects to include these libraries.
- MacOS X
- Xcode 6+
- iOS build architecture: armv7, arm64, i386, and x86_64
- Player discovery: Local network players only
Download and Install
- Download the Fling SDK from the Amazon developer portal.
- Extract contents.
Setting up Xcode
To include the iOS framework in your iOS controller app project, choose Project > Add to Project and select the framework directory. Alternatively, you can drag and drop the AmazonFling.framework from the Finder to your app project.
When you add an existing framework to your project, Xcode asks you to associate it with one or more targets in your project. Once associated, Xcode automatically links the framework against the resulting executable.
You must also add the following system frameworks and libraries to the "Link Binaries" phase of the target in order to build a controller app:
In your project's settings, add the following to "Other Linker Flags": -lc++
Include the required header files in your code using the #include directive. If you are working in Objective-C, you may use the #import directive instead of the #include directive. The two directives have the same results, but the #import directive guarantees that the same header file is never included more than once.
#import <AmazonFling/DiscoveryController.h> #import <AmazonFling/MediaPlayerStatus.h> #import <AmazonFling/RemoteMediaPlayer.h> #import <Bolts/BFTask.h>
To develop an iOS controller app, see Integrating Amazon Fling into your iOS App.
Last updated: Jan 01, 2017