1
votes

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
Show the full compiler command line (or just all of the -I options passed to the compiler) and then show the file structure (i.e. how this library and its header files are stored within your project).Droppy
Droppy,Check my updated question.Muraree Pareek
As you can see the Braintree.h file is expecting to find the other header files under the sub-directory Braintree, so you need to set your Header Search Path to include the parent of that Braintree sub-directory in order for that to work.Droppy
thanks droppy, can u plz tell how to set Headet Search Path here.Muraree Pareek
It's in the Build Settings for the target.Droppy

1 Answers

2
votes

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.