What is the meaning of 'No bundle URL present' in react-native?

前端 未结 30 2320
庸人自扰
庸人自扰 2020-11-30 17:22

When I run a react-native project, I get a error no bundle URL present , but I don\'t know what mistakes I do, I was very confused.

30条回答
  •  失恋的感觉
    2020-11-30 17:37

    Be sure that your ATS settings are correct in .plist file.

    You can find the file at /ios/{{project_name}}/Info.plist

    localhost must be defined as exception request target like this:

    NSAppTransportSecurity
        
        NSExceptionDomains
        
            localhost
            
                NSExceptionAllowsInsecureHTTPLoads
                
            
        
    
    

    *(dont forget to remove this on release version..)

提交回复
热议问题