stripe / stripe-ios

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

Lexical or Processor Issue (<Stripe/Stripe.h> file not found) #1810

Closed nikunj1996 closed 3 years ago

nikunj1996 commented 3 years ago

Summary

Code to reproduce

iOS version

Installation method

Using Cocoapod

SDK version

Stripe 21.5.0

Other information

XCode 12.5 Objective C

davidme-stripe commented 3 years ago

Hello! When updating to this version, please replace #import <Stripe/Stripe.h> with @import Stripe;. See https://stripe.com/docs/mobile/ios/sdk-21-migration?language=objc for more details.

WelshDev commented 3 years ago

I'm also getting the same issue. That import statement exists in a lot of files. Is there a way to force use an old version of the Stripe IOS SDK so we don't have to modify all these files?

davidme-stripe commented 3 years ago

@WelshDev It should be possible to use Xcode's "Find and Replace in Workspace…" feature to do this in one operation over all of your files. Please let me know if that doesn't work for you, I might be missing context on your situation!