-
Notifications
You must be signed in to change notification settings - Fork 790
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
Add MAUI example app to csharp samples #4078
base: master
Are you sure you want to change the base?
Conversation
I am stuck with these error when trying to build the app:
|
Hello |
Hi again |
Hello @trengginas I've reproduced this when i'm used the global on a mac. And i've done the android sample on windows, which uses the ResolveNativeReference MSBuild Task for resolve the android libs. Try use windows while i'm working on a new android sample |
I'm using a Mac since it's not possible to build the iOS sample app on Windows. |
To "build on windows" you can use the ssh connection of visual studio to debug and run the iOS app on emulator inside Windows Environment. |
I also tried this on Mac and encountered the same problem as Riza. I downloaded the latest VS Code and followed the instruction here: Would you be able to make this work on Mac? Also, please provide us step by step detail (sorry, we are not familiar at all with MAUI project), something similar to #3584. |
@sauwming, for sure, i'll work on that today |
Thanks, it would be better if the sample apps can work on real devices, instead of simulators. If I tried following |
The steps for real devices are similar, but I'll improve the readme this week |
@sauwming I figure it out. The project has a conditional compilation in order to split platforme codes and resources |
Hi fowks |
I still haven't managed to make it work on a real device. On iOS, it will fail due to an extra opening parenthesis here: But even after I fixed it, it still failed with "undefined references" errors. |
that's is wird... the arch on condition is for simulators running on M1/M2 macs |
This covers #4077
I've created the sample application for both iOS & Android platforms, and some modifications on makefile to generate c# PINVOKE classes to the right project as well