简体   繁体   English

在swift项目中安装AWS ios SDK

[英]installing AWS ios sdk in swift project

I'm trying to add the AWS SDK to my xcode project that is written in swift. 我试图将AWS开发工具包添加到以Swift编写的xcode项目中。

I followed these steps: http://mobile.awsblog.com/post/Tx2AA7ZHB1FK0G1/Version-2-of-the-AWS-SDK-for-iOS-Developer-Preview to create a Bridge-Header file, and add the SDK itself to my project. 我按照以下步骤操作: http : //mobile.awsblog.com/post/Tx2AA7ZHB1FK0G1/Version-2-of-the-AWS-SDK-for-iOS-Developer-Preview创建桥头文件,并添加SDK本身对我的项目。

The problem is that when I try to build the app I get an error now... the Bridge Header cannot be imported because one of the files in the AWS SDK (AWSModel.h) has an error. 问题是,当我尝试构建应用程序时,现在出现错误...无法导入网桥头,因为AWS开发工具包(AWSModel.h)中的文件之一出错。 This file tries to import Mantle/Mantle.h, and the error reads "Mantle/Mantle.h file not found" 此文件尝试导入Mantle / Mantle.h,错误显示为“找不到Mantle / Mantle.h文件”

do I need to add this file to my project as well? 我还需要将此文件添加到我的项目中吗? If so, how would I go about doing that? 如果是这样,我将如何去做? The only frameworks I'm using are Facebook SDK, and I would like to add AWS as well. 我使用的唯一框架是Facebook SDK,我也想添加AWS。

There is a working sample app on GitHub . GitHub上有一个工作示例应用程序。 You should follow README and see if you can compile the app. 您应该遵循自述文件,看看是否可以编译该应用程序。 It should help you understand how to set up the project. 它应该可以帮助您了解如何设置项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM