stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.09k stars 974 forks source link

Error in adding StripeCore in AppDelegate xcode #4006

Open leoginnayre13 opened 2 weeks ago

leoginnayre13 commented 2 weeks ago

After adding "pod 'StripePaymentsUI' in Podfile, and adding "@import StripeCore;" in Appdelegate, this error shows up:

"Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules"

Screenshot 2024-09-11 at 6 07 37 PM

Reference of Stripe Documentation: https://docs.stripe.com/payments/cash-app-pay/set-up-payment?web-or-mobile=mobile&payments-ui-type=ios

davidme-stripe commented 2 weeks ago

Thanks for filing this! Do you have -fno-modules anywhere in your Xcode Settings or Podfile?

This setting in your target should also be set to Yes: CleanShot 2024-09-17 at 11 31 26@2x