调用 [Braintree braintreeWithClientToken 时出现以下错误。



我按照 Manual Integration Without CocoaPods 指南将 Braintree 添加到一个新的 Objective-C 项目中。

解决方案 - 构建 Braintree.framework
我已经成功构建了一个可以在 iOS 应用程序、Objective-C 或 Swift 中轻松使用的 Braintree.framework。

说明在那里:

https://github.com/exchangegroup/braintree-framework-builder

最佳答案

这是在您的演示中修复此错误的 PR:https://github.com/exchangegroup/brain-tree-manual-setup-error-four/pull/1

这是在较新的演示中修复此错误的 PR:https://github.com/exchangegroup/braintree-manul-setup-ten/pull/1

不幸的是,使用 #import<angled> 语句必须替换为 "quotes"。虽然不理想,但这是使用查找和替换正则表达式的简单操作:<Braintree/(.*)> -> "$1"
如果您正在进行新的集成,Braintree 推荐使用 using CocoaPods instead 。如果有什么原因 CocoaPods 不适用于您的用例,请告诉我们。

希望这可以帮助 :)

关于ios - "Use of undeclared identifier ' Braintree '"在不使用 CocoaPods 的情况下手动集成 Braintree 后出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29292695/

10-15 17:29