Running react-native app on iOS device using offline bundle

前端 未结 6 1161
广开言路
广开言路 2020-12-14 09:37

The official React Native documentation to run app on iOS device using offline bundle says

Open ios/YourApp/AppDelegate.m

Uncomment the line, jsCo

6条回答
  •  悲哀的现实
    2020-12-14 10:15

    For me the problem was that I had fiddled with the Info.plist and removed the localhost app transport security exception. Adding this back into Info.plist fixed it for me:

    NSAppTransportSecurity
    
    
        NSExceptionDomains
        
            localhost
            
                NSExceptionAllowsInsecureHTTPLoads
                
            
        
    
    

提交回复
热议问题