为什么我收到错误“Braintree-API.h”文件未找到

时间:2015-06-17 06:29:04

标签: ios8.1 braintree

朋友们,我正在开发一个应用程序,我想整合Braintree付款。我按照git hub手册。它说你会发现一个错误“Braintree-API.h”,你可以通过公开来修复它。但没有任何选择可以公开。怎么做。请帮忙。我将在5个小时内面对这个问题。 以下链接: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 个答案:

答案 0 :(得分:2)

我在Braintree iOS上工作。

Braintree iOS manual installation docs中,要特别注意步骤6和7,即:

  • /Braintree目标构建设置中将Public Headers Folder Path附加到$(CONTENTS_FOLDER_PATH)/Headers/Braintree(例如Braintree)。

  • 确保您已在应用目标的构建设置中将Always Search User Paths选项设置为 Yes 。此设置告诉编译器在项目目录中搜索标题以及(和之前)系统目录。

此外,由于Xcode构建配置可能令人沮丧,因此如果这些建议无法立即解决问题,我强烈建议您使用新项目关注Braintree iOS manual installation docs,然后比较设置。

另请注意,我们高度建议通过CocoaPods使用Braintree pod而非手动流程。