vhesener / Closures

Swifty closures for UIKit and Foundation
MIT License
1.74k stars 146 forks source link

Use of unresolved identifier 'dismissFromPresenting' #33

Closed NuGelaLiees closed 6 years ago

NuGelaLiees commented 6 years ago

when I clone it from cocoapod , xcode throw me this error ,when i want to use it on my project. "UIImagePickerController.swift" extension init function "didCancel: @escaping ( _ picker: UIImagePickerController) ...."

vhesener commented 6 years ago

I've just run a test project with cocoapods and don't see this. Can you help me reproduce this?

atmamont commented 6 years ago

Set swift 4.0 for this pod target in build settings

vhesener commented 6 years ago

@NuGelaLiees , like @atmamont said, the Swift Language Version must be set to 4.0.

If your project is set to Swift 3 or below, CocoaPods will automatically create the Pod with the same version (i.e. 3.2, the same as your project). Closures only supports Swift 4 and up.

If your project is Swift 4, simply go to the Pod project, select the Closures target, and change the Build Setting named "Swift Language Version" to 4.0.