user3742622
user3742622

Reputation: 1067

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?

Upvotes: 1

Views: 1242

Answers (2)

Nick
Nick

Reputation: 71

I also had success with just import AWSCore

Upvotes: 0

paulrehkugler
paulrehkugler

Reputation: 3271

In my experience, you should import headers based on the Pod name, like this:

#import <AWSCore/AWSCore.h>

Upvotes: 1

Related Questions