flutter_stripe_payment icon indicating copy to clipboard operation
flutter_stripe_payment copied to clipboard

Build failed on IOS - building for iOS-armv7 but attempting to link with file built for iOS-arm64

Open Abosrie opened this issue 5 years ago • 4 comments

/Users/ahmedabosrie/development/albyrakappx/build/ios/Release-iphoneos/Stripe/S tripe.framework/Stripe, building for iOS-armv7 but attempting to link with file built for iOS-arm64 Undefined symbols for architecture armv7: "OBJC_CLASS$_STPAPIClient", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPSetupIntentConfirmParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPAppInfo", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPPaymentIntentParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPPaymentMethodParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPTheme", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPPaymentMethodBillingDetails", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPPaymentMethodAddress", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPCardParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPAddCardViewController", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPAddress", referenced from: objc-class-ref in TPSStripeManager.o "_STPStringFromCardBrand", referenced from: -[StripeModule cardBrandAsPresentableBrandString:] in TPSStripeManager.o "OBJC_CLASS$_STPPaymentHandler", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPBankAccountParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPPaymentConfiguration", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_Stripe", referenced from: objc-class-ref in TPSStripeManager.o (maybe you meant: OBJC_CLASS$_StripePaymentPlugin, OBJC_CLASS$_StripeModule ) "OBJC_CLASS$_STPPaymentMethodCardParams", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPUserInformation", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPRedirectContext", referenced from: objc-class-ref in TPSStripeManager.o "OBJC_CLASS$_STPSourceParams", referenced from: objc-class-ref in TPSStripeManager.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Using new build systemnote: Planning buildnote: Constructing build description

Abosrie avatar Oct 25 '20 05:10 Abosrie

same here

yelkamel avatar Nov 02 '20 16:11 yelkamel

I fixed the issue buy changing the target IOS of the plugin to 11

Abosrie avatar Nov 03 '20 12:11 Abosrie

I fixed the issue buy changing the target IOS of the plugin to 11

Hi @Abosrie , can you tell me how you changed that? means from where? I am facing the same issue

mnomanmemon avatar Nov 11 '20 09:11 mnomanmemon

Same issue here,

Solved by changing target to 11. To do it:

Open your project in XCode. In Pods project, click stripe_payment. Then click Build Settings. Then search for iOS Deployment Target. Change it to 11.0.

Capture d’écran 2020-11-13 à 21 01 36

ghivert avatar Nov 13 '20 20:11 ghivert