Hello,
iOS 17 will not be supported with Xamarin. Xcode 14 SDKs (iOS and iPadOS 16, macOS 13) will be the final versions Xamarin targets. Please see Xamarin Support Policy.
I addition, you should specify a server address instead of localhost. And the "Http://localhost" request is considered as a non-secure site, you could try adding NSAllowsLocalNetworking
to the Info.plist file.
<key>NSAppTransportSecurity</key>
<dict>
<key> NSAllowsLocalNetworking</key>
<true/>
</dict>
Or disable ATS by adding NSAllowsArbitraryLoads
key.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Or specific domain to bypass ATS. See App Transport Security in Xamarin.iOS - Xamarin | Microsoft Learn
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.