React Native BUILD SUCCEED, but “No devices are booted.”

后端 未结 9 1578
一整个雨季
一整个雨季 2021-01-31 20:57

Here\'s my environment:

➜  AwesomeProject node --version
v6.3.0
➜  AwesomeProject npm --version
3.10.3
➜  AwesomeProject react-native --version
react-native-cli: 1.0.         


        
9条回答
  •  忘掉有多难
    2021-01-31 21:21

    I have just solved the same question.

    First try using react-native run-ios instead of the sudo react-native run-ios.

    Next try the following:

    In file AppDelegate.m, change

    jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
    

    To:

    jsCodeLocation = [NSURL URLWithString:@"http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true"];
    

    (This may be a security issue with iOS 9);

    Next try to reset your env.

提交回复
热议问题