Unexpected Error with Every Build - ios

I'm using VS 2017 Enterprise edition windows version. and it seems that for all my Xamarin.iOS projects out of nowhere every time I make a change on the code I receive this error without error code
Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
If I cleaned the solution it get fixed but it's time consuming to clean and build with every tiny change
I'm made sure I all my Xamarin both Mac and Windows VS mac and windows and xCode all on the latest version. and tried uninstalling them and installing them again.
I run out of things to try here and I'm not sure what else to try
UPDATE
I found out this error in the output panel
System.IO.IOException: Sharing violation on path /Users/user/Library/Caches/Xamarin/mtbs/builds/B2C.iPhone/2c6cfc4a248b6131cfeb02b9ab72ef81/obj/iPhoneSimulator/Debug/mtouch-cache/64/PreBuild/Accessibility.dll

Related

VS MAC: Workload installation failed: One or more errors occured. (The given key 'Microsoft.iOS.Sdk' was not present in the dictionary.)

I am trying to build a MAUI app on Mac OS using Visual Studio and I got an error that says to run dotnet workload install wasm-tools so I try running it in the Mac terminal in the app project folder and I get the following error.
Workload installation failed: One or more errors occured. (The given key 'Microsoft.iOS.Sdk' was not present in the dictionary.)
It runs on Visual Studio on Windows for the Android version. I've ensured that everything is updated, including the Mac itself and Visual Studio.
Please be noted that it is a known issue that is being tracked in dotnet workload fails with KeyNotFoundException after updating SDKs, you can try to run dotnet workload uninstall ios, after which you can try to run dotnet workload restore which finally should work.

Error HE0046. Rider fails to install iOS app

When trying to debug an iOS application in Rider (macOS) I get this error message in the run window.
error HE0046: Failed to install the app 'com.company.name' on the device 'iOS 13.5 (17F61) - iPhone 8': Failed to install the requested application
If I switch to Visual Studio it works fine. I am unable to find any more information regarding this error or why it is occuring. Anyone know why this might be happening?
One of possible ways to understand what is going on during deploy - read msbuild logs.
Go to Rider Preferences: Preferences | Build, Execution, Deployment | Toolset and Build and enable this logs there:
Then deploy the app and go to this folder and read msbuild logs. Probably there is a specific error there.
Also you can compare these logs to visual studio log. Anyway anytime you can fire an issue in Rider issue tracker:
https://youtrack.jetbrains.com/newIssue?project=Rider
I fixed my issue by re cloning my repo.

Building iOS app with Xamarin and Visual Studio 2019 - Error Wrong Version of Xcode installed when it isnt

I am trying out Xamarin on the Mac. I have an oldish Mac that DID have Xcode 10.1 on it.
I tried to build the iOS app and got the following error:
Severity Code Description Project File Line Suppression State
Error The Xcode version installed on the Mac (10.1) is not compatible with this version of Visual Studio. This may cause unexpected warnings or errors when building and deploying iOS projects. Please install Xcode '11.3' or visit the documentation to learn more. 0
I upgraded the Mac to Caitlin and upgraded Xcode to 11.3.
I can connect to the Mac and actually can run the iPhone simulator with the app, however, if I run the build, I STILL get the same error, like its not figured out how to update itself?
I have done the 'forget this Mac' and even renamed it on the network in case there was some legacy in a file somewhere.
I have dumped the solution and created a new one from the templates and still get the same error ... hair being torn out...
It might be one of those things that just goes away after a while I don't know. Any ideas?
Thanks.
EDIT * I realised that I wasnt clear. I am running VS2019 on a PC connecting to my Mac.

Xamarin downloading and updating error on MacOs Sierra VM

I have a MacOS Sierra VM on VMWare and I'am having problems to download from the Xamarin repositories.
When I first installed Xamarin on Mac, I did the manual install of all downloads from xamarin because the installer gave me an error.
I need to update to Xamarin.IOS 10.4.0 but it gives me an error on automatic installer and I cant download anything.
The manual installer on this page: https://store.xamarin.com/account/my/subscription/downloads
don't show the Xamarin.IOS 10.4.0 version that I need, the last it shows its 10.3.1
Im new on Mac Os but I have internet on my VM and I don't know what to do.
Any ideas?
Any help is worth. Thank you.
I found a manual installer on this url:
https://dl.xamarin.com/MonoTouch/Mac/xamarin.ios-10.4.0.123.pkg
I installed it whitout problems. I dont understand why this link isn't on: https://store.xamarin.com/account/my/subscription/downloads
i found it by myself.
The automatic installer of updates still dont working but this resolve my problem of the Xamarin.IOS 10.4.0.123 version.
Use Xamarin Studio for updates. Even if it fails to complete downloads, you can find all those URLs later in ~/Library/Caches/XamarinStudio-6.0/TempDownload/index.xml.
I also have problems with automatic updates and all the links to the latest versions are almost always missing on Xamarin's Downloads page.

Shows Access violation error while simulator loads

i just downloaded JDE 1.1 Plugin for eclipse,and i installed it and while i run the application ,on loading of simulator it shows access violation error.i tried running clean.bat ad i installed the files in Non Windows Directory.but no thing worked and it showed the same error.Any New Suggestions For cleating that error and i use JDK 1.6 UPdate 10
Regards
Rakesh Shankar.P
It sounds like the simulator you have is buggy or corrupted. Try installing a different simulator - you can grab them from here.

Resources