Skip to content

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

@jeffery812

Description

@jeffery812

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"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions