calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

'React/RCTEventEmitter.h' file not found from my -cal target #1383

Closed zedtux closed 6 years ago

zedtux commented 6 years ago

I have a working (compiling and running) target for my app, and I followed the "Tutorial: Creating a cal Target" page from the Wiki.

Now when I try to build this target, it is failing with the following:

▸ Compiling RCTTextShadowView.m

❌  /Users/zedtux/Developments/companion/node_modules/react-native/Libraries/Text/Text/RCTTextShadowView.h:8:9: 'React/RCTShadowView.h' file not found

#import <React/RCTShadowView.h>
        ^~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RCTBaseTextShadowView.m

❌  /Users/zedtux/Developments/companion/node_modules/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h:8:9: 'React/RCTShadowView.h' file not found

#import <React/RCTShadowView.h>
        ^~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RCTRawTextViewManager.m

❌  /Users/zedtux/Developments/companion/node_modules/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h:8:9: 'React/RCTViewManager.h' file not found

#import <React/RCTViewManager.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~

▸ Compiling RCTBaseTextInputShadowView.m

❌  /Users/zedtux/Developments/companion/node_modules/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h:8:9: 'React/RCTShadowView.h' file not found

#import <React/RCTShadowView.h>
        ^~~~~~~~~~~~~~~~~~~~~~~

** TEST BUILD FAILED **

The following build commands failed:
    CompileC /Users/zedtux/Library/Developer/Xcode/DerivedData/Companion-bjukbjsnzoqxjeamrtsqcoubihhb/Build/Intermediates.noindex/RCTText.build/Debug-iphoneos/RCTText.build/Objects-normal/armv7/RCTRawTextViewManager.o RawText/RCTRawTextViewManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I tried to delete the target, and follow again the Wiki page, but same result.

Can you please help me solving this issue?

zedtux commented 6 years ago

I solved it following this comment (Adding React to the target's Target Dependencies from the Build Phases.