-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
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
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]React-Native doesn't support the configurations other than "Debug" and "Release".[/-][+]React-Native doesn't support the configurations other than "Debug" and "Release"??[/+]jeffery812 commentedon Mar 11, 2017
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.
When I built "Debug/Release" configurations, it did copy. And the build succeed, the detailed copy logs look like:
[-]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"??[/+]jeffery812 commentedon Mar 16, 2017
it is a known issue, found the solution here:
#11813