自从我的应用发布以来,它已经支持了一些siri快捷方式,很长一段时间都没有碰过。我的项目在11.3.2中编译和构建,但不在11.4中。
我得到的错误是应该从我的intentdefinition文件中生成的类以及我在我的intenthandler中引用的类都不再找到。
例如,在我的意图定义文件中,我有一个名为“ MyStatus”的自定义意图。
然后我有了一个MyStatusIntentHandler:
#import "MyStatusIntent.h"
@interface MyStatusIntentHandler<MyStatusIntentHandling> : NSObject
在11.4中,我没有找到“ MyStatusIntent.h”文件。在11.3.1和更早的版本中,它可以很好地构建。
我在项目配置和结构上不是很出色,所以我对从哪里开始挖掘感到有些困惑。如果有人有任何指点,以及11.4中可能有什么新指针并给我带来麻烦,我将不胜枚举。
我也有这个问题。更新XCode后,对于* .intentdefinition文件中的类,构建将失败,并显示“错误:使用无法解析的标识符”。使用终端版本时,我收到此消息:
2020-03-26 17:11:21.874 xcodebuild[28391:166707] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEIntentBuilder/IDEIntentBuilder-16029/IntentsBuildSystem/XCCompilerSpecificationIntents.m:46 Details: Code generator extension identifier unexpectedly nil for <DVTDeclaredPrimitiveFileDataType:0x7f888398b950:49:'com.apple.sirikit.intentdefinition':'Intent Definition':-*-*-------**-----*--*----*----------------------*--------------> Object: <XCCompilerSpecificationIntents: 0x7f88838a4540> Method: -createCommandsforInputs:withMacroExpansionScope: Thread: <NSThread: 0x7f8892390940>{number = 13, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. ** BUILD FAILED **
现在我降级Xcode并将反馈添加到https://feedbackassistant.apple.com/feedback/7640678