我正在使用未解决的标识符错误,这对我来说非常模糊,它出现在下面的行中:

但是,"LUTToNSDataConverter“是在以下文件中初始化的:
//
// LUTToNSDataConverter.h
// imglyKit
//
// Created by Carsten Przyluczky on 29/01/15.
// Copyright (c) 2015 9elements GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface LUTToNSDataConverter : NSObject
+ (nullable NSData *)colorCubeDataFromLUTNamed:(nonnull NSString *)name interpolatedWithIdentityLUTNamed:(nonnull NSString *)identityName withIntensity:(float)intensity cacheIdentityLUT:(BOOL)shouldCache;
/*
This method reads an LUT image and converts it to a cube color space representation.
The resulting data can be used to feed an CIColorCube filter, so that the transformation
realised by the LUT is applied with a core image standard filter
*/
+ (nullable NSData *)colorCubeDataFromLUT:(nonnull NSString *)name;
@end我可以说,当我将整个文件夹从Pods项目目标拖到我的常规项目目标时,这个变量就变得“未解决”了,这样Xcode就可以识别它了。我该怎么解决这个问题?
发布于 2015-08-25 07:04:50
编译器不知道LUTToNSDataConverter是什么?所以请像这样使用
为前任
LUTToNSDataConverter(). colorCubeDataFromLUTNamed()// Pass your arguments here希望它能帮到你。
发布于 2015-08-25 07:02:49
您需要添加一个桥接头,因为您使用的是Objective类:
之后,您可以像这样将导入添加到该文件中:
#import "YourHFile.h"(来源)
https://stackoverflow.com/questions/32197346
复制相似问题