VSTS hosted macOS agents not available outside USA

Jonathan Harrison
2 min readDec 9, 2017

--

In November 2017, Microsoft announced a preview of cloud-hosted CI/CD macOS agents for Visual Studio Team Services (VSTS). This is great for Xamarin iOS development as it means you don’t have to have a Mac hooked up to VSTS.

As soon as I saw this announcement, I tried to get this up and running for my team to save us time having to maintain our Mac Mini.

The first hurdle was this issue causing the iOS build to fail; a week and half later, the shell command posted got our build step succeeding. Hopefully in the future, you won’t have to run this command to manually set the Xamarin SDK tools version.

Now before I continue I should say that we have Two Factor Authentication (2FA) on the Apple account we used to publish our apps to the App Store.

The reason I mention this was that the next hurdle was when trying to push a new build to TestFlight. The build agent would prompt for a 2FA code (despite being configured per fastlane’s documentation for CI/CD pipelines not to) coming from Atlanta, GA and just sit there. I raised another issue.

Just over a week later I got a surprising answer: the preview hosted macOS agents won’t work with 2FA if you are outside of the USA.

So for anyone else who is looking at the new VSTS hosted macOS agents and doesn’t reside in the USA, perhaps hold off for now.

You probably could turn off 2FA on your Apple Account to get round this, but I didn’t want to reduce the security on my team’s account which we use to publish to the App Store.

--

--

Jonathan Harrison
Jonathan Harrison

Written by Jonathan Harrison

Principal Software Engineer @ Tripadvisor. Formerly at Spotify, Altitude Angel and Microsoft. All opinions are my own.

No responses yet