ios - React Native开发中的 "/ios/index/DataStore"文件夹是什么

标签 ios xcode git react-native

我基本上想知道是否应该从版本控制中排除 react-native init 项目中的 /ios/index/DataStore 文件夹。

默认的 .gitignore 文件并没有排除它,但似乎这个文件夹的内容随着每次构建而改变,并且可以通过运行 react-native run-ios.

找不到此文件夹实际用途的任何信息。

最佳答案

xcodebuild 索引你的项目以加速后续构建,你可以安全地.gitignore 这个目录。如果您想更改其位置,可以通过 Xcode > Preferences > Locations > Advanced 来完成。

首选项窗口 enter image description here

关于 react-native 项目,最好不要理会这些设置,因为您正在使用(从 react-native 0.53.0 开始)硬编码到 react-native-cli 中的构建脚本。

关于ios - React Native开发中的 "/ios/index/DataStore"文件夹是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47260788/

相关文章:

node.js - 部署到 Heroku 的 Node 应用程序中的 git 隐私

iOS 解析 UISearchBar

iOS 停止全局队列运行

ios - 如何在 UITableViewController 中隐藏键盘?

Xcode Server Bot不发送电子邮件报告

ios - Size Inspector Xcode 8.3.1 未显示多个选项

Git fatal error : cannot lock ref

git - 需要一个git命令,它只给我的源分支(工作分支)更改

ios - 一对一聊天 IOS 双方的 Quickblox 删除对话框

ios - "NSURLSession API is highly asynchronous"是什么意思?