xmarkclx / cordova-plugin-photo-library-sism

A fork of the plugin of the same name. Will always be updated as long as I work with projects that need it.
MIT License
21 stars 8 forks source link

Errors while build with Xcode & cordova build #4

Closed thekhegay closed 4 years ago

thekhegay commented 4 years ago

Command: ionic cordova build ios

Error:

[ERROR] An error occurred while running subprocess cordova.
cordova build ios --device exited with exit code 65.

Xcode Errors

.../cordova-plugin-photo-library-sism/PhotoLibraryService.swift:587:39: 'UIApplicationOpenSettingsURLString' has been renamed to 'UIApplication.openSettingsURLString'

/UIKit.UIApplicationOpenSettingsURLString:3:12: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2
.../cordova-plugin-photo-library-sism/PhotoLibraryService.swift:836:20: 'UIImageJPEGRepresentation' has been replaced by instance method 'UIImage.jpegData(compressionQuality:)'

/UIKit.UIImageJPEGRepresentation:2:13: 'UIImageJPEGRepresentation' was obsoleted in Swift 3
.../cordova-plugin-photo-library-sism/PhotoLibraryService.swift:833:20: 'UIImagePNGRepresentation' has been replaced by instance method 'UIImage.pngData()'

/UIKit.UIImagePNGRepresentation:2:13: 'UIImagePNGRepresentation' was obsoleted in Swift 3

Ionic Info Output

Ionic:

   Ionic CLI                     : 5.4.13 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 12 other plugins)

Utility:

   cordova-res : 0.8.1
   native-run  : 0.3.0

System:

   ios-deploy : 1.10.0
   ios-sim    : 8.0.2
   NodeJS     : v12.13.0 (/usr/local/bin/node)
   npm        : 6.14.5
   OS         : macOS Catalina
   Xcode      : Xcode 11.4.1 Build version 11E503a

Any plans to update plugin?

thekhegay commented 4 years ago

I have created fork & committed fixes: update PhotoLibraryService.swift