OGeek|极客世界-中国程序员成长平台

标题: ios - 将 Ruby bundler gems 作为 Xcode 构建脚本运行 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 20:27
标题: ios - 将 Ruby bundler gems 作为 Xcode 构建脚本运行

我使用 Bundler 来管理我的 iOS 项目中的 gem。 我希望能够在构建过程中自动从 bundle 运行 gems。
但是,如果我尝试在“运行脚本”构建阶段使用 bundle,Xcode 找不到命令 bundle (这是合理的,因为我们正在修改 $PATH .bash_profile).



Best Answer-推荐答案


修改 OS X 环境变量的方法很少。 但是,在这种情况下,有一个简单的解决方法。
在“运行脚本”构建阶段:
source ~/.bash_profile && bundle exec ....

关于ios - 将 Ruby bundler gems 作为 Xcode 构建脚本运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37706169/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4