Skip Navigation

Developing apps in 
Microsoft Visual Studio
 on 
Windows
 with the 
Mac
 Agent

If you want to develop apps on a 
Windows
 computer using 
Microsoft Visual Studio
 with the 
Mac
 Agent, visit developer.xamarin.com and follow the instructions in Connecting to the Mac.
The following table provides solutions for common issues when setting up the 
Mac
 Agent:
Problem
Solution
The project doesn't run in 
Visual Studio
 after you add the ld file to the project folder and mtouch arguments to the project file.
In your mtouch arguments, change 
B ${ProjectDir}”
 to 
-B
/
<path_to_project_with_ld_file>
"
 (for example, -B /Users/USER_1/Documents/Projects/iOS/Examples/GreetingsClient").
The 
Mac
 Agent does not connect as expected.
  1. In 
    Visual Studio
     on the 
    Windows
     computer, open 
    Tools > Options > Xamarin > iOS Settings
    .
  2. Click 
    Find Xamarin Mac Agent
    .
  3. Enter the name or IP address of the 
    Mac
     computer.
  4. Open the project in 
    Visual Studio
     on the 
    Windows
     computer and run it.
  5. Close the project and open 
    Tools > Options > Xamarin > iOS Settings
    .
  6. Select the 
    Remote Simulator to Windows
     check box to show the simulator on the 
    Windows
     computer. If you want to run the simulator on the 
    Mac
     computer, do not select this option.
  7. Run the project again.
You get the following exception when the 
Mac
 Agent is connecting:
"Could not authenticate the user 'user' with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH…”
If the solutions at the links above do not work, rename or delete ~/.ssh and try to connect again.
You experience build and deployment errors.