为什么在 Braintree 手动集成时出现 'Braintree/BTUICTAControl.h' file not found 错误?

Why am I getting 'Braintree/BTUICTAControl.h' file not found error on Braintree manual integration?

在执行 Manual Integration Without CocoaPods 指南中的第四步 "Add the Braintree SDK code to project" 后,我收到以下构建错误。

braintree_ios/Braintree/UI/Braintree-Payments-UI.h:3:9: 'Braintree/BTUICTAControl.h' file not found

测试于

如何修复此构建错误?

您是否尝试过手动下载 zip 文件而不是使用 git? 尝试按照第一步中的第二个要点进行操作。

我在 Braintree iOS SDK 上工作。

我相信使用名称 Braintree 而不是 Braintree SDK 作为框架目标名称将解决这个特定问题。我最近updated the manual docs相应地。

我们建议您尽可能使用 CocoaPods 进行集成,因为它会为您处理所有这些复杂问题。

另请注意,我已在 the issue you posted on GitHub 上回复。让我们在那里解决这个问题。谢谢!