capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

npx cap sync fails - AMSupportURLConnectionDelegate implemented twice #152

Closed travisBradfield closed 2 years ago

travisBradfield commented 2 years ago

Describe the bug I'm able to run: npm install @capacitor-community/stripe

When I run the: npx cap sync it fails on the pod install wit the following error:

Analyzing dependencies
objc[19147]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x213126b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1086d82c8). One of the two will be used. Which one is undefined.

To Reproduce Steps to reproduce the behavior:

  1. npm install @capacitor-community/stripe
  2. npx cap sync
  3. Error.

Expected behavior I expect the pod install and cap sync to be successful.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

travisBradfield commented 2 years ago

Is the M1 situation a contributor to this problem?

rdlabo commented 2 years ago

Does this article help you? : https://stackoverflow.com/questions/65089767/class-amsupporturlconnectiondelegate-is-implemented-in-both

My machine is M1, but this error doesn't happen.

travisBradfield commented 2 years ago

Thanks for your response!

Do you know what my target iOS version should be? At this point that article isn't helping me yet..

travisBradfield commented 2 years ago

So after some trying what seemed to work for me was running:

sudo gem install cocoapods -n /usr/local/bin

rdlabo commented 2 years ago

@travisBradfield I'm glad you got it sorted out!

Did you use this plugin for production? If yes, please tell us what app. This help development this plugin.

👉 https://github.com/capacitor-community/stripe/issues/145

Thanks.

travisBradfield commented 2 years ago

Thanks for your help! Not in production yet, but it will be going out in the next few weeks.

rdlabo commented 2 years ago

Thanks. I can't wait to hear of your release!

rdlabo commented 2 years ago

Has this problem been resolved? No action taken, so this Issue is closed. If you continue to have problems, please create a new Issue.