question

bjones787-2630 avatar image
0 Votes"
bjones787-2630 asked RobCaplan edited

Unable to archive Xamarin iOS app via remote Mac - Unable to install the Agent 'Build 16.9.000.273'

Hi,

I've started having an issue in the last few days that's preventing us being able to create an iOS archive for deployment. We use VS2019 on windows and use a macincloud server for our building.

Below is what the Xamarin output shows,

 Checking host configuration for connecting to '##'...
 Checking SSH configuration...
 Initializing environment...
 Checking available disk space...
 Checking Mono installation...
 Checking Xamarin iOS installation...
 Checking host configuration for connecting to '####'...
 Host '##' is configured correctly
 Starting connection to '####'...
 Checking Broker 16.9.000.273 installation...
 Starting Broker 16.9.000.273 in port 57722...
 Broker 16.9.000.273 started successfully
 Starting connection to '####'...
 SSH connection to '##' has been established...
 Starting registered Agents: IDB 16.9.000.273...
 Starting IDB 16.9.000.273...
 Checking IDB 16.9.000.273 installation...
 Starting IDB 16.9.000.273 in port 57722...
 IDB 16.9.000.273 started successfully
 IDB 16.9.000.273 started
 Starting registered Agents: ...
 The Agents have been started successfully
 Performing server validations against '##'...
 Initializing IDB environment...
 Validating Mac operating system version compatibility...
 Checking Xcode version compatibility...
 Validating Xcode license state...
 Verifying installed Xcode tools...
 Checking Xcode tool package 'MobileDeviceDevelopment.pkg' installation...
 Updating Xcode tool package 'MobileDeviceDevelopment.pkg'...
 Could not update Xcode tool package 'MobileDeviceDevelopment.pkg'
 Checking Xcode tool package 'CoreTypes.pkg' installation...
 Xcode tool package 'CoreTypes.pkg' is up to date
 Checking Xcode tool package 'MobileDevice.pkg' installation...
 Xcode tool package 'MobileDevice.pkg' is up to date
 Checking Xcode tool package 'XcodeSystemResources.pkg' installation...
 Xcode tool package 'XcodeSystemResources.pkg' is up to date
 Checking provisioning information...
 Performing server validations against '##'...
 Connection to '##' completed successfully
 Archiving App Bundle '##'...
 Checking Build 16.9.000.273 installation...
 Installing Build 16.9.000.273...
 Unable to install the Agent 'Build 16.9.000.273'
 Checking Build 16.9.000.273 installation...
 Installing Build 16.9.000.273...
 Unable to install the Agent 'Build 16.9.000.273'
 Checking Build 16.9.000.273 installation...
 Installing Build 16.9.000.273...
 Unable to install the Agent 'Build 16.9.000.273'
 Checking Build 16.9.000.273 installation...
 Installing Build 16.9.000.273...
 Cannot create an IOS archive '##'. Process cannot be executed on XMA server.
 Unable to connect to Mac Server with Address='##' and User='##'. The build can't continue without a connection
    
 Failed to create App archive '##'.
 Unable to install the Agent 'Build 16.9.000.273'


At this point VS is connected to the Mac, and we can perform builds successfully, it's just the archiving process that seemingly can't establish a connection.

Has anyone any ideas?

Thanks

dotnet-csharpdotnet-xamarin
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, I've followed both of those guides but the problem persists with the same messages in the output window

0 Votes 0 ·

Please try to move your application to mac device. Use VS for mac to archive it, it you get the same issue.

1 Vote 1 ·

I'm facing the same issue: building the entire solution, no matter if in debug or release configuration, even deploying to connected iPad and debugging with real device works perfectly.
It's only when I try to make an archive that I face the issue.
I worked around by copying the entire source tree to the Mac and building the solution directly from VS for Mac: there it creates the archive.

0 Votes 0 ·

Using Pair to Mac I had the same problem....
Deleting bin and obj folders with VS closed kind of changes the problem

In the end I got stuck with the following error after going in Archive > Distribute > App Store > Save as

 Publishing project '*' completed with errors.
 Could not create ipa file for distribution of the archive '*'
 Unable to connect to Mac Server with Address='192.168.1.10' and User='desenv_mac'. The build can't continue without a connection

Sending the code to the MAC and running archive from VS for Mac works without any problem
This happens on projects that worked fine in previous versions of XCode/VS (Mar~Apr 2021)

There's no connection problem and windows and mac are on the same physical network.

0 Votes 0 ·

0 Answers