貌似那个功能有点问题,不知道是不是我的环境有问题,不使用 packagename 启动程序,会报如下错误:
uncaughtException: EXDEV, cross-device link not permitted '/root/tmp/appium114220-28070-7dwazd.tmp' date=Thu Mar 20 2014 15:29:14 GMT+0800 (HKT), pid=28070, uid=0, gid=0, cwd=/usr/local/lib/node_modules/appium, execPath=/usr/local/bin/node, version=v0.10.25, argv=[node, /usr/local/bin/appium], rss=58417152, heapTotal=52044288, heapUsed=18513152, loadavg=[0.35302734375, 0.25927734375, 0.41357421875], uptime=107287.038264064, trace=[column=18, file=fs.js, function=Object.fs.renameSync, line=543, method=fs.renameSync, native=false, column=10, file=/usr/local/lib/node_modules/appium/lib/devices/android/adb.js, function=null, line=465, method=null, native=false, column=7, file=child_process.js, function=ChildProcess.exithandler, line=635, method=exithandler, native=false, column=17, file=events.js, function=ChildProcess.EventEmitter.emit, line=98, method=EventEmitter.emit, native=false, column=16, file=child_process.js, function=maybeClose, line=743, method=null, native=false, column=5, file=child_process.js, function=Process.ChildProcess._handle.onexit, line=810, method=ChildProcess._handle.onexit, native=false], stack=[Error: EXDEV, cross-device link not permitted '/root/tmp/appium114220-28070-7dwazd.tmp', at Object.fs.renameSync (fs.js:543:18), at /usr/local/lib/node_modules/appium/lib/devices/android/adb.js:465:10, at ChildProcess.exithandler (child_process.js:635:7), at ChildProcess.EventEmitter.emit (events.js:98:17), at maybeClose (child_process.js:743:16), at Process.ChildProcess._handle.onexit (child_process.js:810:5)]
而且报错后会把 app 路径下的文件删除掉。。。