-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple net8.0-ios app deployed to with Visual Studio "local device" => "No class inheriting from a valid Application Delegate found in ..." #20658
Comments
We only support deploying MAUI projects to a local iOS device on Windows, so how were you able to do it? In theory VS shouldn't even give you an option to deploy to a local device unless you're using a MAUI project. |
Hi @gentledepp. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi @gentledepp. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. |
Hello! I have a repro for you: https://github.com/gentledepp/POC_AvaloniaMauiApp01/tree/master/POC_AvaloniaMauiApp01/POC_AvaloniaMauiApp01.iOS I guess the reason is that I am using avalonia together with MAUI here. The reason being, that Avalonia misses some important controls (camera and barcode scanner) which I have to "borrow" from Maui. |
The problem is that when using a local device on Windows, it's required that the app's AppDelegate class subclasses MAUI's MauiUIApplicationDelegate class, and your AppDelegate subclasses AvaloniaAppDelegate: Connecting to a remote Mac from Windows, or using a Mac directly, works fine though. |
Is there any chance you could add the option to, instead of needing to subclass |
That would be a question for our Windows team - please file this using the Visual Studio for Windows feedback tool Feel free to reference this issue in your feedback (and vice versa, that way we can quickly route it to the right team for their evaluation). |
Steps to Reproduce
Expected Behavior
The app starts and shows "hello avalonia" or the like
Actual Behavior
We get the error
No class inheriting from a valid Application Delegate found in ...
Environment
Version information
Build Logs
msbuild.zip
Example Project (If Possible)
https://github.com/gentledepp/Repro_AvaloniaiOSCrash
use any of the 3 sample solutions (they are all "File-New" Avalonia XPat projects.
Even more interesting - there is a project AvaloniaMauiHybrid with two sample solutions
So I presume there is some "magic" going on to launch MAUI and Xamarin apps on a local device which does not support any other libraries such as Avalonia?
The text was updated successfully, but these errors were encountered: