Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

RNiTunes.h:11:9: 'React/RCTBridgeModule.h' file not found #22

Open
sgeier opened this issue Dec 17, 2018 · 3 comments
Open

RNiTunes.h:11:9: 'React/RCTBridgeModule.h' file not found #22

sgeier opened this issue Dec 17, 2018 · 3 comments

Comments

@sgeier
Copy link

sgeier commented Dec 17, 2018

Hello, I have been struggling with this one for 2 days now.

Here is a list of my config:
"dependencies": {
"@expo/samples": "2.1.1",
"expo": "^31.0.2",
"expokit": "31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",
"react-native-itunes": "^0.5.0",
"react-navigation": "^2.18.2"
},
CocoaPods 1.5.3, also tried with latest version.

I ejected Expo (from a fresh project with nothin else added) and trying to build the iOS project in Xcode 10.1.. Of course I did pod install before.
I keep getting the same error message.
image

I tried a number of things:

  • Added the Scheme for RNiTunes to include React as Build Target.
    image

  • Followed all of your steps outlined as outlined on your project page (search headers path, pull xproject under libraries, link binary with libraries etc)

  • Built React as a separate Scheme successfully, even then RNiTunes doesn't find it
    image

  • Updated the search header path with additional paths
    image

I was able to see some progress when changed the code of the include included the from
#import <React/RCTBridgeModule.h> to just #import "RCTBridgeModule.h" but then it consequently failed at later include e.g. /react-native/React/Base/RCTBridgeModule.h:10:9: 'React/RCTDefines.h' file not found, which is included by RCTBridgeModule.

I don't know what else to do. Do you have any more advise what I can try?
Thank you in advance

@sgeier
Copy link
Author

sgeier commented Dec 17, 2018

I still have issues but was able to proceed. I changed the xCode to use the legacy build system (undr project/workspace settings) and I changed the name of the include to "React/RCTBridgeModule.h".
And I pull in the React.xcodeproject file under libraries. Then things started to look better. Now I am facing the following issue:

image

Still stuck. It cant copy the file over.

@sgeier
Copy link
Author

sgeier commented Dec 19, 2018

So after hours of reading and trying things out I gave up. The core issue seems to be a ejected EXPO react native project. Running itunes with a clean react native app works. So I am getting rid of Expo at this point.

@sgeier
Copy link
Author

sgeier commented Oct 17, 2019

This can be closed here. Expo caused lots of issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant