morcmarc / react-native-cognito

AWS Cognito integration module for React Native
MIT License
63 stars 10 forks source link

AWSCore/AWSCore.h file not found #1

Closed colinramsay closed 8 years ago

colinramsay commented 8 years ago

After following the README instructions, I find myself with the following error message:

'AWSCore/AWSCore.h' file not found

I've installed the AWS iOS SDK as per its instructions (I've tried both via pods and the framework methods) and no joy. I'm sure this is something straightforward but I'm just not sure what...

morcmarc commented 8 years ago

Did you try adding the AWS iOS SDK path to your Header Search Path under Build Settings?

colinramsay commented 8 years ago

I just tried setting it to the location to which I downloaded the SDK and used the "recursive" option. Still no joy.

morcmarc commented 8 years ago

Could you try adding AWSCore.framework and AWSCognito.framework to your project, please? You can find them in your AWS SDK folder.

Edit: sorry, just noticed you've already tried that.

Adding your AWS SDK path to Framework Search Path in RCTCognito.xcodeproj seems to solve the problem. Let me know if that doesn't work.

colinramsay commented 8 years ago

Adding to Framework Search Path indeed solve this problem, but it then gave me another issue which I'm not sure is related to your project. I'll look into it and re-open this if need be, thanks for your help.