IDE : Visual Studio 2017
Xamarin iOS : 11.8 (same as on Mac "slave")
msbuild command : /p:Configuration=Debug /p:Platform=iPhone /p:ServerAddress=x.x.x.x /p:ServerUser=jenkins /t:Build My.sln
I am able to connect to the mac agent and build the iOS project using Visual Studio. Even the IPA is "created" successfully on the Windows machine and Mac machine. However, my goal is to automate this via Jenkins and the msbuild command fails with this error message. I am also able to execute the above msbuild command manually. However, when jenkins executes the exact same command, I get the following error.
(_ResolveUniversalTypeIdentifiers target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(254,3): error : The current connection has never been connected. It needs to be connected first in order to use it as an active connection [D:......\My.iOS.csproj]
I am suspecting, it could be permissions related as Jenkins is executing as "Local System". Any ideas ?