【发布时间】:2019-07-02 17:10:12
【问题描述】:
在我当前的项目中,我被要求不要提交我的 Pods 目录,同时,人们希望我在 XCode 构建阶段“添加一些脚本”,如果在每次安装之前,它将自动运行“pod install”需要。
目标是不在克隆 repo 后在终端中手动运行 pod install。
我花了一天时间试图解决这个问题,但我发现了一些没有太多细节的参考资料:
iOS using pod install as Pre-action run script for building the project
CocoaPods version control, must use pod install when cloning repo
我还发现对于 CI,同样的问题可以通过在 .yml 文件中设置操作来解决:
Travis-CI is unable to open file
你知道这种脚本会是什么样子吗?
【问题讨论】:
标签: xcode cocoapods build-process git-clone run-script