terikon / cordova-plugin-photo-library

Maintainer needed. Please contact if you're using this library in your project
MIT License
149 stars 295 forks source link

Fix method call failure in swift 4 #165

Closed amatakasap closed 4 years ago

amatakasap commented 5 years ago

The following errors occurred in my environment:

Cordoba: 8.1.2 Corduiosa: 4.5.5 Xcode: 10.2.1 Swift: 4.0

Error: Method 'getLibrary:' is not defined in plug-in 'PhotoLibrary'

It was corrected by attaching '@objc' to the method. https://stackoverflow.com/questions/42704176/swift-ios-plugin-method-not-defined-in-plugin-error-cordova