Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon SDK Pod won't compile?

I'm attempting to getting the Amazon iOS SDK integrated into my application and using the cocoapod to install it.

However, it won't compile, I'm getting an error inside of AmazonS3Client.h that says

'AWKRuntime/AmazonWebServiceClient.h' file not found

but it is clearly there in the Pod when I search for it.

Anyone else had this issue?

like image 806
user2807952 Avatar asked Dec 25 '22 19:12

user2807952


1 Answers

Note: This answer refers to a now deprecated version of the AWS SDK for iOS.


I ran into the same problem when migrating a project to CocoaPods. Without modifying any of the AWS header files, I was able to avoid by changing my header import lines from:

#import <AWSS3/AWSS3.h>
#import <AWSSNS/AWSSNS.h>

to:

#import <AmazonS3Client.h>
#import <AmazonSNSClient.h>

This works because all that AWSS3.h does is #define AWS_MULTI_FRAMEWORK and then #import "AmazonSNSClient.h", and AWS_MULTI_FRAMEWORK is responsible for the other header files expecting a different directory structure than what CocoaPods sets up.

To find out what file names you need to include, just look inside the AWS*.h file you were importing and then import the files named inside directly.

like image 50
benzado Avatar answered Jan 12 '23 11:01

benzado