I have a Xamarin.Forms project and there are also some .a libs(C++
) referenced in Xamarin.iOS project.
Xamarin.Forms project
------codes
Xamarin.iOS project
------codes
------.a libs(c++)
I do have the source code of those .a C++
libs.
The question is that is there a way that I can debug the C++ source code when running the Xamarin.forms project?
Update:
I just followed this document and the Xcode does not attach to the Xamarin app when it launches. Any idea?
Visual C++ for cross-platform mobile development enables the C/C++ and C# code to be built as part of the same solution, offering many advantages including a unified debugging experience. Microsoft has used C/C++ and Xamarin in this way to deliver apps such as Hyperlapse Mobile and Pix Camera.
You cannot debug C++ in a xamarin.ios project, it is not supported and was confirmed by Microsoft's dev team.
Possible solution will be to mix objectiv-C and C++ code together in your xcode application.
Otherwise you will not be able to debug native code.
reference for help:
Using native libraries in xamarin
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