AppCelerator Live View Console.log无法正常工作[英] Appcelerator Live View Console.Log not working

本文是小编为大家收集整理的关于AppCelerator Live View Console.log无法正常工作的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

奇怪的一个.自从升级到iOS10和最新的Appcelerator SDK(5.5.50)以来,当我在iPhone 6s上测试时,我什至无法获得简单的console.log("hi!")显示器中的任何内容,使用Liveview.

我尝试将其更改为Ti.API.info("hi!") - 我认为这是旧的方法 - 无济于事.如果我将其更改为alert("hi!"),则可以正常工作.但是,它不如开发必须在连接的设备上测试的事物(在我的情况下)进行测试时console.log.

.

我已经搜索了此信息,加上在Stackoverflow上进行了大量搜索.

可能是如此新,以至于还没有人注意到.

任何人可以帮忙吗?

推荐答案

这是一个已知问题.苹果通过记录数据的方式改变了一些东西. AppCelerator SDK必须适应此更改.我很确定他们会尽快解决.您必须等待更新.

问候

编辑:这是对应的JIRA票(/timob-23786 )

本文地址:https://www.itbaoku.cn/post/1938240.html

问题描述

Odd one this. Ever since upgrading to iOS10 and the latest Appcelerator SDK (5.5.0), I can't get even a simple console.log("hi!") to show anything in the console when I'm testing on an iPhone 6s Plus connected to my Mac via USB, using LiveView.

I've tried changing it to Ti.API.info("hi!") - which I believe is the old way to do it - to no avail. If I change it to alert("hi!"), that works fine. However, it's not as useful as console.log used to be when developing things which MUST be tested on a connected device (the camera, in my case).

I've Googled this, plus done extensive searching on StackOverflow.

It may be that this is so new that no-one has noticed yet.

Can anyone help?

推荐答案

It's a known issue. Apple changed something with the way they log data. The Appcelerator SDK has to be adapted to this changes. I'm pretty sure they'll fix it asap. You'll have to await an update.

Greetings

Edit: Here is the corresponding jira ticket (https://jira.appcelerator.org/browse/TIMOB-23786)