stripe / stripe-terminal-ios

Stripe Terminal iOS SDK
https://stripe.com/docs/terminal/sdk/ios
Other
104 stars 64 forks source link

Terminal connectReader error in version 2.0.0 #224

Closed Roniy08 closed 1 year ago

Roniy08 commented 1 year ago

DiscoveryDelegate inside this extension

Summary

error is below Value of type 'Terminal' has no member 'connectReader'

Code to reproduce

   Terminal.shared.connectedReader

iOS version

16.0 and later

Installation method

Pods

SDK version

pod 'StripeTerminal', '~> 2.0'

Other information

bric-stripe commented 1 year ago

hi, this looks like a build issue that I don't have enough information to help with. I'd recommend double checking the header is correctly imported and confirm in SCPTerminal.h you should see the connectedReader readonly property. Are you able to reproduce this using the Example project?

Roniy08 commented 1 year ago

SCPTerminal.h

what about the swift import file which file is needed to import

bric-stripe commented 1 year ago

when used with swift via import StripeTerminal it import's the umbrella StripeTerminal.h header which imports SCPTerminal.h.

Roniy08 commented 1 year ago

resolved by de-integrate pods and install pods again version is 2.0.0