#AWS Mobile SDK for iOS
##Setting Up
To get started with the AWS SDK for iOS, you can set up the SDK and start building a new project, or you integrate the SDK in an existing project. You can also run the samples to get a sense of how the SDK works.
To use the AWS SDK for iOS, you will need the following installed on your development machine:
* Xcode 7 or later
* iOS 8 or later
At the AWS GitHub repo, you can check out the [SDK source code](https://github.com/aws/aws-sdk-ios).
For more information, see [AWS Mobile SDK for iOS Developer Guide](http://docs.aws.amazon.com/mobile/sdkforios/developerguide/).
##Include the SDK for iOS in an Existing Application
The [samples](https://github.com/awslabs/aws-sdk-ios-samples) included with the SDK for iOS are standalone projects that are already set up for you. You can also integrate the SDK for iOS with your own existing project. There are three ways to import the AWS Mobile SDK for iOS into your project:
* [CocoaPods](https://cocoapods.org/)
* [Carthage](https://github.com/Carthage/Carthage)
* [Dynamic Frameworks](https://aws.amazon.com/mobile/sdk/)
You should use one of these three ways to import the AWS Mobile SDK but not multiple. Importing the SDK in multiple ways loads duplicate copies of the SDK into the project and causes compiler errors.
###CocoaPods
1. The AWS Mobile SDK for iOS is available through [CocoaPods](http://cocoapods.org). If you have not installed CocoaPods, install CocoaPods by running the command:
$ gem install cocoapods
$ pod setup
Depending on your system settings, you may have to use `sudo` for installing `cocoapods` as follows:
$ sudo gem install cocoapods
$ pod setup
1. In your project directory (the directory where your `*.xcodeproj` file is), create a plain text file named `Podfile` (without any file extension) and add the lines below. Replace `YourTarget` with your actual target name.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target :'YourTarget' do
pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSCognito'
pod 'AWSCognitoIdentityProvider'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSIoT'
pod 'AWSKinesis'
pod 'AWSLambda'
pod 'AWSMachineLearning'
pod 'AWSMobileAnalytics'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
end

1. Then run the following command:
$ pod install
1. Open up `*.xcworkspace` with Xcode and start using the SDK.

**Note**: Do **NOT** use `*.xcodeproj`. If you open up a project file instead of a workspace, you receive an error:
ld: library not found for -lPods-AWSCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
###Carthage
1. Install the latest version of [Carthage](https://github.com/Carthage/Carthage#installing-carthage).
1. Add the following to your `Cartfile`:
github "aws/aws-sdk-ios"
1. Then run the following command:
$ carthage update
1. With your project open in Xcode, select your **Target**. Under **General** tab, find **Embedded Binaries** and then click the **+** button.
1. Click the **Add Other...** button, navigate to the `AWS<#ServiceName#>.framework` files under `Carthage` > `Build` > `iOS` and select them. Do not check the **Destination: Copy items if needed** checkbox when prompted.
* `AWSCore.framework`
* `AWSAutoScaling.framework`
* `AWSCloudWatch.framework`
* `AWSCognito.framework`
* `AWSCognitoIdentityProvider.framework`
* `AWSDynamoDB.framework`
* `AWSEC2.framework`
* `AWSElasticLoadBalancing.framework`
* `AWSIoT.framework`
* `AWSKinesis.framework`
* `AWSLambda.framework`
* `AWSMachineLearning.framework`
* `AWSMobileAnalytics.framework`
* `AWSS3.framework`
* `AWSSES.framework`
* `AWSSimpleDB.framework`
* `AWSSNS.framework`
* `AWSSQS.framework`
1. Under the **Build Phases** tab in your **Target**, click the **+** button on the top left and then select **New Run Script Phase**. Then setup the build phase as follows. Make sure this phase is below the `Embed Frameworks` phase.
Shell /bin/sh
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/AWSCore.framework/strip-frameworks.sh"
Show environment variables in build log: Checked
Run script only when installing: Not checked
Input Files: Empty
Output Files: Empty
###Frameworks
1. Download the SDK from our [AWS Mobile SDK](http://aws.amazon.com/mobile/sdk) page. The SDK is stored in a compressed file archive named `aws-ios-sdk-#.#.#` (where `#.#.#` represents the version number, so for version 2.4.0, the filename is `aws-ios-sdk-2.4.0`).
1. With your project open in Xcode, select your **Target**. Under **General** tab, find **Embedded Binaries** and then click the **+** button.
1. Click the **Add Other...** button, navigate to the `AWS<#ServiceName#>.framework` files and select them. Check the **Destination: Copy items if needed** checkbox when prompted.
* `AWSCore.framework`
* `AWSAutoScaling.framework`
* `AWSCloudWatch.framework`
* `AWSCognito.framework`
* `AWSCognitoIdentityProvider.framework`
* `AWSDynamoDB.framework`
* `AWSEC2.framework`
* `AWSElasticLoadBalancing.framework`
* `AWSIoT.framework`
* `AWSKinesis.framework`
* `AWSLambda.framework`
* `AWSMachineLearning.framework`
* `AWSMobileAnalytics.framework`
* `AWSS3.framework`
* `AWSSES.framework`
* `AWSSimpleDB.framework`
* `AWSSNS.framework`
* `AWSSQS.framework`
1. Under the **Buid Phases** tab in your **Target**, click the **+** button on the top left and then select **New Run Script Phase**. Then setup the build phase as follows. Make sure this phase is below the `Embed Frameworks` phase.
Shell /bin/sh
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/AWSCore.framework/strip-frameworks.sh"
Show environment variables in build log: Checked
Run script only when installing: Not checked
Input Files: Empty
Output Files: Empty
##Update the SDK to a Newer Version
When we release a new version of the SDK, you can pick up the changes as described below.
###CocoaPods
1. Run the following command in your project directory. CocoaPods automatically picks up the new changes.
$ pod update
**Note**: If your pod is having an issue, you can delete `Podfile.lock` and `Pods/` then run `pod install` to cleanly install the SDK.

###Carthage
1. Run the following command in your project directory. Carthage automatically picks up the new changes.
$ carthage update
###Frameworks
1. In Xcode select the following frameworks in **Project Navigator** and hit **delete** on your keyboard. Then select **Move to Trash**:
* `AWSCore.framework`
* `AWSAutoScaling.framework`
* `AWSCloudWatch.framework`
* `AWSCognito.framework`
* `AWSCognitoIdentityProvider.framework`
* `AWSDynamoDB.framework`
* `AWSEC2.framework`
* `AWSElasticLoadBalancing.framework`
* `AWSIoT.framework`
* `AWSKinesis.framework`
* `AWSLambda.framework`
* `AWSMachineLearning.framework`
* `AWSMobileAnalytics.framework`
* `AWSS3.framework`
* `AWSSES.framework`
* `AWSSimpleDB.framework`
* `AWSSNS.framework`
* `AWSSQS.framework`
1. Follow the installation process above to include the new version of the SDK.
##Preparing your apps for iOS 9
The release of i
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论


























收起资源包目录





































































































共 2003 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论


奔强的程序
- 粉丝: 1068
- 资源: 3046
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 《ACM-ICPC 的参考资料》(毕业设计,源码,教程)简单部署即可运行 功能完善、操作简单,适合毕设或课程设计.zip
- CO2驱替甲烷的深度探讨与研究基于Comsol数值模拟分析,基于COMSOL软件的二氧化碳驱替甲烷技术研究,comsol 二氧化碳驱替甲烷 ,COMSOL模拟; 二氧化碳驱替; 甲烷浓度变化; 数值模
- 基于stm32和proteus的家居环境采集仿真设计,采集家居环境的信温湿度、光照值以及气体检测(源码+报告+演示视频)
- 《2021 数模美赛O奖论文及代码公开》(毕业设计,源码,教程)简单部署即可运行 功能完善、操作简单,适合毕设或课程设计.zip
- dvanced archive password recovery pro v4.54
- 《2024蓝桥杯嵌入式学习资料》(毕业设计,源码,教程)简单部署即可运行 功能完善、操作简单,适合毕设或课程设计.zip
- JavaEE框架及关键技术的设计与实现指南:面向企业级应用
- MATLAB Simulink仿真研究:永磁同步电机FOC矢量控制与DTC矢量控制的动静态性能对比分析,MATLAB Simulink仿真研究:永磁同步电机FOC矢量控制与DTC矢量控制的动静态性能对
- 液压.zip
- 一体空间站 1.zip
- STM32学习标准库实现STM32 ADC采集1路、2路、多路
- STEP7-MicroWIN-SMART-V2.8库包括模拟量比例换算指令库
- 银河系加昼夜地球.zip
- 银河系扩展包2.81.3—1.5移植版(1.4移植1.5).zip
- 银河系扩展包2.6by航天星辰.zip
- 宇航员.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
