Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Xcode Server CI for project using Cocoapods

I'm setting up CI for a project using CocoaPods. I set up Xcode server locally on my Mac. Pod directory is not under source control, so put

pod install

in my 'Before Integration' script for my Bot, and got 'pod: command not found' error.

I certainly have pods installed on my machine, how do I make it visible for the server?

like image 315
keith Avatar asked Feb 08 '23 07:02

keith


1 Answers

you can also use this line in the beginning of your trigger and you can run all other commands without using /usr/local/bin

export PATH=$PATH:/usr/local/bin

But i would recommend to commit your Pods into the repository, so the CI does not have to care about it.

like image 181
Alex Avatar answered Mar 07 '23 01:03

Alex