No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet'
See original GitHub issueVersion of react-native-iap
5.2.0
Version of react-native
0.62.2
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
Able to run/build the app using Xcode or terminal
Actual behavior
Build failed due to this error
No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet'
ios/RNIapIos.m at line 330
Tested environment (Emulator? Real Device?)
Simulator Xcode version 11.6
Steps to reproduce the behavior
- yarn add react-native-iap
- npx pod-install
- xed ./ios
- run the app
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
No visible @interface for 'SKPaymentQueue' declares the ...
Since upgrading to react-native-iap 5.2.0. Error. No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet'.
Read more >No visible @interface for 'SKPaymentQueue' declares the ...
No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet' #39 · Comments · Footer.
Read more >No visible @interface | Apple Developer Forums
The error is: No visible @interface for 'NSTreeNode' declares the selector 'count' ... The property myTreeController is declared in the header file as....
Read more >In app purchase 2 Xcode build failure - Ionic Forum
Error is: “No visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet”.
Read more >Build fail: ARC semantic issue - no visible @interface for ...
no visible @interface for 'SKPaymentQueue' declares the selector 'presentCodeRedemptionSheet' i don't know hot to resolve the issue, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @leotm , it worked. error is related to this pr https://github.com/dooboolab/react-native-iap/pull/1201
Downgrading to
"react-native-iap": "5.1.3"
works (builds successfully), sticking with it for now.Could be I’m still on XCode 11.5, not on 12.1 yet.