-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Can't run on iOS due to 'unknown type name 'SKPaymentDiscount' #465
Comments
I've not yet tested this in recent |
@hyochan I'd be happy to, but I'm not 100% sure how I'd do it. Can you walk me through setting up a PR for y'all? I don't know what the fix would be |
@ndejesus1227 Do you think you've found the solution to this issue? |
@hyochan no, I haven't. I've made attempts at fixing it but I only know JavaScript. I'd have to find someone to help who knows Native iOS much better than I do |
@ndejesus1227 Actually, this feature has been implemented by @renatoalencar in #455. I can't help this out further currently. |
Thanks, @hyochan. @renatoalencar what version of react native are you running on? I'm not sure if I should be downgrading react-native-iap or RN for now |
Hello @ndejesus1227, that's on me, sorry. What is actually happening is that your iOS version is below 12.2. As the Apple documentation describes, the I was suppose to verify the actual iOS version, but ended up forgetting. |
@renatoalencar ah, okay. That makes sense. Do you have any idea on when you can make a fix for this? You can take your time, just curious |
I'll be downgrading to a version before this update until this is addressed @hyochan @renatoalencar |
i having this issue too on version |
Thanks for the explanation @ggdegreat, so i'm going to 2.4.8 ! |
I was having the same issue, and can confirm that 2.4.8 fixes the issue. Thanks for the help! |
So the package won't be compatible with |
Is the payment with apple Pay (and no popup) going to work ? We need to keep both version sync if we want to use in production library. We cannot choose between version > 12 or version < 12 for business ! There are probably something i don't get ! Thanks for your work @hyochan ! |
I had the same problem - now solved. For over a year I did not open Xcode. Now I took my iphone 6s and upgraded to firmware 12.3.1; my mac was still on 'Sierra', so my Xcode installation was not compatible with the latest ios. When trying to run code on macbook-connected iphone I got these messages. Then the solution:
---> now everything works |
So, the app using this library won't work when running on iOS <12.2 ? |
It will from 3.0.0 |
Thanks, will stay on 2.4.8 till 3.0.0 will be released |
@DataGreed Just released |
@hyochan we can still see the problem with SKPaymentDiscount on v3.0.0. Is there something we are missing? we just updated the version on package.json, did the install and clean/build the app in xcode. The error still appear. |
@danidfm What is your build target in |
build target is 11.0 and we removed enterely the node_modules folder. |
same problem with me – tried 3.0.0, but rolled back to 2.4.8 |
(by the way, prior to that I tried 3.0.0 RC versions and still got the same error) |
Could you all kindly test |
I just want to say that he literally send he was supposed to verify the version and avoid this issue, but he forgot. His pull request should have never been merged into master |
Trying to Run project in Xcode for my iPhone with iOS v12.3.1 I think the reason is iOS version installed on the device |
@hyochan thank you for your great support! I just tried all the hints mentioned in this issue (completely removed node_modules before npm install, clean app, removed ios/build). Unfortunately I am still getting this issue in combination with build target 11.2 and react-native-iap v3.2.2. I also tried downgrading to v2.4.8, which leads to a successful build. Moreover I tried to setup IapExample but end up in this react-native issue (facebook/react-native#25252) |
I'm having the same issue on an iMac with macOS 10.13. My macbook running 10.15 is building fine, Maybe older mac version is not working? 🤔 |
@murilobast different xCode versions? |
Check os version `#if __IPHONE_12_2
like this |
I was running into this issue. Updating my xcode from 10.1 to 10.2.1 fixed my issue. I am able to build my project now. |
Same problem with Xcode 10.1, I can't update XCode to 10.2 because it needs OSX 10.14.3, not suppported by my old iMac stuck at 10.13.6. |
@lc3t35 , how did you build iOS project with Xcode 10.1? |
@liudmyla-schastlyvets I can't build with 10.1, I had to use another computer with Xcode lastest version :( |
react-native: 0.59.0 |
Yes, me too ! excellent work from the maintainers ! |
Version of react-native-iap
2.4.9
Version of react-native
0.59.5
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
App builds
Actual behavior
App doesn't build
Tested environment (Emulator? Real Device?)
Emulator
Steps to reproduce the behavior
Just react-native run-ios with the above versions of react-native-iap and React native
This is the exact error I get:
/node_modules/react-native-iap/ios/RNIapIos.m:167:5: unknown type name 'SKPaymentDiscount'; did you mean 'SKProductDiscount'?
I tried renaming SKPaymentDiscount to SKProductDiscount just to see and I was getting different errors.
Let me know if you have any questions.
The text was updated successfully, but these errors were encountered: