可以安全地忽略 Carthage.resolved 吗?
Safe to ignore Carthage.resolved?
使用 Carthage 时,我会在当前文件夹中获取自动生成的 Carthage 文件。 git 忽略它安全吗?它有什么用?
实际上,这是不可取的。引用自 Carthage's README.md on Github:
Along the way, Carthage will have created some build artifacts. The most important of these is the Cartfile.resolved file, which lists the versions that were actually built for each framework. Make sure to commit your Cartfile.resolved, because anyone else using the project will need that file to build the same framework versions.
After you’ve finished the above steps and pushed your changes, other users of the project only need to fetch the repository and run carthage bootstrap to get started with the frameworks you’ve added.
使用 Carthage 时,我会在当前文件夹中获取自动生成的 Carthage 文件。 git 忽略它安全吗?它有什么用?
实际上,这是不可取的。引用自 Carthage's README.md on Github:
Along the way, Carthage will have created some build artifacts. The most important of these is the Cartfile.resolved file, which lists the versions that were actually built for each framework. Make sure to commit your Cartfile.resolved, because anyone else using the project will need that file to build the same framework versions.
After you’ve finished the above steps and pushed your changes, other users of the project only need to fetch the repository and run carthage bootstrap to get started with the frameworks you’ve added.