stripe-ios icon indicating copy to clipboard operation
stripe-ios copied to clipboard

[BUG] Stored properties cannot be marked potentially unavailable with '@available'

Open MingYik opened this issue 2 years ago • 7 comments

xcode 14 build fails with "Stored properties cannot be marked potentially unavailable with '@available' " version : 'Stripe','21.13.0' support : iOS 11.0

MingYik avatar Sep 15 '22 03:09 MingYik

Getting this same issue after the new xCode14 update.

Upon building:

The following build commands failed: SwiftEmitModule normal x86_64 Emitting\ module\ for\ Stripe (in target 'Stripe' from project 'Pods')

ItsFlash10 avatar Sep 15 '22 07:09 ItsFlash10

I'm stuck with the same issue as well after updating to Xcode 14. Did you guys find any work around yet?

suchanmaharjan avatar Sep 15 '22 09:09 suchanmaharjan

Hi, thanks for filing this! The Xcode 14 compile errors have been fixed in recent versions of the SDK:

https://github.com/stripe/stripe-ios/releases

I would recommend upgrading to v22.8.1.

ramont-stripe avatar Sep 15 '22 14:09 ramont-stripe

Hi, thanks for filing this! The Xcode 14 compile errors have been fixed in recent versions of the SDK:

https://github.com/stripe/stripe-ios/releases

I would recommend upgrading to v22.8.1.

"For iOS 11 support, please use [v21.13.0]. For iOS 10, please use [v19.4.0]. If you need to support iOS 9, use [v17.0.2]" The lowest version my app supports is iOS11,What is the lowest version supported by V22.8.1

MingYik avatar Sep 17 '22 04:09 MingYik

@YiZheming v22.8.1 supports iOS 12.

ramont-stripe avatar Sep 19 '22 16:09 ramont-stripe

Hi, thanks for filing this! The Xcode 14 compile errors have been fixed in recent versions of the SDK: https://github.com/stripe/stripe-ios/releases I would recommend upgrading to v22.8.1.

"For iOS 11 support, please use [v21.13.0]. For iOS 10, please use [v19.4.0]. If you need to support iOS 9, use [v17.0.2]" The lowest version my app supports is iOS11,What is the lowest version supported by V22.8.1

I am using [v21.13.0] and I'm still getting this error in ActivityIndicator.swift inside StripeUICore.

ankitpoplify avatar Sep 21 '22 07:09 ankitpoplify

@ankitpoplify you will need upgrade to the latest version of the SDK to fix this error. Unfortunately, changes in the Swift compiler that ships with Xcode 14 broke the old versions.

ramont-stripe avatar Sep 21 '22 15:09 ramont-stripe

@ramont-stripe so just to clarify: This means that clients of this SDK will not be able to use the Stripe-SDK with the latest Xcode 14 version while still supporting iOS 11?

Out app currently has a minimum deployment target of iOS 11 and still quite a few customers are on those versions. To my knowledge version 21.13.0 was the last version that still supported iOS 11 and is currently stripe's recommended version for targeting iOS 11. Is there no other option aside from either not upgrading to Xcode 14 (not a long term option) or raising our minimum deployment target?

Ro-M avatar Nov 30 '22 10:11 Ro-M

I update version stripe to latest and it works

NgocLe1001 avatar Dec 22 '22 03:12 NgocLe1001

How did you updated the version

UzairSamad avatar Jan 09 '23 08:01 UzairSamad

Hi, thanks for filing this! The Xcode 14 compile errors have been fixed in recent versions of the SDK: https://github.com/stripe/stripe-ios/releases I would recommend upgrading to v22.8.1.

"For iOS 11 support, please use [v21.13.0]. For iOS 10, please use [v19.4.0]. If you need to support iOS 9, use [v17.0.2]" The lowest version my app supports is iOS11,What is the lowest version supported by V22.8.1

I am using [v21.13.0] and I'm still getting this error in ActivityIndicator.swift inside StripeUICore.

Please did you find a solution? Thanks

sara-Guesmi avatar Jun 16 '23 12:06 sara-Guesmi