首页 > 解决方案 > auval:错误:类数据没有必填字段:== 组件类型

问题描述

尝试在 macOS 上编写 AUv3。我收到以下错误auval

VERIFYING CLASS INFO
ERROR: Class Data does not have required field:<type> == componentType

似乎某种元数据配置错误。

这是什么意思?

标签: macosaudiounitauv3

解决方案


这种解决方法对我有用:

- (NSDictionary<NSString *, id> *)getFullState {

    NSDictionary* pluginState = [data.controller getState];
    NSDictionary* superState = [super fullState];

    NSMutableDictionary* stateRes = [NSMutableDictionary dictionaryWithDictionary:pluginState];
    [stateRes addEntriesFromDictionary:superState];

    return stateRes;
}

推荐阅读