Set Up TeamCity Build Agent on MAC for Xamarin.iOS Projects

When I was setting up the TeamCity server for my Xamarin iOS projects, I had one constraint, my existing TeamCity WebUI as well as the build agent was on Windows based System. Since we need iOS based Operating System for building Xamarin iOS project, certainly my current Teamcity setup doesn't sound appropriate. 
I searched a lot on Web to find the solution but didn't find any simple explanation.
On further analysis I realized that using a build agent which is on MAC would solve my issues.

Below I have tried to give you the steps to setup TeamCity Build agent on MAC in simple words.


Setting up the TeamCity Build agent on MAC


Enable SSL and Remote Login on MAC
 - Set "PasswordAuthentication = yes" at "/etc/ssh/sshd_config"
   (One can use TextWrangler to modify this file)
 - Next, navigate to System Preferences > Sharing and check the "Remote Login" checkbox
 - Also under "Allow access for" select "All users". See the below image.



Login to the TeamCity WebUI

Go to "Agents" menu option and select "Agent Push"


Select Install build Agent




























For the "Preset" field select "<use custom settings"> and fill the fields as suggested below

































Click on "Install agent" to install the build agent on MAC machine.

Note: Make sure the MAC and the Windows machine are on the same network.

Once installed the build agent will start appearing under the "Build Agent" menu but disconnected something like below.














Once you make sure the build Agent is running on your MAC machine it will start appearing under the connected section



Comments

  1. TeamCity will wrap up for you: it will distinguish the kind of the VCS storehouse, test the association and auto-arrange VCS archive settings, and also recommend the undertaking and construct design names. I find a very good website for the TeamCity Build Monitoring, If you want you can visit this site.

    ReplyDelete

Post a Comment

Popular Posts