当info.plist包含隐私请求时,MSMessageLiveLayout在记录中冻结/崩溃 [英] MSMessageLiveLayout freeze/crash in transcript when info.plist contains privacy request

查看:122
本文介绍了当info.plist包含隐私请求时,MSMessageLiveLayout在记录中冻结/崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用MSMessageLiveLayout发送消息的iMessage扩展.我希望该分机访问麦克风.在info.plist中添加具有正确值的隐私-麦克风使用说明"会导致在关闭扩展名时,记录中的liveMessage冻结/崩溃. 从info.plist中删除隐私"请求后,成绩单中的liveMessages可以按预期工作...

I have an iMessage extension using MSMessageLiveLayout for messages. I want the extension to access microphone. Adding in info.plist "Privacy - Microphone Usage Description" with correct value causes the liveMessages in transcript to freeze/crash when the extension is closed. Removing the Privacy request from info.plist makes the liveMessages in transcript to work as intended...

要重现此问题,只需在此处下载Apple的冰淇淋" iMessage示例扩展名: https://developer.apple.com/documentation/messages/icecreambuilder_building_an_imessage_extension

To reproduce the problem, just download Apple's "ice cream" iMessage sample extension here: https://developer.apple.com/documentation/messages/icecreambuilder_building_an_imessage_extension

然后修改以下两行代码: 在"func composeMessage(...)"中添加以下内容:

then modify the following 2 lines of code: In the "func composeMessage(...)" add the following:

 let layout = MSMessageLiveLayout(alternateLayout: alternateLayout)

然后在info.plist中添加以下任意一项:

then add in the info.plist any of the following:

  • 隐私-相机使用说明
  • 隐私-位置始终使用说明
  • 隐私-麦克风使用说明

请注意,以下隐私请求不会导致崩溃/冻结:隐私-使用时的位置用法说明"

note that the following privacy request does not cause the crash/freeze: "Privacy - Location When In Use Usage Description"

我希望退出扩展名不会导致脚本中的每个liveMessage冻结/崩溃.但这就是发生的情况.任何帮助都将受到欢迎...

I expect that quitting the extension does not cause each liveMessage in transcript to freeze/crash. But this is what happens. Any help would be welcome...

推荐答案

我在使用相机plist条目时遇到了同样的事情.

I have experienced the same thing with the camera plist entries.

这是XCode错误,已由Apple确认.您对此无能为力-尝试在其中使用XCode进行调试时,一旦将这些条目保存在其中,便会崩溃.

It's an XCode bug, confirmed by Apple. You cannot do anything about it - once you have those entries in there you have crashes when you try to debug with XCode.

在我的 iMessage示例集合中,我有一个

In my collection of iMessage samples I have a sample which explores this a bit further. It uses different plists so the Debug doesn't have camera permission.

这篇关于当info.plist包含隐私请求时,MSMessageLiveLayout在记录中冻结/崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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