Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error MT0026 on Xamarin Forms

I'm trying to run an iOS simulator from my Xamarin Forms project. I had it working a month ago, and when I returned to it, I get the following error:

error MT0026: Could not parse the command line argument '-sdk': Version string portion was too short or too long.

I updated all the NuGet packages and updated Xamarin itself.

The only thing I can find on the issue is here: Xamarin.iOS Errors

Also, my mac is up-to-date and I made sure xcode was up-to-date as well.

like image 330
Edie W. Avatar asked Apr 26 '17 05:04

Edie W.


People also ask

What does mt0076 mean in Xamarin?

MT0076: No architecture specified (using the --abi argument). An architecture is required for * projects. This usually indicates a bug in Xamarin.iOS; please file a new issue on github with a test case.

What is inotifydataerrorinfo in Xamarin?

INotifyDataErrorInfo: available in Xamarin.Forms. When implemented it permits specifying custom validation supporting multiple errors per property, cross-property errors and entity-level errors; DataAnnotations decorate the data models using attributes which specify validation conditions to be applied to the specific field;

Why am I getting mt0091 error in Xamarin iOS?

MT0091: This version of Xamarin.iOS requires the * SDK (shipped with Xcode *). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs). Xamarin.iOS requires the header files, from the SDK version specified in the error message, to build your application.

What are the errors in Xamarin mt8001 and mt8002?

MT7067: Error saving '*': *. MT8001: Version mismatch between the native Xamarin.iOS runtime and monotouch.dll. Please reinstall Xamarin.iOS. MT8002: Could not find the method '*' in the type '*'.


2 Answers

I had exactly the same error when I first started Visual Studio on MacOS. For me the list of device emulators was empty. The only available device listed was "Generic Device". After I restarted Visual Studio all available simulation devices turned up:

enter image description here

like image 97
zmechanic Avatar answered Sep 28 '22 01:09

zmechanic


Actually this appears whenever you make an important OS update. Why? Because usually something gets changed into Xcode and one needs to open the app to agree whatever they want you to agree.

After that, restart Visual Studio and everything is back to normal.

like image 38
Corneliu Serediuc Avatar answered Sep 28 '22 02:09

Corneliu Serediuc