kadiks / react-native-itunes

iTunes module for React Native
MIT License
62 stars 39 forks source link

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

Open sgeier opened 5 years ago

sgeier commented 5 years ago

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:

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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