React-native: 'config.h' file not found when I upgraded xcode10.

Created on 23 Sep 2018  路  4Comments  路  Source: facebook/react-native

image

Environment:

OS: macOS High Sierra 10.13.6
Node: 10.8.0
Yarn: 1.6.0
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 10.0 Build version 10A255
Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)

react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: 0.54.2 => 0.54.2

Locked

Most helpful comment

You need to change to the legacy build system in Xcode 10 and install third party scripts manually.

1:

File -> Project/Workspace settings
Build System: dropdown -> change to Legacy Build system

2: Follow this to manually install third party scripts for RN: https://github.com/facebook/react-native/issues/21168#issuecomment-423103382

Collection issue for Xcode 10: https://github.com/facebook/react-native/issues/19573

All 4 comments

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

You need to change to the legacy build system in Xcode 10 and install third party scripts manually.

1:

File -> Project/Workspace settings
Build System: dropdown -> change to Legacy Build system

2: Follow this to manually install third party scripts for RN: https://github.com/facebook/react-native/issues/21168#issuecomment-423103382

Collection issue for Xcode 10: https://github.com/facebook/react-native/issues/19573

Changing the build system alone didn't work for me - Make sure to upgrade your react-native package with react-native-git-upgrade

Was this page helpful?
0 / 5 - 0 ratings