标签: objective-c cocoapods
我想让CocoaPods在完成安装pod之后在项目根目录中运行git submodule init。有一个post_install挂钩,但我发现很少有关于如何使用它的信息。它可以用来运行任意bash命令吗?
git submodule init
答案 0 :(得分:29)
嗯,这比预期的要容易......
post_install do |installer| system("git submodule init") end