Visual Studio: how to generate debug symbols for Xamarin Android apps - xamarin.android

I have a Xamarin.Forms app, created using Visual Studio, which includes Android and iOS projects.
The app is deployed via App Center, which supports crash logging, but this feature requires upload of the app's debug symbols.
The App Center documentation includes detailed information about how to locate and upload debug symbols for iOS projects, but there is no equivalent documentation for Android projects. I have also been unable to find this documentation online, either from Xamarin or elsewhere.
Can anyone please point me to a resource that explains Xamarin.Android debug symbolication (or tell me the procedure)?
Many thanks.

Related

Can't get App Icons to work for iOS with Xamarin

I have tried everything I have been able to find to get these app icons to work for iOS. No matter what I do, they will not appear, I am stuck with the default Xamarin icons. I even tried making an entirely new project to start fresh with it, and I am still stuck with the default Xamarin icons. I have to be missing something. I have all of the icons in the AppIcon Assets Catalog. The Info.plist is set to the AppIcon source. The Info.plist file is correctly pointing into the root folder for the Assets.xcassets folder. And finally based on other forum posts, I tried adding the Include Image Assets list to .csproj with no luck.
One thing I just realized is that I can completely delete the Assets folder from the root, and Visual studio does not care when it builds.
This is incredibly frustrating. There is zero reason for this so be so difficult. Thank you ahead of time, I am completely lost at this point.
This may be the answer and I am having the exact same issue and have invested many hours in trying to overcome this.
I have created a new Xamarin solution and replaced all Xamarin PNGs with my own in the Asset Catalog and removed ALL the Xamarin images. Still the application and Launch screen display the Xamarin logo. Baffling and frustrating!
I am running the following environment:
Microsoft Visual Studio Enterprise 2019
Version 16.10.4
Xamarin 16.10.000.234 (d16-10#ecaf29b)
Xamarin Designer 16.10.0.115 (remotes/origin/c750fbf1bde3c720d077f51640fe197c6dac7cbe#c750fbf1b)
Xamarin Templates 16.10.5 (355b57a)
Xamarin.Android SDK 11.3.0.4 (d16-10/ae14caf)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10#f39db25
ProGuard: Guardsquare/proguard/v7.0.1#912d149
SQLite: xamarin/sqlite/3.35.4#85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10#c5732a0
Xamarin.iOS and Xamarin.Mac SDK 14.20.0.24 (c4b89cddb)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
I am testing on an iPhone 7 Plus with iOS 14.7.1 and using the following default Nuget packages:
NETStandard.Library 2.0.3
Xamarin.Essentials 1.6.1
Xamarin.Forms 5.0.0.2012
Where is the Xamarin icon/logo coming from?
UPDATE: I found that the launch icons are coming from the Hot Restart feature of Visual Studio. I found the launch icon images in %HOMEPATH%\AppData\Local\Temp\Xamarin\HotRestart<version><code><project> folder. See https://learn.microsoft.com/en-us/xamarin/xamarin-forms/deploy-test/hot-restart for details. From the page:
Limitations
Only iOS apps built with Xamarin.Forms and iOS devices are currently
supported.
Only 64-bit iOS devices are supported. As of iOS 11, Apple no longer
allows running iOS apps on the 32-bit architecture (devices earlier
than iPhone 5s).
Storyboard and XIB files are not supported and the app may crash if
it attempts to load these at runtime. Use the HOTRESTART preprocessor
symbol to prevent this code from executing.
Static iOS libraries and frameworks are not supported and you may see
runtime errors or crashes if your app attempts to load these. Use the
HOTRESTART preprocessor symbol to prevent this code from executing.
Dynamic iOS libraries are supported.
You cannot use Xamarin Hot Restart to create app bundles for publishing. You will still need a Mac machine to do a full
compilation, signing, and deployment for your application to
production.
Asset Catalogs are currently not supported. When using Hot Restart, your app will show the default icon and launch screen for Xamarin
apps. When paired to a Mac, or developing on a Mac, your Asset
Catalogs will work.

xamarin Forms and webview not using the correct class

when I submit my app to testflight I get the following warning.
(I am using the latest version of Xamarin forms and Xamarin Essentials)
App Store Connect
Dear Developer,
We identified one or more issues with a recent delivery for your app, "XXXXXXXX" 18.8.0 (18.8.0.89). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
ITMS-90809: Deprecated API Usage - App updates that use UIWebView will no longer be accepted as of December 2020. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
Best regards,
Please read the document about UIWebView Deprecation and App Store Rejection (ITMS-90809) and make sure your project has meet all the requirement:
A preview version of the linker is available to fix this issue. To enable the preview, you will need to supply an additional argument --optimize=experimental-xforms-product-type to the linker.
The prerequisites for this to work are:
Xamarin.Forms 4.5 or higher. Xamarin.Forms 4.6, or higher, is
required if your app uses Material Visual.
Xamarin.iOS 13.10.0.17 or higher. Check your Xamarin.iOS version in
Visual Studio. This version of Xamarin.iOS is included with Visual
Studio for Mac 8.4.1 and Visual Studio 16.4.3.
Remove references to UIWebView. Your code should not have any
references to UIWebView or any classes that make use of UIWebView.

How to generate ipa using visual studio for ios

I am developing an app for iOS using visual studio (phone gap). Can any one please assist me how to generate IPA for the same
Best way is using official phonegap build site :
just upload your project and it will build files for you. totally easy.
https://build.phonegap.com
Be noticed that you need Apple developer account : 99$/year

compilation error when integrating Fabric Twitter Kit in android

I am an android developer. I have a problem by using Fabric SDK for android.
I tried to integrate Twitter-Kit for my own implemented application.
My application android build version is Android 2.3.3 (Api level 10).
After adding kit-libs to my project i am getting compilation error because of some theme and resources are missed.
I figured out the root cause for the issues.
That is because of kit-libs android jars required android build version Android 5.0 (Api level 21).
So some of the resources are missed when i integrated the kit-libs to my own project which is supporting from android api level 10.
Please suggest me how can i use this Twitter-Kit( kit-libs) for my application which is build on android api level 10.
I am suspecting the issue with supporting libraries are mismatched in my application and integrated fabric twitter kit library apps.
Please let me know how can i check the problem with supporting lib's are not.
Please find the attached screen for my problem.
Finally i got answer for my question.
Root cause:
It is the problem when i integrate Fabric Twitter Kit into my application.
Some mismatch happen for my application targetSdkVersion and twitter library projects targetSdkVersion.
While integrating twitter the following property manifestmerger.enabled=true was added in my project.properties file. Because of this property my application is mismatching targetSdkVersion.
Solution:
Just commented manifestmerger.enabled=true in project.properties file.
Make sure is there any dependencies with that property before you are going to make comment out(or remove). For me it was added after integrating twitter kit for my android application.

How to build Apple's GCC on Linux/Windows?

I don't have a Mac, but I have an iPhone. I want to develop applications for iPhone.
After some research I think I need just the headers and library from the free SDK, and a GCC build that supports ARM/Mach-O.
Apple released the code for GCC used in the iPhone SDK (they had to), So I think if I could build it on Windows or Linux, I can use it with the headers and libs from the SDK to develop iPhone apps.
I can then install the app on any Jailbroken iPhone.
How to build it on any non Apple machine?
Look into winchain - this tool builds the iphone chain on windows allowing you to compile iphone apps on windows:
http://code.google.com/p/winchain/wiki/HowToUse
-Adam
Check iOS Build Environment for Windows. From what I see it uses llvm compiler and is frequently updated. You can use it with your own editor or use a stand alone wizard to generate a Visual Studio project (works with both VC++ and VC++ express). The only disadvantage is that it has a demo version and requires donation for full version. However I expect you would be able to use the toolchain included in the demo without a problem.
I've downloaded the demo and played along with my own project and samples provided. It compiles just fine. Unfortunately I'm unable to test the results on my devices since none of them is currently jailbroken.

Resources