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

error: 'IAPPromotionObserver.h' file not found with <angled> include; use "quotes" instead #989

Closed
gurol opened this issue Apr 24, 2020 · 2 comments

Comments

@gurol
Copy link

gurol commented Apr 24, 2020

Version of react-native-iap

4.4.4, 4.4.5, 4.4.6, 4.4.7

Version of react-native

0.59.10

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

Successful build

Actual behavior

Could not be built even after (removing temp directories such as node_modules, ios/build, ~/Library/Developer/Xcode/DerivedData, ...)

`info [APPPATH]/node_modules/react-native-iap/ios/IAPPromotionObserver.m:10:17: warning: class 'IAPPromotionObserver' does not conform to protocol 'SKPaymentTransactionObserver' [-Wprotocol]
@implementation IAPPromotionObserver
^
[APPPATH]/node_modules/react-native-iap/ios/IAPPromotionObserver.m:10:17: note: add stubs for missing protocol requirements
@implementation IAPPromotionObserver
^
1 warning generated.

info

info [APPPATH]/node_modules/react-native-iap/ios/RNIapIos.m:4:9: error: 'IAPPromotionObserver.h' file not found with include; use "quotes" instead
#import <IAPPromotionObserver.h>
^~~~~~~~~~~~~~~~~~~~~~~~
"IAPPromotionObserver.h"
1 error generated.

info

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening [AppName].xcodeproj

The following build commands failed:
CompileC [APPPATH]/ios/build/OkuPokus/Build/Intermediates.noindex/RNIap.build/Debug-iphonesimulator/RNIap.build/Objects-normal/x86_64/RNIapIos.o RNIapIos.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
. Run CLI with --verbose flag for more details.`

Tested environment (Emulator? Real Device?)

Both Emulator and Real Device

Steps to reproduce the behavior

@gurol
Copy link
Author

gurol commented Apr 25, 2020

I have fixed the error by making the following change in node_modules/react-native-iap/ios/RNIapIos.m file:

#import <IAPPromotionObserver.h>
to
#import "IAPPromotionObserver.h"

@hyochan
Copy link
Owner

hyochan commented Apr 25, 2020

Fixed in 4.4.8. However, I'm not quite sure why this wasn't a problem in my env.

@hyochan hyochan closed this as completed Apr 25, 2020
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