Ios SDWebImage找不到SDImageCacheType

Ios SDWebImage找不到SDImageCacheType,ios,objective-c,swift,sdwebimage,Ios,Objective C,Swift,Sdwebimage,我面临的问题是无法使用SDWebImage库的完成块(用Objective-C编写)。我在几个地方使用了sd_setImageWithURL,但每次我收到未声明类型“SDImageCacheType”的错误使用。问题发生在两台不同的MacBook上。我检查了,缺失的类型在SDWebImage.h文件中声明(附在末尾)。我在用椰子荚 基本源代码 连接头基本线 播客文件 好吧,这是个很小的问题,我不知道为什么我之前没有弄明白。我需要做的就是添加一个导入。看起来如果使用声明的块,则需要添加它 imp

我面临的问题是无法使用SDWebImage库的完成块(用Objective-C编写)。我在几个地方使用了
sd_setImageWithURL
,但每次我收到未声明类型“SDImageCacheType”的错误使用。问题发生在两台不同的MacBook上。我检查了,缺失的类型在
SDWebImage.h
文件中声明(附在末尾)。我在用椰子荚

基本源代码 连接头基本线 播客文件
好吧,这是个很小的问题,我不知道为什么我之前没有弄明白。我需要做的就是添加一个导入。看起来如果使用声明的块,则需要添加它

import SDWebImage  

我遇到了与你相同的问题,你解决了吗?我确实找到了,看看我的答案。“导入SDWebImage”解决了错误。但我仍然不知道为什么桥接头导入不能使用SDWebimage的完成块?但是,我仍然能够使用库的另一个功能。
#import <SDWebImage/SDImageCache.h>
/*
 * This file is part of the SDWebImage package.
 * (c) Olivier Poitrey <rs@dailymotion.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

#import <Foundation/Foundation.h>
#import "SDWebImageCompat.h"
typedef NS_ENUM(NSInteger, SDImageCacheType) {
    /**
     * The image wasn't available the SDWebImage caches, but was downloaded from the web.
     */
    SDImageCacheTypeNone,
    /**
     * The image was obtained from the disk cache.
     */
    SDImageCacheTypeDisk,
    /**
     * The image was obtained from the memory cache.
     */
    SDImageCacheTypeMemory
};
pod 'SDWebImage's'
use_frameworks!
import SDWebImage