First, clone the https://github.com/opentok/learning-opentok-ios repository:
git clone firstname.lastname@example.org:opentok/learning-opentok-ios.git cd learning-opentok-ios
Switch to the basics branch using the
git checkout basics command.
The code in this branch shows you how to:
Before you can test the application, you need to make some settings in Xcode and set up a web service to handle some OpenTok-related API calls.
This project uses CocoaPods to load the OpenTok SDK:
Install CocoaPods as described in CocoaPods Getting Started.
cd to your project directory and enter the following:
Open the LearningOpenTok.xcworkspace file in XCode.
You will notice the project is missing a header file -- Config.h. To fix this, copy the SampleConfig.h file to a Config.h file.
Copy the contents of the SampleConfig.h file to the clipboard. Then select File > New > File (Command-N). In the dialog that is displayed, select Header File, click Next, and save the file as Config.h.
We will set values for the constants defined in this file in a later step.