xamarin for mac couldnot create or open xamarin.form project - macos

MarshalError: [NOTE: this exception originated in the server.]
Couldn't get signature for selector 'supportedRuntimes'

I had the same error, and it seems it was because some Mac updates (I had just updated the SO and XCode), I updated Xamarin (Xamarin Studio > Check for Updates...) and it worked just fine.

Related

Xamarin.iOS for iOS16

I have implemented an iOS app based on Xamarin.iOS.
Now I like to upgrade the app for iOS16.
There is a dev blog from Microsoft which says that Xamarin supports already iOS16:
https://devblogs.microsoft.com/xamarin/xamarin-ios-16-android-13-updates/
Visual Studio and Xcode have been updated to the latest versions.
After all the updates I am able to debug the app on an iOS16 simulator.
But the installation of the .ipa file on an iPhone 8 with iOS16 fails with an error "unable to install the app - try it later".
I recognized that there was no update of the nuget package "Xamarin.Forms" which I had to update on earlier iOS upgrades (e.g. to iOS15).
Currently I am not yet able to migrate to .NET6 and .NET Maui.
Does anyone know how to upgrade an old Xamarin.iOS app to iOS16?
Update: The app runs on iOS16 but the installation by itms-services does not work. I cannot find any changes in Apples changelog.

Visual Studio for Mac, Xamarin iOS Publishing Failed popup

I am trying to publish a Xamarin iOS app from Visual Studio for Mac. (ver. 17.0.2). Xcode ver. 13.4.1 . I have the app set up correctly (I think) in App Store Connect. The app is just for iPhone and iPad.
I am getting the following results. It is a picture in VS for Mac so I cannot copy and paste the text into an xml file.
Can anyone tell me what the issue is with my Publish and how to fix it?
You can try to increase the CFBundleVersion(build number) in your Info.plist like below and try to publish again.
<key>CFBundleVersion</key>
<string>2.0</string>
The error looks like an authentication error.
Did you try the same credentials you are using to push your app in https://appleid.apple.com/ ?
If they are still valid, you might just need to sign out and back into XCode / Visual studio for Mac with you valid apple identifier.
(Edited - Added my comment to this answer as it had additional value)
If the credentials works, try uploading the same package using Apple's Transporter application (apps.apple.com/ca/app/transporter/id1450874784?mt=12). It accomplishes the same thing, however the error messages are clearer and more verbose. Hopefully this will help pinpoint the real issue

Xamarin Installer doesn't recognize installed Android SDK on my Mac

Apparently this is not a problem and someone proposed a solution that apparently works on Windows, this issue still exists on Mac.
Although the SDK installed by Android Studio on its default path (/Users/user/Library/Android) exists, Xamarin installer still wants to download a "private copy of android sdk":
Does anybody know a workaround?
I had this same issue. You can either add the path to the downloaded SDK by clicking the + button, or create folders in the default Xamarin location and then copy the sdk there.
Even though I tried this, a new Android SDK had just been released. The Xamarin installer was intent on downloading the latest version though, and I eventually ended up leaving it to complete.
I was able to change the Android SDK Location in Xamarin Studio to use what was already installed on my mac:
Xamarin Studio top right menu
Xamarin Studio Community
Preferences
SDK Locations
Android
Android SDK Location : Browse and choose the location of your android install; it's usually at the following location on a mac -> user/Library/Android/sdk

Multiple errors when creating Xamarin.Forms - Blank Xaml App (Xamarin.Forms Portable) or Android App

I using Windows 10 and am trying to create a Xamarin.Forms - Blank Xaml App (Xamarin.Forms Portable) project for the first time. I have Visual Studio 2015 Enterprise Update 3 installed and have tried uninstalling, reinstalling, and repairing multiple times.
When I create a project, I get the following errors:
"The name 'InitializeComponent' does not exist in the current context"
"Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled" - for App, Droid, UWP, WinPhone, Windows, and iOS
"The XamlCTask task failed unexpectedly..." - for UWP, WinPhone, Windows, and iOS
I tried this on my work computer and home computer and I had the same issues with both.
I have tried updating Xamarin.Forms nuget to the latest version and the created 36 errors with Droid. I also tried going to c:/users/[YOURNAME]/AppData/Local. Delete the Xamarin folder and that did not solve the issue.
I tried creating other Visual Studio projects that did not involve Xamarin and did not have any issues with those. I know the issue is with Xamarin (probably something with Android) itself, but I don't think that there is anything that I am missing from the install. I tried installing it by first installing Visual Studio, then going to Modify and adding Cross Platform. That didn't work, so I uninstalled then downloaded the Xamarin Installer. I had the same issues with both.
I created a blank Android App and that give me the warning - "aapt.exe" exited with code - 1073741849".
A blank app for iPhone does not give any errors or warnings.
Windows Phone does not give any errors or warnings either.
Any ideas of what I should check for so I can get this working?
Here is a picture of the error that I'm getting
Try updating to the latest version of Forms to get rid of the XamlC errors. Assuming you haven't updated, the template is using a modestly old version. As for the aapt error, if you have the N SDK preview installed, removing that should help. Alternatively, make certain that you have up through API 23 installed.

Xamarin: Unable to open the project with Method not found: System.__CanonEnumerator.NameAndPassword

I am trying to open a project pulled from the SourceTree and opened up with Xamarin. It was a Xamarin.Form project. Somehow I received this error:
Does anybody come across this problem.
Install latest xamarin fixed my own problem

Resources