将本机构建反应到设备失败

时间:2016-04-25 13:28:17

标签: ios build react-native

我正在尝试构建iOS设备,构建模拟器工作正常。 这就是我得到的:

  

未捕获错误错误:TypeError:查找时不支持的文件类型(/ Users / NAME / git / vex / vex-app react / VexAppReact / node_modules / image-size / lib / index.js:35:9)
  at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:93:22
  at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/image-size/lib/index.js:50:9
  at /Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/graceful-fs/graceful-fs.js:43:10
  在FSReqWrap.oncomplete(fs.js:82:15)
  参见日志/var/folders/h8/42h3w_qd2r9fvpwy99jsnjq40000gn/T/react-packager.log
  在SocketClient._handleMessage(SocketClient.js:144:23)
  在BunserBuf。 (SocketClient.js:53:42)
  在emitOne(events.js:90:13)
  在BunserBuf.emit(events.js:182:7)
  在BunserBuf.process(/Users/NAME/git/vex/vex-app-react/VexAppReact/node_modules/bser/index.js:289:10)
  在/ Users / NAME / git / vex / vex-app react / VexAppReact / node_modules / bser / index.js:244:12
  在nextTickCallbackWith0Args(node.js:452:9)
  at process._tickCallback(node.js:381:13)
  命令/ bin / sh失败,退出代码为1

我假设图像资产有问题。我自己没有安装image-size节点模块,所以我怀疑该模块有什么问题,但可能是这样。

欢迎任何建议。

1 个答案:

答案 0 :(得分:0)

解决方案:显然你无法将png文件添加到本机ios build

相关问题