如何调试Siri(意图)扩展? [英] How do I debug my Siri (Intents) extension?

查看:65
本文介绍了如何调试Siri(意图)扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建 Siri ,又名 Intent扩展.我确实知道我可以在启动后将调试器附加到正在运行的进程,但是,我从未看到过该进程.我确实已将我的应用程序的授权设置为活动,并且扩展程序必须至少运行一段时间,Siri显示清晰的响应.

I'm building a Siri aka Intents extension. I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at least for some time, Siri is showing clear responses.

通过Apple文档,您应该将Siri作为主机应用程序运行扩展方案.但是,如果我尝试在设备上什么都没有发生,则它永远都在等待连接.苹果公司提到,第一个连接可能需要"几分钟"/a>",但不是几个小时...

By the Apple documentation, you should run the Extension Scheme with Siri as host app. However, if I try that nothing happens on the device, it's waiting to attach for ever. Apple mentions the first connection can take "several minutes", but not hours ...

有什么主意我要去哪里或者如何实现与调试器的连接?还是至少有一些控制台输出?

Any idea where I'm going wrong or how to achieve a connection to the debugger? Or at least some console output?

推荐答案

只需选择您的siri扩展方案并点击运行按钮,然后xcode将提示您选择的应用程序列表,只需选择您的应用程序即可,以了解更多详细信息,请查看以下文章: http://jamesonquave.com/blog/adding-siri-to-ios-10-apps-in-swift-tutorial/

just select your siri extension scheme and hit run button, then xcode will prompt a list of applications for you to choose, just choose your app, for more details, please checkout the article:http://jamesonquave.com/blog/adding-siri-to-ios-10-apps-in-swift-tutorial/

这篇关于如何调试Siri(意图)扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆