使用未声明的类型“DKAsset",使用未解析的标识符“DKImagePickerController"? [英] Use of undeclared type 'DKAsset', Use of unresolved identifier 'DKImagePickerController'?
问题描述
我想从图库中选择多张图片.为此,我使用 pod 安装了 DKImagePikerController.
I want to select multiple images from gallery. so for that I have installed DKImagePikerController Using pod.
在 podfile 中.
For that in podfile.
pod 'DKImagePickerController'使用_frameworks!
pod 'DKImagePickerController' use_frameworks!
在那之后,我按照他们的演示示例在应用程序中实现了图库.但我遇到了以下错误.
After that I have followed their demo example for implement gallery in app. but I got follwoing error.
1.使用未声明的类型DKAsset".2.未解析标识符'DKImagePickerController'的使用?
1.Use of undeclared type 'DKAsset'. 2.Use of unresolved identifier 'DKImagePickerController'?
我正在关注这个库和代码.https://github.com/zhangao0086/DKImagePickerController
I am following this lib and code. https://github.com/zhangao0086/DKImagePickerController
推荐答案
首先你需要导入框架.为此,
First of all you need to import framework. for that,
导入 DKImagePickerController
import DKImagePickerController
之后在导航器>选择 pods>Build Settings>Architectures>Build Active Architecture Only -> 为所有 pods 设置为 No.(选择Target"下列出的所有 pods 并为Build Active Architecture Only"设置No")
after that under Navigator>select pods>Build Settings>Architectures>Build Active Architecture Only -> Set to No for all pods.(select all pods listed under "Target" and set "No" for "Build Active Architecture Only")
清理并构建您的项目,您就完成了.
Clean and build your project and you are done.
这篇关于使用未声明的类型“DKAsset",使用未解析的标识符“DKImagePickerController"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!