Xamarin Studio do not start after install - xamarin

Trying to install and run Xamarin Studio on my Mac, unfortunately this is not going well, please help. I have 7 years cross platform and app development behind me so I should now the basics.
I downloaded Xamarin Studio for Mac on the site, a dmg file was clicked and installation begun. I have gone through all steps and after problems with disk space (25 GB??) it was done.
Moving on to start Xamarin Studio and nothing happens. Absolutely nothing. I tried reboot my mac, I tried several times to start, but nothing.
(It was installed and required to enter my Admin password so it should have been installed as admin)
I use Yosemite 10.10.5 at the moment
I have Xcode installed version 7.1.1
I have Android SDK installed from before (but now also a new SDK :( )
When I read at the site there are not consistent information, at the requirements overview it says latest Xcode is required, on the actual table it is recommended. Anyone know if this is ACTUALLY my problem?
I have a problem to upgrade at this point as it can produce production problems for the deliveries I am about to do this week, at the same time I need to have Xamarin started.
Have anyone been running Xamarin with Xcode 7.1.1?? And build apps to iOS?
I was kind of expecting Xamarin Studio to at least start and let me know.
By the way I have been trying to find the answer here but cannot find anything, also at Google of course, let me know if you know a resource..
Hope I was enough specific

1) Open Console.app, "Clear the Display" and launch Xamarin Studio and review the Messages for failures/issues
2) Open a shell (Terminal or iTerm2) and run Xamarin Studio and review any messages shown. A properly functioning Xamarin Studio launched to it's main window this way will not produce any messages in the shell.
/Applications/Xamarin\ Studio.app/Contents/MacOS/XamarinStudio
3) Check the Xamarin Studio logs:
cd ~/Library/Logs/XamarinStudio-6.0/
rm *.log
/Applications/Xamarin\ Studio.app/Contents/MacOS/XamarinStudio
Review any .log files created
Xamarin System Requirements:
macOS

I'm running El Captain 10.11.6 and what solved the problem to me was to follow #SushiHangover's step 2 that is to open Terminal and run Xamarin from the cli, then I got this:
$ /Applications/Xamarin\ Studio.app/Contents/MacOS/XamarinStudio
Cannot open assembly '/Applications/Xamarin Studio.app/./XamarinStudio.exe': No such file or directory.
After that I googled it and read this bugzilla thread that made me remove Xamarin Studio app:
$ rm -rf /Applications/Xamarin\ Studio.app
And and reinstall it from the original installer.
All worked fine after this. :)

Related

Can't run a Xamarin App in iPhone Simulator from Visual Studio For Mac

In short: I am unable to run my app in the iPhone Simulator. There is no "Play button" (the triangle), only a Debugger button (hammer):
As you can see above I have "Generic Simulator". When I click on it, there is no list of various iPhones/iPads to choose from:
If I choose Android, I am able to run the app:
I have XCode installed. I ran XCode once.
I also installed the Command Line tools.
I created a new Xamarin Forms App:
Here are my iOS build options:
I am able to run the Simulator separately:
Creating an App in XCode and running in the Simulator works:
info.plist:
Prefrences -> SDK Locations -> Apple
Build -> Configurations:
Here is the kicker though. If I run a Xamarin App on my Windows machine using the iPhone Simulator on the Mac, it works!
What do I need to do so I can run my app inside the Simulator vis Visual Studio for Mac?
Few options you can worth to check. #WorldOfBasti suggested options plus following.
Configuration
Right click on the solution -> options -> Configurations -> Configuration manager -> ProjectName.iOS with Debug|iPhoneSimulator should be checked or if configuration "ProjectName.iOS with Debug|iPhoneSimulator" is not available then add this from General tab
Apple SDK path
Check Apple SDK path is set properly (Preference -> SDK Location -> Apple). It should have green tick mark with Xcode version and SDK path location.
Minimum system version (Deployment Target)
Change Deployment Target to minimum version (ie, lower than your simulator version)
Switch debug <-> release
Today I have also faced same issue which you are facing. I have switched debug to release, iOS to Android. Then reverted back to iOS and debug from the top device selection status bar. Then Simulator option was appearing. So, might be UI updated issue in Visual studio for mac. Please give a try.
I assume that you tried the basics things like restarting your Mac, etc. So here are a few things, that might solve your problem:
Check your build configurations, here is a good video
Close VS for Mac, start Xcode and create a test project which you run on a simulator. If it works try again in VS for Mac
Close VS for Mac, goto Xcode -> Preferences -> Accounts and download the manual profiles of your developer account. Try again in VS for Mac
Clean your project: In VS for Mac, goto Build -> Clean All. Then Close VS for Mac, goto your project folder and delete in "yourprojectname" and "yourprojectname".iOS all bin and obj folders. Try again
If all of this doesn't work, I would try to reinstall it (if you have any important projects, make a backup):
Uninstall VS for Mac and Xcode
Install Xcode again from the App Store
Install Visual Studio for Mac
Hopefully it works..
Looking at the Visual Studio for Mac logs, specifically the IDE log, I found this line ... 'The target name of simulated device could not be added because it's already cached'.
You are welcome to read through all of this ... but you may just want to go down to the Addendum 2 (final?) and see if that works for you ... it ends up being simpler and quicker than anything else I have found.
So, at first, I started clearing the cache with a 'xcrun simctl erase all' command from Terminal, and when I started Visual Studio for Mac I could run a Xamarin App, but launching the simulator took quite a bit of time.
So hare's something I found works that you might want to try ...
Close iOS Simulator on Mac (if any).
Close ALL copies of Visual Studio that are connected to the Mac ... either on the Mac itself or on another computer connected to the Mac (if any).
Start Visual Studio for Mac.
If you can't run a Xamarin App, Close Visual Studio for Mac.
Launch the Simulator manually (I have it in the Dock, so I just click it) ... wait for it to fully startup.
Now close the Simulator (from the Simulator menu).
Now restart Visual Studio for Mac.
If you still can't see the simulator devices to run on ... try the above steps one more time (this time you should only have to close Visual Studio for Mac followed by manually starting the Simulator, waiting for it to start, and then quitting the Simulator and finally restarting Visual Studio for Mac).
It still isn't great, but this has (so far) always worked for me. And the Simulator starts up substantially quicker then if I did a 'xcrun simctl erase all' command from Terminal.
Addendum: Most of the time the above works. But occasionally I still have to clear the cache from the Terminal with 'xcrun simctl erase all' command.
Also: I have also found (although maybe it's just my imagination) that clearing out the Visual Studio for Mac temporary .binlog files that are written in the 'T' folder will sometimes fix the problem (if you look at an IDE log from Visual Studio for Mac; right after the 'The target name of simulated device could not be added because it's already cached' message, you should see some .tmp files being created. The directory where they were created is the 'T' folder I'm talking about). I sometimes delete the tmp*.binlog and tmp*.tmp as a last ditch effort before using the 'xcrun simctl erase all' command to try to get back to where Visual Studio for Mac will see the iOS Simulator Devices.
Finally: This is really starting to feel like a bug in Visual Studio for Mac startup (or possibly during a iOS project load). The reason I say that is I can ALWAYS see the iOS Device list from Visual Studio for Windows (as long as I can connect to the Mac). In addition, I can leave Visual Studio for Mac running (even hidden) and test an app on the iOS Simulator from Windows, then, leaving the iOS Simulator Running on the Mac, run an App on Visual Studio for Mac. If there really were a 'caching issue' with the Simulator it seems to me I should have problems running anything on the Mac after using the iOS Simulator from Windows, but it always works. For now, I'm working on a single Xamarin Project on the Mac (and I don't use the Mac for anything else), So I just let Visual Studio for Mac 'open at login' (Dock setting) and automatically 'load previous solution on startup' (Visual Studio for Mac setting), hide Visual Studio for Mac (Dock Setting) and if I need it, Visual Studio for Mac is already loaded and able to see iOS Devices to run Apps on with a quick click on the Dock Icon.
Addendum 2 (final?): I have now found that if I just close a solution that I have open that shows 'Generic Simulator' and re-open it without exiting Visual Studio for Mac (sometimes I have to do it multiple times ... I think I've counted up to 5 times before it finally worked), it will start showing the device list and I can run the iOS app in the Simulator. I don't even have to close the Simulator if it's already running, which saves a bunch of time.
It still feels like a bug to me, I don't see why I would have to close/open a solution multiple times to get the iOS devices listed and be able to run an iOS app. What really gets me is if I reboot the Mac, don't open the Simulator and start Visual Studio for Mac, then open a solution, I still have to go through the close/re-open solution steps... sometimes more than once. The simulator is not set to auto start or anything like that. But, at least, it's getting simpler, and takes less time, to get to a point where I can run an iOS app.

Xamarin Studio (V6.2.0.1829) is only running in the background

I have tried all the ways to install Xamarin Studio on my Windows 10 pro laptop with VS2015 installed. My Xamarin for VS2015 is working. I would like to try Xamarin Studio for some apps. I have downloaded the Xamarin Studio for Windows (6.2.0.1829, the newest). After a successful installation (resolved many issues related to prerequisites), the Xamarin Studio would only run in background. Since I started it many times, there were no Xamarin interface, I checked the process manager and found each time it was running in background). I have searched solutions for 1 day, and evaluated all suggestions, including re-install, repair, reloading, restart. I still could not fix the problem. Please help me to make it run in foreground.
try to update gtk to 2.12.26 .this works for me

xamarin is not working even after full installation

After successful installation of xamarin, not able to start working on the project, showing the window, asking for Installation of xamarin again.
SDKs are already installed for android and ios
If Your Not mention your system is MAC or Windows. If Windows. ,then please uninstall visualstudio and xamarin .then restat the machine and try again Xamarin Download Docs . Note :(In Win 10 OS, keep Minimum 100GB space in C drive ).

Error in Publishing the xamarin android code

I am trying to publish the xamarin android code in release mode using visual studio through Tool >> Android >> publish android app option. But it's giving issue while i publish the code
I have tried again and again but code is giving issue please check the circle error message.
Before 4-5 days back i am following this procedure then it was working fine but now i am trying to publish the app then it's giving issue
Please provide me solution of this issue so that i can upload my app on google play
Try below steps:
Close the XAmarin Studio/ Visual Studio
Go to the Android SDK platform-tools directory in Command Prompt
type adb kill-server
type adb start-server.
Restart your device/emulator
Re-run your code. Hopefully it should work now.
Uninstall Java 7 jdk and install Java 8 jdk. Reboot, recompile and retry.

Xamarin Studio OSX and Windows Builds

I have a beginner question regarding Xamarin Studio. I wrote a prototype app in Windows Form using Visual Studio and I now want to flesh it out and deploy to both Windows desktop and OSX. Someone suggested using Xamarin Studio but I have run into an issue. When I try to build on a Mac for OSX all I get is a .exe. I am new to OSX development and am having trouble figuring out how to continue. Is there a build configuration I am missing? There doesn't seem to be any options for build targets.
Thank you for your time
the .exe can be run with Mono, but what you may be looking for is in the "Build" menu (at least, in the latest Beta), then "Archive for publishing" then "Sign and Distribute"

Resources