- 刪除 rncache, 清理緩存文件
$ rm -rf node_modules/ && yarn cache clean && yarn install and rm -rf ~/.rncache
2.在 rncache 文件夾中 安裝第三方文件
$ cd node_modules/react-native/scripts
$ ./ios-install-third-party.sh
- Xcode clean 一下項(xiàng)目 從新編譯即可
$ rm -rf node_modules/ && yarn cache clean && yarn install and rm -rf ~/.rncache
2.在 rncache 文件夾中 安裝第三方文件
$ cd node_modules/react-native/scripts
$ ./ios-install-third-party.sh