简体   繁体   English

使用cocoapods的PayPal-iOS-SDK在桥接标头中引发错误

[英]PayPal-iOS-SDK using cocoapods throws error in bridging header

I am trying to integrate Paypal sdk in a swift project using cocoapods . 我正在尝试将Paypal sdk集成到一个使用cocoapods快速项目中。 I tried to import PayPal_iOS_SDK module but it throws the following error 我试图import PayPal_iOS_SDK模块,但它会引发以下错误

No such module 'PayPal_iOS_SDK' 没有这样的模块'PayPal_iOS_SDK'

With #import <PayPal-iOS-SDK/PayPalMobile.h> in bridging header compiler is unable to find headers. 在桥接头编译器中使用#import <PayPal-iOS-SDK/PayPalMobile.h>无法找到头文件。

Is there anything wrong I am doing in bridging header? 我在桥接标题方面有什么不对吗?

I fixed it by setting Pods/PayPal-iOS-SDK/** in User Header Search Paths . 我通过在用户标题搜索路径中设置Pods/PayPal-iOS-SDK/**来修复它。 Later I was able to #import "PayPalMobile.h" in the bridging headers. 后来我能够在桥接头中#import "PayPalMobile.h"

I fixed adding the header file path in "project"-"build setting"-"swift_objc_bridging_header" . 我修复了在“项目”中添加头文件路径 - “构建设置” - “swift_objc_bridging_header”。 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM