Xserverpy: Use Xcode bots from the CLI

Omar Abdelhafith
iOS App Development
2 min readJul 29, 2015

--

Xcode bots are wonderful, they do what they are supposed to; test, analyse, archive and perform pre and post integration scripts.

As a process of moving from Jenkins to Xcode bots, I noticed than I get a stream of requests to build the project from non-iOS developers. Well…This has been solved in the Mac Server 4.1.5.

However, since all of our other project are still running on other CI platform (such as Jenkins) it might be beneficial to have a way to build Xcode bots from them too.

Xserverpy has been created just for that. Xserverpy works by using Xcode server Rest api to build Xcode bots from the CLI.

If you, like me, still want to be able to build your iOS apps from Jenkins, but still use Xcode bots to build them. Or you like building from CLI. Or even you love ASCII progress bar. Then xserverpy is just for you!

Xserverpy is installed using homebrew.

brew tap oarrabi/tap
brew install xserverpy

Or using pip

pip install xserverpy

To integrate (build) an Xcode project, you would use

xserverpy integrations new --bot <Bot name or ID>

For usage description, please refer to the github page.

If you think its a good project, then don’t forget to star it up.
As always for notes and followup you can find me here @ifnotrue

--

--

Omar Abdelhafith
iOS App Development

Software developer @Facebook, previously @zendesk. In ❤ with λ, Swift, Elixir and Python. Check my Github https://github.com/nsomar.