问题
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