PaystackHQ / paystack-ios

Paystack SDK for iOS. Accept Payments on iOS
http://paystack.com
MIT License
26 stars 26 forks source link

'new' is unavailable: You cannot directly instantiate an PSTCKTransaction... #50

Closed enkkashley closed 3 years ago

enkkashley commented 3 years ago

Problem

I get this error during build time in Xcode 12.5 in the "PSTCKAPIClient.m" file: "'new' is unavailable: You cannot directly instantiate an PSTCKTransaction. You should only use one that has been returned from an PSTCKAPIClient callback."

Steps to reproduce

  1. Create a new project with Xcode 12.5
  2. Install the Paystack SDK(v 3.0.15) using CocoaPods
  3. Build the project.

Expected Results

Successful build.

Actual Results:

"'new' is unavailable: You cannot directly instantiate an PSTCKTransaction. You should only use one that has been returned from an PSTCKAPIClient callback."

Screenshot 2021-05-01 at 16 42 02

ghost commented 3 years ago

how to install sdk cocoa pods with 3.0.15 I am getting error. Added like this pod 'Paystack','~> 3.0.15'

ghost commented 3 years ago

how to install sdk cocoa pods with 3.0.15 I am getting error. Added like this pod 'Paystack','~> 3.0.15'

changed pod deployment target but getting same error.

ravi-paystack commented 3 years ago

@enkkashley thanks for pointing this out. We are looking into this.

ravi-paystack commented 3 years ago

@KarthiRasuIOS thank you. Can you post this as a separate issue with details on the error you are getting?

enkkashley commented 3 years ago

@enkkashley thanks for pointing this out. We are looking into this.

@ravi-paystack you're welcome. alright.