This sample demonstrates the DynamoDB object mapper found in the AWS SDK for iOS.
- Xcode 5 and later
- iOS 7 and later
-
The AWS Mobile SDK for iOS is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods:
sudo gem install cocoapods
-
To install the AWS Mobile SDK for iOS, simply add the following line to your Podfile:
pod "AWSiOSSDKv2"
Then run the following command:
pod install
-
In the Amazon Cognito console, use Amazon Cognito to create a new identity pool. Obtain the
AccountID
,PoolID
, andRoleUnauth
constants. Make sure the role has full permissions for the sample table. -
Open
DynamoDBSample.xcodeproj
. -
Open
Constants.m
and update the following lines with the constants from step 1:NSString *const AWSAccountID = @"Your-AccountID"; NSString *const CognitoPoolID = @"Your-PoolID"; NSString *const CognitoRoleUnauth = @"Your-RoleUnauth";
-
Build and run the sample app.