Nativescript教程:livesync出错
我在macosx上运行nativscript 2.0(typescript+angular2教程)。 我只是运行了Nativescript教程:livesync出错,nativescript,Nativescript,我在macosx上运行nativscript 2.0(typescript+angular2教程)。 我只是运行了tnsrunios--emulator命令,然后按ctrl-c 然后运行以下命令:tns livesync ios--emulator--watch 结果: . . . Transferring project files... Successfully transferred all project files. Applying changes... **Error Comman
tnsrunios--emulator
命令,然后按ctrl-c
然后运行以下命令:tns livesync ios--emulator--watch
结果:
.
.
.
Transferring project files...
Successfully transferred all project files.
Applying changes...
**Error Command failed: killall sampleGroceries2.app
No matching processes belonging to you were found
while executing killall sampleGroceries2.app.**
我已经测试了,按照说明,我对livesync选项没有任何问题
您是否已更新到NativeScript 2.0.0?我注意到此错误记录在以前的版本1.7.1中。
如果需要全局更新NativeScript版本,可以运行
npm install -g nativescript
完成该步骤后,您可以使用以下命令从项目中删除/添加平台文件夹
tns platform remove ios
tns platform add ios
同时删除node_modules文件夹并重新运行
tns run ios --emulator
要检查当前的NativeScript版本,可以执行
tns --version
{N}的最新官方版本中有一些livesync修复程序,因此现在您的命令应该以受尊重的方式运行-让我们知道该解决方案是否适用于您的案例