我的应用程序在 xcode 11.4 中找不到 sirikit intentdefinition 类 [英] My app does not find sirikit intentdefinition classes in xcode 11.4

查看:62
本文介绍了我的应用程序在 xcode 11.4 中找不到 sirikit intentdefinition 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用从出来就支持了几个 siri 快捷方式,好久没碰了.我的项目在 11.3.2 中编译和构建,但不在 11.4 中.

My app has had support for a couple of siri shortcuts since it came out, haven't touched it in a long time. My project compiles and builds in 11.3.2 but doesn't in 11.4.

我得到的错误是不再找到应该从我的意图定义文件生成的类,以及我在我的意图处理程序中引用的类.

The errors i get is that the classes that are supposed to be generated from my intentdefinition file, and that i am referencing in my intenthandlers are no longer found.

例如,在我的意图定义文件中,我有一个名为MyStatus"的自定义意图.

For example, in my intentdefinition file i have a custom intent called "MyStatus".

然后我有一个 MyStatusIntentHandler:

I then have a MyStatusIntentHandler:

#import "MyStatusIntent.h"
@interface MyStatusIntentHandler<MyStatusIntentHandling> : NSObject

在 11.4 中,我找不到MyStatusIntent.h"文件.在 11.3.1 及更早版本中,它构建得很好.

In 11.4, i get an "MyStatusIntent.h" file not found. In 11.3.1 and earlier it builds fine.

我不太擅长项目配置和结构,所以我有点不知从哪里开始挖掘.如果有人有任何建议,以及 11.4 中的哪些内容可能是新的并给我带来问题,我全都听着.

I am not super great at project config and structure, so i'm a bit at a loss as to where to start digging. If anyone has any pointers, and what in 11.4 that might be new and giving me problems, I'm all ears.

推荐答案

我已经深入了解,并与 Apple 支持人员进行了交谈.事实证明,它与遗留构建系统"有关.

I have dug around, and also talked to Apple Support. Turns out, it has to do with the "legacy build system".

一旦我在 xcode 项目设置中切换到新的构建系统,我就可以再次构建项目.我认为如果他们仍然支持遗留系统(他们这样做),它应该可以工作,但是很好.

Once i switched to the new build system in xcode project settings, i could build the project again. I would argue that if they still support the legacy system (which they do), it should work, but oh well.

在此处阅读如何切换:https://help.apple.com/xcode/mac/current/#/dev396bc94c7

这篇关于我的应用程序在 xcode 11.4 中找不到 sirikit intentdefinition 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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