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
1 Answers
I work on Braintree iOS.
In the Braintree iOS manual installation docs, pay special attention to steps 6 and 7, namely:
Append
/Braintree
toPublic Headers Folder Path
(e.g.$(CONTENTS_FOLDER_PATH)/Headers/Braintree
) in theBraintree
target build settings.Ensure you have set the
Always Search User Paths
option toYes
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.
-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). – DroppyBraintree.h
file is expecting to find the other header files under the sub-directoryBraintree
, so you need to set your Header Search Path to include the parent of thatBraintree
sub-directory in order for that to work. – Droppy