简体   繁体   中英

PayPal-iOS-SDK using cocoapods throws error in bridging header

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

No such module 'PayPal_iOS_SDK'

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?

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.

I fixed adding the header file path in "project"-"build setting"-"swift_objc_bridging_header" . 在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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