使用cocoapods的PayPal-iOS-SDK在桥接标头中引发错误 [英] PayPal-iOS-SDK using cocoapods throws error in bridging header

查看:76
本文介绍了使用cocoapods的PayPal-iOS-SDK在桥接标头中引发错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 cocoapods Paypal sdk集成到 swift 项目中.我尝试import PayPal_iOS_SDK模块,但是会引发以下错误

I am trying to integrate Paypal sdk in a swift project using cocoapods. I tried to import PayPal_iOS_SDK module but it throws the following error

没有这样的模块'PayPal_iOS_SDK'

No such module 'PayPal_iOS_SDK'

使用#import <PayPal-iOS-SDK/PayPalMobile.h>桥接头文件时,编译器无法找到头文件.

With #import <PayPal-iOS-SDK/PayPalMobile.h> in bridging header compiler is unable to find headers.

在桥接头文件中我做错什么了吗?

Is there anything wrong I am doing in bridging header?

推荐答案

我通过在用户标题搜索路径中设置Pods/PayPal-iOS-SDK/**来解决此问题.后来我能够#import "PayPalMobile.h"在桥接头文件中.

I fixed it by setting Pods/PayPal-iOS-SDK/** in User Header Search Paths. Later I was able to #import "PayPalMobile.h" in the bridging headers.

这篇关于使用cocoapods的PayPal-iOS-SDK在桥接标头中引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆