我基本上想知道我是否应该从版本控制中排除react-native init
项目中的/ios/index/DataStore
文件夹.
默认的.gitignore
文件并不排除它,但似乎该文件夹的内容随着每次构建而改变,可以通过运行react-native run-ios
轻松地重新创建.
找不到此文件夹的实际用途的任何信息.
我基本上想知道我是否应该从版本控制中排除react-native init
项目中的/ios/index/DataStore
文件夹.
默认的.gitignore
文件并不排除它,但似乎该文件夹的内容随着每次构建而改变,可以通过运行react-native run-ios
轻松地重新创建.
找不到此文件夹的实际用途的任何信息.
xcodebuild indexes your project in order to speed up subsequent builds, you are safe to .gitignore this directory. If you'd like you change its location, that can be done via Xcode > Preferences > Locations > Advanced.
首选项窗口
对于react native项目,最好不要使用这些设置,因为您使用的构建脚本(从react native 0.53.0开始)硬编码到react native cli中.