-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
iOS build failed, cannot find IAPPromotionObserver.m #1077
Comments
@howg0924 Were you able to fix this issue yourself by just removing all of those references in project.pbxproj? |
A workaround might be adding IAPPromotionObserver.m file into /node_modules/react-native-iap/ios/IAPPromotionObserver.m |
@danleveille Yes, open /node_modules/react-native-iap/ios/RNIap.xcodeproj in xcode and remove references of IAPPromotionObserver.m / IAPPromotionObserver.h. Then go back your react native app and now your app can build without the issue. This issue only occurred if you install RNIap manually by adding RNIap.xcodeproj to your RN project. I think it will not affect user who manually installs RNIap by Podfile. |
@howg0924 exactly so. no issue using pods |
|
Believe there's still an issue with 4.6.3 while adding as a Library
Adding as pod didn't work due to this error:
react-native is 0.59.9 |
Believe there's still an issue with 4.6.3 while adding as a Library clang: error: no such file or directory: '/Users/mac/Sites/eventlivernnew/node_modules/react-native-iap/ios/IAPPromotionObserver.m' [!] Unable to find a specification for You have either:
react-native is 0.59.9 |
Same issue here on react-native:0.59.10. react-native-iap:5.2.7 Does it not support this version of react-native with pod install? working fine for andorid as i upgraded due to the new google billing library v3? |
Version of react-native-iap
4.5.2, manual installation
Version of react-native
0.59.9
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
build success
Actual behavior
Build failed due to unable to find IAPPromotionObserver.m
This is because IAPPromotionObserver.m is removed in #1039
but it is still referenced in ios/RNIap.xcodeproj/project.pbxproj
Remove that reference will fix the issue.
Tested environment (Emulator? Real Device?)
Steps to reproduce the behavior
Manually install RNIap by adding RNIap.xcodeproj to xcode and build
The text was updated successfully, but these errors were encountered: