Thursday, September 11, 2025
HomeiOS Developmentmaui - Can't connect with an Web web site in iOS simulator

maui – Can’t connect with an Web web site in iOS simulator


I developed a MAUI app for ios that sends requests to a RESTful service.
Once I attempt to hook up with it from the app, this error happens:

{System.Web.Http.HttpRequestException: An error occurred whereas sending the request. —> System.Web.WebException: Error: TrustFailure — Finish of inside exception stack hint — at System.Web.Http.NSUrlSessionHandler.SendAsync(HttpRequestMessage request, …}

I’ve used postman utility and the decision to the service Works from the Mac machine.

There isn’t any specifically permission I would like to provide to iOS, proper?

How can I clear up it?

EDIT:

Full data.plist file:





    LSRequiresIPhoneOS
    
    UIDeviceFamily
    
        1
        2
    
    UIRequiredDeviceCapabilities
    
        arm64
    
    UISupportedInterfaceOrientations
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationLandscapeRight
    
    UISupportedInterfaceOrientations~ipad
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationPortraitUpsideDown
        UIInterfaceOrientationLandscapeLeft
        UIInterfaceOrientationLandscapeRight
    
    XSAppIconAssets
    Property.xcassets/appicon.appiconset
    NSLocationAlwaysAndWhenInUseUsageDescription
    ¿Podemos usar tu ubicación todo el tiempo?
    NSLocationWhenInUseUsageDescription
    ¿Podemos usar tu ubicación sólo cuando la app se esté usando?
    NSCameraUsageDescription
    Esta aplicación necesita acceso a la cámara para tomar fotos.
    CFBundleDisplayName
    Tiempo y Asistencia Desytec
    Web
    
    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments