Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'React/RCTRootView.h' file not found. React-Native doesn't support the configurations other than "Debug" and "Release"?? #12849

Closed
jeffery812 opened this issue Mar 10, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jeffery812
Copy link

jeffery812 commented Mar 10, 2017

In my iOS project. I can build Debug and Release configurations, but for the other configurations, it always build with error:

'React/RCTRootView.h' file not found

when it built failed with "Test" configuration, I found these build logs:


write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/Objects-normal/x86_64/yoga.LinkFileList
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga-generated-files.hmap
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga-all-non-framework-target-headers.hmap
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga-all-target-headers.hmap
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga-project-headers.hmap
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga-own-target-headers.hmap
/bin/mkdir -p .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/Objects-normal/i386
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/Objects-normal/i386/yoga.LinkFileList
write-file .../DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Intermediates/React.build/Release-iphonesimulator/yoga.build/yoga.hmap

We can see all are written to "Release-iphonesimulator" instead of "Test-iphonesimulator".

Then a added a configuration in React project .
https://i.stack.imgur.com/5v1Jn.jpg

Build my project again, Wow it works!

Is this a bug of React-Native?

Here is my React-Native version:

"dependencies": {
    "colors": "1.1.2",
    "eslint-plugin-import": "^2.2.0",
    "inquirer": "1.1.3",
    "lodash": "4.15.0",
    "moment": "2.15.1",
    "react": "15.4.2",
    "react-addons-pure-render-mixin": "^15.3.2",
    "react-dom": "15.3.1",
    "react-motion": "0.4.4",
    "react-native": "0.42.0",
    "react-native-animatable": "0.6.1",
    "react-native-button": "1.7.0",
    "react-native-datepicker": "1.3.2",
    "react-native-keyboard-aware-scroll-view": "^0.2.1",
    "react-native-maps": "0.13.0",
    "react-native-material-button": "0.0.4",
    "react-native-modal-picker": "0.0.16",
    "react-native-modalbox": "1.3.7",
    "react-native-scrollable-tab-view": "0.6.0",
    "react-native-svg": "5.1.3",
    "react-native-swiper": "1.4.11",
    "react-native-vector-icons": "4.0.0",
    "react-redux": "4.4.5",
    "react-swipeable-views": "0.7.3",
    "react-timer-mixin": "0.13.3",
    "redux": "3.6.0",
    "redux-storage": "4.1.1",
    "redux-storage-decorator-filter": "1.1.6",
    "redux-storage-engine-reactnativeasyncstorage": "1.0.2",
    "redux-thunk": "2.1.0",
    "reselect": "^2.5.4"
  },
@jeffery812 jeffery812 changed the title React-Native doesn't support the configurations other than "Debug" and "Release". React-Native doesn't support the configurations other than "Debug" and "Release"?? Mar 10, 2017
@jeffery812
Copy link
Author

I am sure the problem is that the output of React build was written to wrong place, or didn't have output at all.

In my project, I have 2 customised configuration(Test/AppStore). So React didn't copy necessary files to the right place.

Left log happened when configuration is Debug, right is the configuration Test.

When I built "Debug/Release" configurations, it did copy. And the build succeed, the detailed copy logs look like:

PBXCp Base/RCTRootView.h /Users/zhihuitang/Library/Developer/Xcode/DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Products/Debug-iphonesimulator/include/React/RCTRootView.h
    cd /Users/zhihuitang/repo/ebuilder/customer_journey/node_modules/react-native/React
    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"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/zhihuitang/repo/ebuilder/customer_journey/node_modules/react-native/React/Base/RCTRootView.h /Users/zhihuitang/Library/Developer/Xcode/DerivedData/experience-cnwcfskrnegeksdjtvlbrfmwbafz/Build/Products/Debug-iphonesimulator/include/React

@jeffery812 jeffery812 changed the title React-Native doesn't support the configurations other than "Debug" and "Release"?? 'React/RCTRootView.h' file not found. React-Native doesn't support the configurations other than "Debug" and "Release"?? Mar 11, 2017
@jeffery812
Copy link
Author

it is a known issue, found the solution here:
#11813

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants