-
Notifications
You must be signed in to change notification settings - Fork 245
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
Build failure on macOS 11.3 and Xcode 12.5 #284
Comments
Confirm, having the same issue. |
same issue after updating to Xcode 12.5 |
Same here, must be related with Apple Clang Update: https://developer.apple.com/documentation/xcode-release-notes/xcode-12_5-release-notes, it says: Clang now infers the availability of +new from availability annotations on -init methods. Since +new calls [[Foo alloc] init], +new isn’t available unless +init is available. (75884815) |
Same :( |
Downgrading to XCODE 12.4 solved the issue |
You can build by forcing the Stripe dependency to be fetched from Stripe GitHub by adding following to the end of your Podspec file in the ios directory inside your flutter project:
It's not ideal but looks like that v19.4.1 is not even yet available from Cocoapods directly. Also I'm not sure if it's required for your project, but I had to enable Non-modular includes within my flutter project build settings. (as mentioned in https://stackoverflow.com/questions/27776497/include-of-non-modular-header-inside-framework-module) |
pod 'Stripe', :git => 'https://github.com/stripe/stripe-ios.git', :tag => 'v19.4.1' Doesn't seem to work... @mathatan can you please provide more detailed steps? Thanks in advance |
Same problem to me. |
Have you tried to run |
tried pod update... but getting same issue on both simulator and physical iPhone. |
Depending a bit on which errors you get it might benefit to run
I'm not using the main branch for this package and I have some additional things in my Podspec, so I'm not fully certain if that could have effects on me being able to make the build. You can try to paste the error from your build, although I cannot promise I'll be able to help. Still though since the non modular import of 3DS breaks simulators I'm downgrading to Xcode 12.4 anyhow. Hopefully this will be resolved soon enough with an actual cocoapods repository version of the 19.4.1 SDK. |
@mathatan I'm going to downgrade XCODE to 12.04 |
I was able to get the app running with only the pod specified. No need (for now) to downgrade Xcode
|
My recommendation:
|
Same problem to me. Should i wait or downgrade to 12.4? |
as there won't be an official release of 19.4.1 it's unlikely this will be fixed soon, so I recommend downgrading to 12.4 PSA: we're working on a brand new plugin that uses the latest dependencies. flutter_stripe_payment will only receive maintenance updates going forward. |
@jonasbark what will be the name of the plugin? |
I was finally able to make it work with plugin version 1.0.11 and Xcode 12.5 Podfile
In the plugin v1.0.11 -> ios/TPSStripeManager.h change:
Hope that this helps someone, it took me 2 days to get here :) ( No experience in Swift or Object C ) |
Thanks for providing that information @ag84ark ! For anyone else: we published the first beta version of the new plugin here: When I find the time I'll provide some migration instructions for this plugin. |
@jonasbark This is a good new! |
do you have a timeline for google pay in the migration? |
Do we use |
hey used stripe_payment_flutter in the interim and got it all working last week |
|
I get you but your going to have to make a dicision like I had to, also moving to null safetly is going to end up the same issues I'm seeing |
I tried this and it solved my issue. |
Would you mind giving more info on this. I can't seem to get that to work. |
same issue :( anyone was able to solve? |
Xcode's output:
↳
.../ios/Pods/Stripe/Stripe/STPPinManagementService.m:51:81: error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from .../ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
.../ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init attribute((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
.../ios/Pods/Stripe/Stripe/STPPinManagementService.m:101:81: error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
deserializer:[STPIssuingCardPin new]
^
In file included from .../ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
.../ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:1: note: 'init' has been explicitly marked unavailable here
- (instancetype)init attribute((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
^
2 errors generated.
Using latest stripe_payment: ^1.0.11
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.3 20E232 darwin-x64, locale en-SK)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
[✓] Connected device (3 available)
The text was updated successfully, but these errors were encountered: