【问题标题】:Can't find app icon in react-native ios build在 react-native ios 构建中找不到应用程序图标
【发布时间】:2020-02-01 01:46:47
【问题描述】:

我是从 react-native 官方网站安装的,如下所示。 (node.js 和 openJDK 的安装方式不同)

版本信息

  • Mac OSX:Mojave 10.14.6
  • XCode:版本 11.0 (11A420a)
  • 节点(nvm):10.15
  • 反应:16.9.0
  • 反应原生:0.61.1
  • react-native-cli : 2.0.1
  • 守望者:4.9.0
  • openjdk 11.0.1 2018-10-16
    OpenJDK 运行时环境 18.9(内部版本 11.0.1+13)
    OpenJDK 64 位服务器 VM 18.9(内部版本 11.0.1+13,混合模式)

XCode 首选项
位置 > 命令行工具:Xcode 11.0 (11A420a)
组件 > 模拟器:iOS 12.2、iOS 12.1、iOS 11.1、iOS 11.0

将配置从 podfile 更改为 platform: ios, '9.0'platform: ios, '11.0 '

代码执行

react-native init rntest
react-native run-ios

(我没有看到要启动的应用图标。)

守望者错误消息

Watchman:  watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2019-10-03T03:19:20,686: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/myname-state/sock! (No such file or directory)

如何运行 react-native 的初始应用?

【问题讨论】:

    标签: ios reactjs react-native


    【解决方案1】:

    你是否正确安装了watchman? 当你运行watchman --foreground --logfile=/dev/stdout时会发生什么

    请尝试输入以下命令:

    chmod 0700 /usr/local/var/run/watchman/yourname-state
    

    不要忘记将“您的姓名”更改为您的用户名或您那里的任何名称!

    【讨论】:

      猜你喜欢
      • 2016-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-26
      • 2020-04-03
      • 1970-01-01
      相关资源
      最近更新 更多