ios - ld : library not found for -lPayPalMobile ios

标签 ios paypal xcode6

我正在使用 xcode 6.1 进行 paypal 集成。

每次打开项目时都会出现以下错误。

ld: library not found for -lPayPalMobile

clang: error: linker command failed with exit code 1 (use -v to see invocation)

每次我必须删除库搜索路径值并删除 paypal 文件夹的引用,然后再次将其导入项目。

我不知道的问题是什么,请告诉我该怎么做?

已编辑

还有一点,如果项目名称是"This is test" 那么会有什么区别? 因为我可以在 library search paths 中看到第一行 "This" 出现在第二行只有 "is" 出现在最后(即第 3 行)“测试” 在那里。

谢谢。

最佳答案

按照以下步骤,

(1) 在您的项目包中添加静态库。

(2)在“link binary with libraries”中添加

您需要转到目标 -> 构建阶段 -> 将二进制文件与库链接。 如下图所示。 enter image description here

(3) 为您的链接库提供正确的标题搜索路径。 即($PROJECT_DIR)/你的路径。

您还可以阅读 GitHub link of PayPal, 中给出的步骤 这会给你正确的方向。

如果您在这方面需要更多帮助,请随时询问。

关于ios - ld : library not found for -lPayPalMobile ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27141216/

相关文章:

ios - 如何知道一个 View 是否触及 Ios 中的其他 View

payment-gateway - 哪个 PayPal 集成用于后台 && 前端电子商务解决方案

ruby-on-rails - 通过 ActiveMerchant 退款(Paypal 结帐 Express)

python - ImportError : No module named mechanize - XCode 6. 1 没有看到新安装的 python 库

ios - XCode 断点在当前行中不起作用。它停止威胁而不是当前行

ios - 按数字索引 UITableview 部分

iphone - APNS 只能通过命令行工作

ios - 点击 Swift 时全屏显示 tableviewcell 中的图像

php - 无法从 paypalplatform.php 获取 CallPay 和 CallPaymentDetails 一起工作

ios - Xcode Save for Development 部署选项缺失