jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
307 stars 243 forks source link

Not build - building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 - Undefined symbols for architecture arm64 #346

Closed federico2390 closed 2 years ago

federico2390 commented 2 years ago

The plugin stripe_payment uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Launching lib/main.dart on iPhone 13 in debug mode... Xcode build done. 3,6s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ Writing result bundle at path: /var/folders/zs/td00h4cd4qd9cmr4zpqv438m0000gn/T/flutter_tools.vgXEuo/flutter_ios_build_temp_dirguNBJJ/temporary_xcresult_bundle ld: warning: ignoring file /Users/federicodesalvatore/Desktop/ilviale1992/build/ios/Debug-iphonesimulator/Stripe/Stripe.framework/Stripe, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64 Undefined symbols for architecture arm64: "_OBJCCLASS$_STPAPIClient", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPSetupIntentConfirmParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPAppInfo", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPPaymentIntentParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPPaymentMethodParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPTheme", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPPaymentMethodBillingDetails", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPPaymentMethodAddress", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPCardParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPAddCardViewController", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPAddress", referenced from: objc-class-ref in TPSStripeManager.o "_STPStringFromCardBrand", referenced from: -[StripeModule cardBrandAsPresentableBrandString:] in TPSStripeManager.o "_OBJCCLASS$_STPPaymentHandler", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPBankAccountParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPPaymentConfiguration", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_Stripe", referenced from: objc-class-ref in TPSStripeManager.o (maybe you meant: _OBJCCLASS$_StripePaymentPlugin, _OBJCCLASS$_StripeModule ) "_OBJCCLASS$_STPPaymentMethodCardParams", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPUserInformation", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPRedirectContext", referenced from: objc-class-ref in TPSStripeManager.o "_OBJCCLASS$_STPSourceParams", referenced from: objc-class-ref in TPSStripeManager.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order Result bundle written to path: /var/folders/zs/td00h4cd4qd9cmr4zpqv438m0000gn/T/flutter_tools.vgXEuo/flutter_ios_build_temp_dirguNBJJ/temporary_xcresult_bundle Error (Xcode): Undefined symbol: _OBJCCLASS$_STPAPIClient

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPSetupIntentConfirmParams

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPAppInfo Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentIntentParams

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentMethodParams

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPTheme

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentMethodBillingDetails Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentMethodAddress

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPCardParams

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPAddCardViewController

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPAddress Error (Xcode): Undefined symbol: _STPStringFromCardBrand

Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentHandler Error (Xcode): Undefined symbol: _OBJCCLASS$_STPBankAccountParams Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentConfiguration Error (Xcode): Undefined symbol: _OBJCCLASS$_Stripe Error (Xcode): Undefined symbol: _OBJCCLASS$_STPPaymentMethodCardParams Error (Xcode): Undefined symbol: _OBJCCLASS$_STPUserInformation Error (Xcode): Undefined symbol: _OBJCCLASS$_STPRedirectContext Error (Xcode): Undefined symbol: _OBJCCLASS$_STPSourceParams Could not build the application for the simulator. Error launching application on iPhone 13. Exited (sigterm)

sawankumarbundelkhandi commented 2 years ago

Try this for workaround - https://github.com/flutter/flutter/issues/90382#issuecomment-929711305

federico2390 commented 2 years ago

Try this for workaround - https://github.com/flutter/flutter/issues/90382#issuecomment-929711305

I have opted for use flutter_stripe