我们可以在iOS设备中使用appcelerator Tianium liveview吗?
我试图在appcelerator studio的iPhone设备上以实时查看模式运行我的应用程序,但出现错误:我们可以在iOS设备中使用appcelerator Tianium liveview吗?,ios,titanium,appcelerator,appcelerator-titanium,Ios,Titanium,Appcelerator,Appcelerator Titanium,我试图在appcelerator studio的iPhone设备上以实时查看模式运行我的应用程序,但出现错误: [LiveView] File Server unavailable. Host Unreachable @ 192.168.1.122:8324 [LiveView]Please ensure your device and computer are on the same network and the port is not blocked. 条件: 1.设备:配备IOS 9.
[LiveView] File Server unavailable. Host Unreachable @ 192.168.1.122:8324
[LiveView]Please ensure your device and computer are on the same network and the port is not blocked.
条件:1.设备:配备IOS 9.2.1的iPhone 5S
2.钛合金SDK 5.1.1.GA
3.关闭防火墙并连接到同一wifi
4.xcode 7.2
5.Appcelerator Studio 4.4.0
6.最新appcelerator CLI
部署到iOS设备时不能使用live view吗
注意:当我使用iOS模拟器和android设备时,它可以正常工作。我刚刚查看了LiveView代码,确认当iOS应用程序中的LiveView代码无法看到计算机上运行的LiveView服务器时,会发生此问题。您声称您的计算机和设备位于同一网络上,并且防火墙已关闭。我想接下来要检查的是LiveView服务器是否正在运行 LiveView位于Appcelerator Studio目录中。在我的机器上,它位于
/Applications/Appcelerator\u Studio/plugins/com.Appcelerator.titanium.liveview.core\u 1.1.0.1445037865
您可以通过运行以下命令手动检查服务器状态:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server status
实际上,您可以传入几个其他子命令:start、stop和restart。如果上面的status命令显示服务器正在运行,请使用以下命令停止它:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server stop
再次构建应用程序,Studio将再次启动LiveView服务器,希望这次它能正常工作。我认为您不需要手动启动LiveView服务器。我甚至不确定这是否有效
我希望这能解决您的问题。我刚刚查看了LiveView代码,并确认当您的iOS应用程序中的LiveView代码无法看到您的计算机上运行的LiveView服务器时,会发生此问题。您声称您的计算机和设备位于同一网络上,并且防火墙已关闭。我想接下来要检查的是LiveView服务器是否正在运行 LiveView位于Appcelerator Studio目录中。在我的机器上,它位于
/Applications/Appcelerator\u Studio/plugins/com.Appcelerator.titanium.liveview.core\u 1.1.0.1445037865
您可以通过运行以下命令手动检查服务器状态:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server status
实际上,您可以传入几个其他子命令:start、stop和restart。如果上面的status命令显示服务器正在运行,请使用以下命令停止它:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server stop
再次构建应用程序,Studio将再次启动LiveView服务器,希望这次它能正常工作。我认为您不需要手动启动LiveView服务器。我甚至不确定这是否有效
我希望这能解决您的问题。谢谢您的回答,我尝试了您的解决方案,但仍然没有成功[ERROR]:脚本错误找不到模块:localeStrings for architecture:ARM64我认为这是错误,我发现了相同的情况非常感谢。我能够在没有Studio的情况下用这个提示修复我的工作流。我已经创建了一个.sh脚本,用于在构建新服务器之前停止服务器。然后用我的配置和--liveview立即触发了appc运行,并发挥了巨大的作用。现在,服务器每次都能正确启动。有了这个,我终于能够使用LiveView和Sublime文本进行开发了。美丽的。例如,现在直接在iPad上进行测试时,我只需要执行./adhoc.shIn当使用
服务器状态检查时,它会抛出多个正在运行的实例(超过15个)。当我发出服务器停止命令时,所有这些实例都消失了,下一个版本能够启动服务器,没有任何问题。感谢您的回答,我尝试了您的解决方案,但仍然没有任何运气[错误]:脚本错误找不到模块:localeStrings for architecture:ARM64我认为这是个错误,我发现了相同的情况,非常感谢。我能够在没有Studio的情况下用这个提示修复我的工作流。我已经创建了一个.sh脚本,用于在构建新服务器之前停止服务器。然后用我的配置和--liveview立即触发了appc运行,并发挥了巨大的作用。现在,服务器每次都能正确启动。有了这个,我终于能够使用LiveView和Sublime文本进行开发了。美丽的。例如,现在直接在iPad上进行测试时,我只需要执行./adhoc.shIn当使用服务器状态检查时,它会抛出多个正在运行的实例(超过15个)。当我发出serverstop命令时,所有这些实例都消失了,下一个构建能够启动服务器,没有任何问题。