React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. Before opening a new issue, make sure to carefully read the following guidelines.
GitHub issues should only be used for bugs. Make sure these boxes are checked before submitting your issue:
Describe your issue in as much detail as possible. Provide screenshots where appropriate. Provide a minimal code snippet / rnplay example that reproduces the bug, or include a list of detailed list of steps that reproduce the issue.
--- delete everything above this line before submitting your issue ---
clang: error: no such file or directory: '/Users/.../node_modules/react-native/React/Layout/Layout.c'
clang: error: no input files
npm start
----------log -----------
CompileC /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/Layout.o /Users/.../TestReactNative/node_modules/react-native/React/Layout/Layout.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/.../LMStudyDemo/TestReactNative/Pods
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/.../Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/.../Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -Wno-infinite-recursion -iquote /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Products/Debug-iphonesimulator/React/include -I/Users/.../TestReactNative/Pods/Headers/Private -I/Users/.../TestReactNative/Pods/Headers/Private/React -I/Users/.../TestReactNative/Pods/Headers/Public -I/Users/.../TestReactNative/Pods/Headers/Public/React -I/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/DerivedSources -F/Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Products/Debug-iphonesimulator/React -include /Users/.../TestReactNative/Pods/Target\ Support\ Files/React/React-prefix.pch -MMD -MT dependencies -MF /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/Layout.d --serialize-diagnostics /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/Layout.dia -c /Users/.../node_modules/react-native/React/Layout/Layout.c -o /Users/.../Library/Developer/Xcode/DerivedData/TestReactNative-hhpliywxwzjawdbghthuduetruok/Build/Intermediates/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/Layout.o
[FILL THIS OUT]
@lmtim what was your fix for this issue?
@lmtim I faced this issue too. How do you resolve it?
I ran into this while upgrading react-native from 0.27.2 to 0.35.0. I use Cocoapods, so I had to run pod install to pull the changes.
pod install didn't work for me. I just did a complete shut down and the error was gone.
Sometimes even quitting Xcode and opening it again did the job for me.
The error doesn't go once and for all though. It keeps coming back now and then and I do the same(shut down or quit xcode) and it goes away.
react-native: 0.39.2
react: 15.4.1
Xcode: 8.2.1
macOS: 10.12.2
Running npm install works for me.
Most helpful comment
I ran into this while upgrading react-native from 0.27.2 to 0.35.0. I use Cocoapods, so I had to run
pod installto pull the changes.