为什么我在react-native/Examples/Movies 直接敲命令 react-native run-ios 会出现 Command `run-ios` unrecognized. Did you mean to run this inside a react-native project? 这样的错误?



  • 在react-native/Examples/Movies
    直接敲命令 react-native run-ios

    Command run-ios unrecognized. Did you mean to run this inside a react-native project?

    出现这样的错误。。

    在一开始的AwesomeProject的项目里敲 react-native run-ios
    是可以正常执行的
    react-native run-ios
    Found Xcode project AwesomeProject.xcodeproj
    Launching iPhone 6 (9.3)...


  • administrators

    官方demo的执行方式不一样(各种历史遗留原因


登录后回复