问题
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