问题描述
奇怪的一个.自从升级到 iOS10 和最新的 Appcelerator SDK (5.5.0) 后,我什至无法获得一个简单的 console.log("hi!")
来在控制台中显示任何内容使用 LiveView 在通过 USB 连接到我的 Mac 的 iPhone 6s Plus 上进行测试.
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.
我尝试将其更改为 Ti.API.info("hi!")
- 我认为这是旧的方法 - 无济于事.如果我将其更改为 alert("hi!")
,则效果很好.但是,在开发必须在连接的设备(在我的例子中是相机)上测试的东西时,它不像过去的 console.log
那样有用.
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).
我在谷歌上搜索过这个,并在 StackOverflow 上进行了大量搜索.
I've Googled this, plus done extensive searching on StackOverflow.
可能是因为它太新了,以至于没有人注意到.
It may be that this is so new that no-one has noticed yet.
有人可以帮忙吗?
推荐答案
这是一个已知问题.Apple 改变了他们记录数据的方式.Appcelerator SDK 必须适应这种变化.我很确定他们会尽快修复它.您将不得不等待更新.
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.
问候
这是相应的jira票(https://jira.appcelerator.org/browse/TIMOB-23786)
Here is the corresponding jira ticket (https://jira.appcelerator.org/browse/TIMOB-23786)
这篇关于Appcelerator Live View Console.Log 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!