i have a mac mini. i am trying to add this to visual studio (version 2015 with update 3). it detects mac, gets the SSH fingerprint, and gives me the login screen. but then i get login failure. i can login through SSH to it without any problem. i can use VNC and connect to it using the same credentials. but i consistently get login failure when trying to connect through xamarin dialog box.
i haven't installed anything on mac, i have only enabled remote login, and enabled all options to connect me to it using SSH and everything seems to be working fine.
i don't understand what i am missing. i'll appreciate any help with this.
You need to install Xamarin.iOS on your Mac as a minimum to be able to connect from Visual Studio - if you don't have the Xamarin tooling installed on your Mac along with Xcode then you cannot build your iOS apps.
You do not need Xamarin Studio installed on the Mac, just Xamarin.iOS, but it is advisable as it makes it easier to update.
Check out our installation guide which walks you through downloading and installing everything you need:
https://developer.xamarin.com/guides/ios/getting_started/installation/mac/
We also have some guides for the Visual Studio side of things which may help if you continue have issues connecting:
https://developer.xamarin.com/guides/ios/getting_started/installation/windows/
I think that you need to install Xamarin Studio for Mac.
Related
I've just updated visual studio 2019 to the latest build (16.9.4) and now my xamarin.ios won't deploy to the simulator. We're receiving the following error:
Unable to connect to Mac Server with Address='192.168.0.94' and User='My user'. The build can't continue without a connection MyApp.Mobile.iOS
Nothing has changed other then the VS update and have tried on another dev's computer and it's doing the same thing after update. Everything has been updated on the mac side as well to match the VS update.
Any ideas?
Try this
1)On Windows open Visual Studio: Tools=>Options=>Xamarin=>Other and click in Check Now
2)On Mac open Xamarin Studio Community (https://www.xamarin.com/download) Xamarin Studio Community=>Check for Updates... (and download last one)
After updates check if it works fine. If it still doesn't work then try to delete everything from
%localappdata%\Xamarin\MonoTouch
For more information you can checkout this link.
I'm trying to connect to mac in visual studio.
I did every step and I also connected to the Xamarin account.
In the Xamarin Mac Agent it found the mac which means I did the steps.
So sharing preferences are correctly configured at mac.
But when I try to connect to mac, after entering username and password it shows the following error:
Couldn't connect to MacBook.local. Please try again.
I don't know how I can solve this problem.
The Xamarin.iOS SDK and Xcode both need to be installed on the Mac you're trying to connect to. See Installing Xamarin.iOS on Windows and the step-by-step installation guides.
Once Xamarin is installed on both Mac and PC, you can check the log files for hints about any connectivity issues you may encounter.
Mac – ~/Library/Logs/Xamarin-[MAJOR.MINOR]
Windows – %LOCALAPPDATA%\Xamarin\Logs
You may also find the Connection Troubleshooting and general diagnostic info guides helpful.
After I installed Xamarin Studio v5.10 (build 871) on my Mac (OS X Yosemite v10.10.5), I can't find the Xamarin.iOS Build Host, even when using Spotlight. I want to pair Visual Studio with my Mac development machine. I found an answer on the Xamarin forums:
I was having the same issue on my Mac and was able to resolve the
issue by deleting the following directories/folders and reinstalling.
/Applications/Xamarin Studio.app /Developer/MonoTouch
/Developer/MonoAndroid /Library/Frameworks/Mono.framework
/Library/Frameworks/Xamarin.Mac.framework
/Library/Frameworks/Xamarin.Android.framework
Hope this helps.
Thx, Leland
I performed these steps and have uninstalled Xamarin on the Mac and then reinstalled, but this hasn't helped. What can the problem be and how can I solve it?
OS-X Build Host has become OS-X Build Agent:
Overview
The Xamarin Mac Agent provides a way for Visual Studio
developers writing Xamarin.iOS apps to connect to a Mac effortlessly
to control the building, deployment, and running of apps. Visual
Studio connects to the Mac over SSH, which provides several benefits,
including:
Ref: http://developer.xamarin.com/guides/ios/getting_started/installation/windows/xamarin-mac-agent/
The Xamarin.iOS Build host has evolved into the Build Agent.
You now don't have to start a separate application to be able to connect to your Mac and compile your iOS apps.
Here's how to do it;
Enable Remote login on you Mac.
With Spotlight search for Remote Login and tick the Remote Login box on the left side.
Select which users or user groups can connect.
Go to your Visual Studio and find the new icon, click it
Find your host, it's probably just one and click connect. Enter your credentials (if you need to) and wait for the chain icon to appear on the right of the selected host.
From now own it should connect automagically. Just wait for the screen in the Visual Studio toolbar icon to turn green.
For more info check the Xamarin documentation.
Also when you're connecting this way for the first time on an existing Xamarin project be sure to do a clean and rebuild to avoid errors.
I have the latest alpha builds of xamarin recently uninstalled everything on both mac and pc (windows 8). I get the error "select a valid device" when trying to run the ios sample application.
I have set the platform to iphonesimulator, i am connected to the mac. The following is the log when building
Starting Agent IDB 4.0.0.1566...
Connected to the MacBook-Pro.local (192.168.1.120) with Limited support.
An error occured starting the IDB 4.0.0.1566 agent: The operation has timed out.
Starting Agent Build 4.0.0.1566...
Agent IDB 4.0.0.1566 is running
Agent Build 4.0.0.1566 is running
Starting Agent Designer 4.0.0.1566...
An error occured starting the Designer 4.0.0.1566 agent: The operation has timed out.
The Xamarin Mac Agent could not be fully started. Agents not started: Designer 4.0.0.1566. Please check the logs for more details.
Agent Designer 4.0.0.1566 is running
Connected to the Mac MacBook-Pro.local (192.168.1.120) with Full support.
The application works fine when run on the mac and the simulator works fine. I have the latest xcode and can run an application from xcode as well.
Properties of IOS project - i do see this error "failed to obtain profile information from the build server. Please, check the connectivity with the mac build host' > i have done this an everything looks connected.
Ideas??
For those that end up here in April 2018, there is currently an issue with Xamarin and xcode 9.3.
ensure that your mac has xcode 9.2 (I also had to completely remove 9.3), which you can download from the apple developers site.
un-install xcode 9.3 on mac
install xcode 9.2 on mac
restart mac
in visual studio - forget mac connection, re-connect when mac back up.
update*
Apparently this is fixed in Visual studio update 15.6.5, although not personally test myself yet
You should have development certificate installed on your MAC. Also your device should be provisioned for development. For details check here
Sounds like your root issue is that the Xamarin Mac Agent isn't connecting. Without this connection, most all iOS development cannot be run.
I can suggest two things.
1) reboot the mac - sometimes when you uninstall/reinstall or something goes wrong processes can be orphaned which cause problems, simple reboot might resolve your problem.
2) try the troubleshooting steps here: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/
XCode 9.3 was recently released by Apple, that version is not compatible with the current Xamarin SDK. Xamarin has released updates to their SDK that fix the issue on both the Mac and PC. You can get them here: https://releases.xamarin.com/preview-xcode-9-3-beta-2-ios-11-3-macos-10-13-4-support-preview-2/
I am a new user to xamarin.
I installed Xamarin.IOS on visual studio. When i create a new project and want to build it, vs says that you should select a "mac build host".
Is it necessary for building ios application?
May I do that in a simulator? because I don't have a Mac machine.
Thank you very much.
You must have a Mac to act either as a build host or your primary development machine in order to build an iOS app. The iOS build process relies on the Apple iOS SDK and tools that are ONLY available from Apple on OS X.
If you are completely refused any idea of buying Mac here the solution. In my case I use next tools:
Windows 8.1 x64
Visual Studio 2015 Update 3 (Xamarin inside)
VMWare Workstation 12
Inside VMWare Workstation:
OS X 10.11 El Capitan
XCode 7.1 (Xamarin's developers recommend 7.3)
Xamarin Community 6.0.1
General advice is to use latest versions and updates of all tools.
Install El Capitan as it described here.
On VM install latest XCode (you probably need Apple ID for it) and iOS part of Xamarin Studio. If Xamarin Installer generates error on downloading JDK 7 then download and install it before Xamarin Studio
Enable Remote Login in MacOS settings and allow access for your user
Configure VM network as NAT and make port forwarding for port 22
Run Visual Studio on Windows and create iOS project.
Connect to Mac using IP 127.0.0.1 and type your Mac's username and password
Select appropriate iOS emulator in Visual Studio and run.
Here the proof pic
Regarding this topic I've tried many approaches. I spent too many hours trying to install hackintosh on a VM on my MS Windows 10 system... I tried a lot of receipts... I could install it free times but I couldn't reboot it none of the tries. ##£%&!!!!
Before this anoying "R&D" I searched for a cheap second hand Mac and I also searched after but without getting good results...
Today I want to share my next step with you all before starting with it because I guess (I hope indeed) is going to be the solution for my next 4-6 months to do iOS developments with xamarin using VS on a Windows machine without owning a Mac, use a Mac hosting already prepared for dev purposes:
https://www.macincloud.com/checkout/managed.html
For setting up Xamarin iOS with Windows and Visual Studio, you'll need to have MAC to run / test the application in the simulator.
Please review the limitation here http://developer.xamarin.com/guides/ios/getting_started/installation/windows/
You can either install MAC OS X in your windows PC using VM Ware and setup MAC OS