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

心不动则不痛 提交于 2019-12-11 04:09:32

问题


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?


回答1:


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.




回答2:


I fixed adding the header file path in "project"-"build setting"-"swift_objc_bridging_header" .



来源:https://stackoverflow.com/questions/31866314/paypal-ios-sdk-using-cocoapods-throws-error-in-bridging-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!