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

Can't build iOS app with razorpay_flutter 1.2.1 and XCode 11.5 #92

Closed
thetpaingsoe opened this issue Jul 11, 2020 · 19 comments
Closed

Can't build iOS app with razorpay_flutter 1.2.1 and XCode 11.5 #92

thetpaingsoe opened this issue Jul 11, 2020 · 19 comments

Comments

@thetpaingsoe
Copy link

Description

When i try to run project with razorpay_flutter 1.2.1, This error come out.
Can't run the app and can't build the ios app.

This is error log.

Xcode build done. 35.8s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

Command CompileSwift failed with a nonzero exit code
/Users/username/Library/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.1/ios/Classes/RazorpayDelegate.swift:4:42: error: 'RazorpayPaymentCompletionProtocolWithData' is unavailable:
cannot find Swift declaration for this protocol
public class RazorpayDelegate: NSObject, RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Razorpay.RazorpayPaymentCompletionProtocolWithData:2:17: note: 'RazorpayPaymentCompletionProtocolWithData' has been explicitly marked unavailable here
public protocol RazorpayPaymentCompletionProtocolWithData {
^
/Users/username/Library/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.1/ios/Classes/RazorpayDelegate.swift:4:85: error: 'ExternalWalletSelectionProtocol' is unavailable: cannot
find Swift declaration for this protocol
public class RazorpayDelegate: NSObject, RazorpayPaymentCompletionProtocolWithData, ExternalWalletSelectionProtocol {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Razorpay.ExternalWalletSelectionProtocol:2:17: note: 'ExternalWalletSelectionProtocol' has been explicitly marked unavailable here
public protocol ExternalWalletSelectionProtocol {
^
/Users/username/Library/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.1/ios/Classes/RazorpayDelegate.swift:57:24: error: use of unresolved identifier 'RazorpayCheckout'
let razorpay = RazorpayCheckout.initWithKey(key ?? "", andDelegateWithData: self)
^~~~~~~~~~~~~~~~
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Flutter Version :

Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (10 days ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

Xcode Version :

Version 11.5 (11E608c)

Cocoapod Version :

cocoapods/1.9.3

  • razorpay-pod (1.1.5)
  • razorpay_flutter (1.1.4)

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. XCode Version 11.5 and Flutter Version 1.17.5
  2. Flutter Razor Pay Lib Version 1.2.1
  3. Just Run or Build iOS ( flutter build ios)
  4. Then error come out.
@oianmol
Copy link

oianmol commented Jul 11, 2020

Same issue with me! Please fix this !

@Abhi9454
Copy link

Same issue here. Please resolve it ASAP

@oianmol
Copy link

oianmol commented Jul 12, 2020

@Nautiyalsachin 👆 Please update any workaround atleast ?

@srivastavarnav
Copy link

srivastavarnav commented Jul 13, 2020

Hi I am also facing the same issue and haven't been able to come across any workaround for this.
Please update on this as this is really urgent and needs to be addressed soon

@baltejsingh88
Copy link

+1 same issue

@oianmol
Copy link

oianmol commented Jul 14, 2020

[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F2200, locale en-IN)
• Flutter version 1.17.5 at /Users/anmol/flutter
• Framework revision 8af6b2f038 (2 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4

@nimi0112
Copy link

Same here. Facing build issues

@nimi0112
Copy link

@Nautiyalsachin @sumedht @ChintanAcharya please acknowledge this issue

@nimi0112
Copy link

I have tried to reach out to them on Twitter. Let's see I get a response there.

https://twitter.com/nimish_nandwana/status/1283284941652934657

@nimi0112
Copy link

I have raised an support ticket and got this reply:

Hello Nimish,

Greetings from Razorpay!

Thank you for all the necessary information. We are getting this checked with our development team, we will identify this and >update you further ASAP.
We do appreciate the patience and support from your end on this.

The ticket reference for your request is #75616.

Here to Help :)
Regards,
Soubhagya J

@baltejsingh88
Copy link

@nomis-rzp Hope so we will have an answer from the support soon!

@oianmol
Copy link

oianmol commented Jul 16, 2020

I found a solution, here's the razorpay pod folder that works for me from my other system,
Link to Google Drive too.
https://drive.google.com/file/d/1emzrBAYUec3xTcih3bSjwvehKwsufMZ2/view?usp=sharing

razorpay-pod.zip

@thangvq95
Copy link

thangvq95 commented Jul 17, 2020

thanks @Anmol92verma , i found another solution as well. This issue have already solved in master branch razorpay-pod: https://github.com/razorpay/razorpay-pod.git
Latest commit is: 4159c5044489dd26687f688ddea44e80fb530e52

To solve the issue, in Podfile, under target 'Runner' add

  1. pod 'razorpay-pod', :git => 'https://github.com/razorpay/razorpay-pod.git', :commit => '4159c5044489dd26687f688ddea44e80fb530e52'
  2. update SWIFT_VERSION to 5.2
  3. flutter clean and remove razorpay-pod in ios/Pods
  4. pod install and run

@thetpaingsoe
Copy link
Author

@thangvq95 Yes, It worked!

@nimi0112
Copy link

@thetpaingsoe it was resolved but I don't think you should close this issue, let the team itself fix and close this. It could help many others also.

@thetpaingsoe thetpaingsoe reopened this Jul 19, 2020
@CrashOverride90
Copy link

thanks @Anmol92verma , i found another solution as well. This issue have already solved in master branch razorpay-pod: https://github.com/razorpay/razorpay-pod.git
Latest commit is: 4159c5044489dd26687f688ddea44e80fb530e52

To solve the issue, in Podfile, under target 'Runner' add

  1. pod 'razorpay-pod', :git => 'https://github.com/razorpay/razorpay-pod.git', :commit => '4159c5044489dd26687f688ddea44e80fb530e52'
  2. update SWIFT_VERSION to 5.2
  3. flutter clean and remove razorpay-pod in ios/Pods
  4. pod install and run

This worked! Thanks

@don-k-jacob
Copy link

my

Thanks @Anmol92verma It worked for me

@Nautiyalsachin
Copy link
Contributor

Hey @thetpaingsoe, we have released a new version with the fix, please update your flutter plugin and run pod update, this will fix this issue. Closing this issue now.

@leorachit
Copy link

Still facing this issue.

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