Use of undeclared type 'DKAsset', Use of unresolved identifier 'DKImagePickerController'?

限于喜欢 提交于 2019-12-24 17:24:27

问题


I want to select multiple images from gallery. so for that I have installed DKImagePikerController Using pod.

For that in podfile.

pod 'DKImagePickerController' use_frameworks!

After that I have followed their demo example for implement gallery in app. but I got follwoing error.

1.Use of undeclared type 'DKAsset'. 2.Use of unresolved identifier 'DKImagePickerController'?

I am following this lib and code. https://github.com/zhangao0086/DKImagePickerController


回答1:


First of all you need to import framework. for that,

import DKImagePickerController

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.



来源:https://stackoverflow.com/questions/35270303/use-of-undeclared-type-dkasset-use-of-unresolved-identifier-dkimagepickercon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!