Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 12.5 upgrade error #58

Open
JeremiahUL opened this issue May 7, 2021 · 11 comments
Open

Xcode 12.5 upgrade error #58

JeremiahUL opened this issue May 7, 2021 · 11 comments

Comments

@JeremiahUL
Copy link

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

This error when I try to run a build after upgrading my xcode from 12.4 to 12.5

@JeremiahUL
Copy link
Author

JeremiahUL commented May 8, 2021

@tolu360 This has made a couple of apps stop building

@obyslink
Copy link

Facing same issue here.

@olayinkaokewale
Copy link

You can check out the paystack-ios repo for an update on this. PaystackHQ/paystack-ios#56

However, you can also bump up Paystack version inside of your Podfile.lock to 3.0.16 which was mentioned on the issue comment to have fixed it.

- Paystack (3.0.16):
    - Paystack/Core (= 3.0.16)

@jerryheir
Copy link

@olayinkaokewale This does not work for me sadly. Can you show me the codebase where you did this and it worked

@jerryheir
Copy link

Adding 3.0.16 throws another error

@jerryheir
Copy link

@tolu360 Can a new version be released on this issue

@sammysmart95
Copy link

@tolu360 has this issue been fixed.... I've been an this but no way out, Any suggestion please

After adding changing Paystack version inside of my Podfile.lock from 3.0.13 to 3.0.16 the next error is 'Paystack/Paystack-Swift.h' file not found

react native version 0.64.1
Xcode 12.5
Build version 12E262

Screenshot 2021-05-28 at 09 11 50

@olayinkaokewale
Copy link

@jerryheir I don't know why the new version of Paystack-iOS is failing but if you can revert back to version 3.0.13 and then do a few code changes which I would share below:

WhatsApp Image 2021-05-25 at 20 50 38
WhatsApp Image 2021-05-25 at 20 50 51
WhatsApp Image 2021-05-25 at 20 51 22

comment out line 18 in the last screenshot and write line 19.

NOTE: this is a temporary fix and it would probably be fixed when Paystack-iOS gets updated

@sammysmart95
Copy link

Thanks allot @olayinkaokewale..... this worked for me..

But how long will this temporary solution help before the next Paystack-iOS fix.....

@olayinkaokewale
Copy link

@sammysmart95 I have no idea when the Paystack-iOS team would push the right pod to cocoapods but fingers crossed.

However, if you have any reason to delete your Pods folder, you might have to follow the steps again as the code might have reverted. Other than that, I don't think you'd need to do this anymore than once.

@sammysmart95
Copy link

@olayinkaokewale thanks allot, you my saviour on this.... Cheers!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants