Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nativescript-stripe] Not working on Xcode 14.3 #178

Open
jitendraP-ashutec opened this issue Apr 19, 2023 · 2 comments
Open

[nativescript-stripe] Not working on Xcode 14.3 #178

jitendraP-ashutec opened this issue Apr 19, 2023 · 2 comments

Comments

@jitendraP-ashutec
Copy link

nativescript-stripe version 8.0.3 is not working after updating Xcode 14.3. I am getting below error.

 error: stored properties cannot be marked potentially unavailable with '@available'
    @available(iOS 13, macCatalyst 14, *)
     ^
Command SwiftCompile failed with a nonzero exit code

Do you have any suggestion how to fix it?

@mreall
Copy link

mreall commented Jun 15, 2023

I get a similar error. When I attempt to build in Xcode I get the error No such module 'Stripe' in the file TNSStripe.swift. Has anyone built the latest version for iOS? It works for me on Android. (Turns out I was opening the xcodeproj instead of the xcworkspace.)

When I try to build in Xcode I get the same error in the file platforms/ios/Pods/Stripe/Stripe/CardDetailsEditView.swift which makes me think this is a Swift issue instead of a plugin issue.

I'm on NativeScript 8.5.3.

@mreall
Copy link

mreall commented Jun 15, 2023

I was able to get my app to build on iOS with the following updates:

Replace the contents of node_modules/@triniwiz/nativescript-stripe/platforms/ios/Podfile with the following
(see #149):

use_frameworks!
platform :ios, '14.0'
pod 'Stripe', '~> 22.5.0'
pod 'Stripe/Stripe3DS2', '~> 22.5.0'

Add/update the following line in App_Resources/iOS/build.xcconfig:

IPHONEOS_DEPLOYMENT_TARGET = 14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants