I use Bundler to manage gems in my iOS project.
I want to be able to run gems from bundle automatically during the build.
However, if I'm trying to use bundle in 'run script' build stage, Xcode cannot find command bundle
(which is reasonable, since we're modifying $PATH
in .bash_profile
).
There are few ways to modify OS X environment variables.
However, there's an easy workaround in this case.
In the 'run script' build stage:
source ~/.bash_profile && bundle exec ...
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With