Abdullah Shafique Abdullah Shafique - 1 month ago 7
iOS Question

Stripe.h file not found

I am trying to use the Stripe SDK in my iOS App but there seems to be a problem. Whenever I try to import it like this:

#import "Stripe.h"


I get the following error:

Stripe.h file not found


But I have the file right here:

enter image description here

Thanks in advance,
Abdullah Shafique

Answer

The folders are blue in Xcode, indicating that the folders themselves have been added as resources, rather than the source files within them. You should remove the stripe-ios folder from your project, and re-add it, ensuring that you choose the option to "Make groups for any added folders"; this will ensure each source file is added to your project, rather than the folder being added to your resources.