React-native-iap: Installation in Cocoapods project

Created on 25 Jan 2018  Â·  2Comments  Â·  Source: dooboolab/react-native-iap

I'm building an ejected Expo app which uses cocoapods in the xcode project. To install the IAP component, I followed the manual install. When I add the link to libRNIap.a, the build fails with the error:

'React/RCTDefines.h' file not found

Is there a way to install using cocoapods or can you help me figure out how to get around this issue?

Thanks!

Most helpful comment

@robyweb
Hi there! Yes this is known issue in cocoapod installation. Actually you don't need to manually install this even you are in pod project. After you installed it either manually or by react-native link, you should add $(SRCROOT)/../../../ios/Pods/Headers/Public header path as recursive in RNIap Header Search Path. Could you try this? Check the screenshot below also.

2018-01-25 10 24 47

All 2 comments

@robyweb
Hi there! Yes this is known issue in cocoapod installation. Actually you don't need to manually install this even you are in pod project. After you installed it either manually or by react-native link, you should add $(SRCROOT)/../../../ios/Pods/Headers/Public header path as recursive in RNIap Header Search Path. Could you try this? Check the screenshot below also.

2018-01-25 10 24 47

That worked perfectly!

Thank you!

Fred

On Wed, Jan 24, 2018 at 5:26 PM, Hyo Chan Jang notifications@github.com
wrote:

@robyweb https://github.com/robyweb
Hi there! Yes this is known issue in cocoapod installation. Actually you
don't need to manually install this even you are in pod project. After you
installed in manually or by react-native link, you should add
$(SRCROOT)/../../../ios/Pods/Headers/Public header path as recursive in
RNIap Header Search Path. Could you try this? Check the screenshot below
also.

[image: 2018-01-25 10 24 47]
https://user-images.githubusercontent.com/27461460/35365880-14e18084-01ba-11e8-9cb7-b8f160be74a0.png

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dooboolab/react-native-iap/issues/14#issuecomment-360330732,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADcqxy-t4A7RlXmtLM_q1zFHT2um9DCSks5tN9g3gaJpZM4RsHle
.

Was this page helpful?
0 / 5 - 0 ratings