Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of unresolved identifier 'dismissFromPresenting' #33

Closed
NuGelaLiees opened this issue Nov 18, 2017 · 3 comments
Closed

Use of unresolved identifier 'dismissFromPresenting' #33

NuGelaLiees opened this issue Nov 18, 2017 · 3 comments

Comments

@NuGelaLiees
Copy link

NuGelaLiees commented Nov 18, 2017

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
Copy link
Owner

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

@atmamont
Copy link

Set swift 4.0 for this pod target in build settings

@vhesener
Copy link
Owner

@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.

@vhesener vhesener closed this as completed Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants