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.
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.
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;
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.
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 '*'.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With