简体   繁体   中英

Xcode: AWS SDK which I added with CocoaPods doesn't work?

I am trying to start work with AWS SDK on iOS. I did all that they said here AWS SDK GitHub with CocoaPod. My pod file looks like this:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"
use_frameworks!

pod 'AWSCore', '~> 2.2'
pod 'AWSSNS', '~> 2.2'

end

But then I try to import something from AWS:

#import <AWSiOSSDKv2/AWSCore.h> 

I have an error in Xcode: 'AWSiOSSDKv2/AWSCore.h' file not found What I did wrong?

以我的经验,您应该基于Pod名称导入标头,如下所示:

#import <AWSCore/AWSCore.h>

我也成功import AWSCore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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