The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS. This guide walks through the steps for setting up the SDK and running one of the samples.
The AWS SDK for iOS includes:
To get set up, you must sign up for Amazon Web Services, get your AWS credentials, and set up your environment.
Before you can begin, you must sign up for each AWS product you want to use. The sample we'll cover in this guide uses both Amazon S3 and Amazon SimpleDB, so you'll need to sign up for both products.
To sign up for a productAWS sends you a confirmation email after the sign-up process is complete. You can view your current account activity or manage your account at any time, by going to aws.amazon.com and clicking the Account tab.
In order to use the AWS SDK for iOS, you need your AWS Access Key ID and Secret Access Key.
To get your AWS Access Key ID and Secret Access KeyImportant! Your Secret Access Key is a secret, which only you and AWS should know. It is important to keep it confidential to protect your account. Store it securely in a safe place. Never include it in your requests to AWS, and never email it to anyone. Do not share it outside your organization, even if an inquiry appears to come from AWS or Amazon.com. No one who legitimately represents Amazon will ever ask you for your Secret Access Key.
Downlod the SDK from http://aws.amazon.com/sdkforios.
Minimum requirements for using the AWS SDK for iOS are:
After unzipping the AWS SDK for iOS package, you'll find the following contents:
The /samples
directory in the SDK contains a browser application that demonstrates how to make requests to AWS using the SDK.
AWSiOSSDK/samples/awsBrowser/AWSiosDEMO.xcodeproj
project file in Xcode. UIKit.framework
, Foundation.framework
, and CoreGraphics.framework
. AWSiOSSDK.Framework
which was unpacked as part of the AWS SDK for iOS .zip file.Constants.h
file. ACCESS_KEY
and SECRET_KEY
definitions with your AWS Credentials. For more information about the AWS SDK for iOS, including a complete list of supported AWS products, go to aws.amazon.com/sdkforios.
The SDK reference documentation includes the ability to browse and search across all code included with the SDK. It provides thorough documentation, usage examples, and even the ability to browse method source. You can find it at http://docs.amazonwebservices.com/AWSSDKforiOS/latest.
The AWS SDK for iOS includes DocSet documentation, which can be used to view the documentation from within Xcode. To install the DocSet:
/Users/$USER/Library/Developer/Shared/Documentaion/DocSets
.Documentation/com.amazon.aws.ios.docset
from the SDK into the directory you created above. For more information on iOS development, see the Apple Developer Connection web site at: http://developer.apple.com/devcenter/ios/index.action.