Hello,
Welcome to Microsoft Q&A!
- The best solution : Start by updating your external dependencies to their latest versions since this situation might already be solved in a newer release. If not, contact the maintainer(s) of the libraries and ask about their update plans , or replace the libraries totally.
- Alternatively , if you're using
Xamarin.Forms
, enable the managed linker (on the whole project or, at least, on the dependency using UIWebView) so it might be removed, if not referenced. That will solve the problem but might required additional work to make your code linker-safe. - A forceful solution is to
add --optimize=force-rejected-types-removal
to your project's Additional mtouch arguments. This will remove traces ofUIWebView
from the application. However, any code that refers to the type will not work properly (expect exceptions or crashes).
- Alternatively , if you're using
Refer to docs : https://learn.microsoft.com/en-us/xamarin/ios/user-interface/controls/webview#removal.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.