I developed an iOS game a few years back using Xamarin Studio in conjunction with MonoGame and C#. I haven't checked on the app in a long while, but recently discovered it is no longer working (crashes on startup).
After doing some digging it looks like it is because Xamarin has moved on to the Xamarin.iOS Unified App. When I try to migrate the app though, I am running into a lot of problems.
Upon migration, my MonoGame.Framework reference is no longer valid. This means that all of my Microsoft.Xna references are also broken, which is the core of my game.
So my question is, what step am I missing? How do I get these references to work after upgrading to the Xamarin.iOS Unified API?
Related
Is it possible to publish a .NET Maui app to Apple AppStore and Google Play or do we need to wait till .NET Maui is finalized?
As already pointed out in the comments, you absolutely can, while it's not officially recommended for obvious reasons. However, I do know of .NET MAUI apps that are already in the store today.
Technically it is definitely possible, mostly because at that level a .NET MAUI app isn't much different from a Xamarin.Forms or even regular iOS or Android app. It's still a .ipa or .aab file that needs to be produced.
I have been looking into the process of creating something distributable. You can find my writeups here for Android, iOS and from those you can find the links on there for Windows and macOS if that is what you need.
Additionally I made videos about them which you can find here for Android and for iOS and lastly the one for Windows. The one for macOS is not there yet at the time of writing.
Ideally we want to make it all work through dotnet publish at some point in the future, but we're not quite there yet. Same story for a UI for doing this within Visual Studio.
Prism for Xamarin Forms does support iOS applications, but, as far as I can tell, does not yet support applications for the Mac itself. Two years ago Prism logged this as an issue, but shortly afterward closed it with the comment "Done". If such support does exist, where can I find it documented? If it does not, does the Prism team still expect to add it?
Unable to find any documentation in Prism Library of support for Xamarin.Forms.MacOS.
From this blog post of one of the Prism developers:
Whats New Since 6.3 You may be thinking that NetStandard is great and
all but that isn't really new. As part of Prism updating to Xamarin
Forms 2.3.5, you will now have full support for working with Prism on
macOS applications.
So technically it should work.
We are having trouble publishing our x86/x64 UWP Xamarin Forms app to the Microsoft Store.
The app got rejected because the certification team cannot test the .appxupload package because it crashes on startup.
The app only crashes when installed from the store built .appxupload package. The .appxbundle in _Test works fine and we are using it for in-house distribution and sideloading via HockeyApp.
At first we assumed that the crash was due to faulty packaging as our app uses the desktop-bridge feature to bundle a small WPF executable with it. Our first instinct was to remove the desktop bridge part and test the packaging again. After removing it, we had the same issue, the .appxupload crashed on start.
We took it one step forward and just created a new solution with a new Xamarin Forms Template project (VS 15.7.1). Without changing a single line of code we packaged the visual studio xamarin forms uwp template project for store upload. The surprise here is that the generated .appxupload also crashes exactly the same way on startup.
We decided to find out more by experimenting on the Visual Studio XF uwp template:
Update XF to 3.1 -> still crashes
Update .NETCore.UniversalWindows to 6.1.5 -? still crashes
Remove XF from the project completely (including Xamarin.Forms.Init(..)) -> no more crash, but also no more content without Xamarin forms ... :(
We have researched the following posts which seem to be related to this issue:
https://bugzilla.xamarin.com/show_bug.cgi?id=59538
https://developercommunity.visualstudio.com/content/problem/150965/xamarin-forms-project-uwp-app-dies-on-start-when-i.html
Could not load file or assembly 'System.Private.CoreLib...'
Some of the above posts were explaining that even though the .appxupload crashes when installed locally the when downloaded and installed from the Microsoft store the package will run without a problem. Our problem with this part is that our .appxupload package needs to be tested by Microsoft before the store publish because of the desktop bridge permission. Because it crashes when locally testing it cannot be published.
Based on our experiments with the Visual Studio Xamarin forms uwp template project this seems to be an issue of UWP and Xamarin Forms together.
We are not sure how to proceed. We need to get the app running from the .appxupload package so that it can be tested by the store team. Do you have any ideas/solutions for this issue?
I Recently upgraded to the latest Visual Studio first 15.6.1 and then 15.6.2 from 15.4.2 as 15.4.2 was failing to build a release build for me of the app and builds in general were very unstable. I am working on as a proof of concept app.
An upgrade to the latest versions did not help, so I decided to create a smaller app that hopefully built and slowly add functionality to attempt to discover when the process fails. Creating a cross=platform, mobile app, now failed to show the option for UI technology and is then missing all the required references for Xamarin.Forms. I do not see, anywhere that this is a new Feature, so I assume this is a bug.
Is it possible to develop a portable Xamarin mobile (Android) application with MonoDevelop on Linux?
I'm using Linux Mint, I have installed MonoDevelop with the guides MonoDevelop linux and MonoDevelop Ubuntu-Debian.
After installing, I have expected, when creating a project, to find out a project type similar to "Xamarin Android Application" or something.
The only project type mentioning cross-platform + Xamarin is this:
The guides on Xamarin site only applies to Xamarin Studio. I am lost, is there something broken in my installation or it is simply impossible to use MonoDevelop to develop Xamarin for mobile Android applications (and I totally misunderstood)?
In case, can you point me to a guide or resource about developing Xamarin portable mobile apps with MonoDevelop?
PS: There is one Stack Overflow question with last comment of year 2012, and, since then, lot things have changed: Xamarin merge with NET.foundation, the open source release of Xamarin SDK.
Clearly I have misunderstood about Linux support availability. I have thought the question should be re-formulated. I hope this match the policies.
Not yet, Xamarin Android will be available in Linux , but ETA is still unclear.
https://github.com/xamarin/xamarin-android