weexteam / article

This repos is a third party collection, and is not developed nor maintained by Apache Weex.
1.22k stars 141 forks source link

/Users/username/.xtoolkit/node_modules/weexpack/lib/utils/installIosDeploy.sh/: No such file or directory #208

Closed diqye closed 6 years ago

diqye commented 6 years ago
➜  HelloWorld weex -v
   v1.2.9
 - weexpack : v1.1.8
 - weex-debugger : v1.0.7
 - weex-builder : v0.3.14
 - weex-previewer : v1.4.6

运行的命令

HelloWorld yarn ios
yarn run v1.5.1
$ weex run ios
16:46:35 : npm run build
/bin/sh: /Users/username/.xtoolkit/node_modules/weexpack/lib/utils/installIosDeploy.sh/: No such file or directory
16:46:35 : Command run error, please check if there has the same issue here: https://github.com/weexteam/weex-toolkit/issues/337
16:46:35 : Error:Error: Command failed: /Users/username/.xtoolkit/node_modules/weexpack/lib/utils/installIosDeploy.sh/ --unsafe-perm=true --allow-root
/bin/sh: /Users/username/.xtoolkit/node_modules/weexpack/lib/utils/installIosDeploy.sh/: No such file or directory

    at ChildProcess.exithandler (child_process.js:273:12)
    at ChildProcess.emit (events.js:180:13)
    at maybeClose (internal/child_process.js:936:16)
    at Socket.stream.socket.on (internal/child_process.js:353:11)
    at Socket.emit (events.js:180:13)
    at Pipe._handle.close [as _onclose] (net.js:541:12)

另外一个问题 :

<template>
    <div>
  <text class="message">Hello</text>
  <a href="/components/HelloWorld.html"><text>jump</text></a>
  <a href="/index.html"><text>back</text></a>
</div>
</template>

跳转在Web上正常,但在IOS的weexPlayground上就抛JS exception

86: 2018-04-04 16:49:56.174 WeexDemo <Weex>[exception]bundleJSType:Weex
instanceId:43 bundleUrl:http://192.168.19.30:8081/components/HelloWorld.html?random=-141265667 errorCode:-9400 functionName: exception:[WX_KEY_EXCEPTION_WXBRIDGE] [native-bundle-main.js:6:148499] SyntaxError: Unexpected token '<'
Function@[native code]
Function@[native code]
native-bundle-main.js:1:148499
ei@native-bundle-main.js:1:148517
createInstance@native-bundle-main.js:1:151735
native-bundle-main.js:1:255299 userInfo:{
    jsMainBundleStringContentLength = 1535;
    jsMainBundleStringContentMd5 = b31df93a1d695d46d1f92d0a2940ac7e;
} jsfmVersion:0.24.4 sdkVersion:0.18.0 appVersion:2.2 osVersion:11.2.6 platform:iOS deviceModel:iPhone10,3

If you want to know more, please open weex MNT