Why I am getting an error "Braintree-API.h" file not found

1k views Asked by At

Hello friends I am working on an application where i want to integrate Braintree for payment. I followed git hub manual. It say's that you will find an error "Braintree-API.h" and you can fix by make it public. But there is no any option to make it public. How to do it. Please help. I am facing this issue from 5 hours. following link: https://github.com/exchangegroup/braintree-framework-builder

This is Braintree.h

This is Braintree-API.h

And this is error

enter image description here

1

There are 1 answers

0
Brent On

I work on Braintree iOS.

In the Braintree iOS manual installation docs, pay special attention to steps 6 and 7, namely:

  • Append /Braintree to Public Headers Folder Path (e.g. $(CONTENTS_FOLDER_PATH)/Headers/Braintree) in the Braintree target build settings.

  • Ensure you have set the Always Search User Paths option to Yes in your app target's build settings. This setting tells the compiler to search the project directory for headers as well as (and before) system directories.

Also, since Xcode build configurations can be frustrating to debug, if these suggestions don't immediately resolve the issues, I highly recommend you follow the Braintree iOS manual installation docs with a fresh project, and then compare settings.

Also note that we highly recommend using the Braintree pod via CocoaPods over the manual process.