apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 987 forks source link

Plugins stop working in version 6.X #940

Closed phyr0s closed 4 years ago

phyr0s commented 4 years ago

Bug Report

Problem

many plugins have stopped compiling Example create a cordova application and add the plugin --> https://github.com/apache/cordova-plugin-file-transfer

Command or Code

Add platform with this plugin (https://github.com/apache/cordova-plugin-file-transfer, just an example because a lot of plugins are not working), and try to build (cordova build ios --device)

Environment, Platform, Device

iOS platform

Version information

Cordova 9 Cordova-ios 6.X NodeJs 10 xCode 11.5

Checklist

timbru31 commented 4 years ago

cordova-ios@5 --> cordova-ios@6 is a major version bump - that indicates it contains breaking changes. The file-transfer plugin is deprecated since 2017. You'll need to ask other plugin authors to update their plugins.

Edit1: Most of the changes we have done are a requirement by either Google and/or Apple. In order to remain compliant in their ecosystem(s) we need to introduce breaking changes (such as removing all UIWebView code or using storyboard launch images)

phyr0s commented 4 years ago

@timbru31 thanks for the quick response and for the info about that the file-transfer plugin is deprecated.

brodycj commented 4 years ago

You'll need to ask other plugin authors to update their plugins.

Given the potential impact of the changes in cordova-ios@6, I think it would have been good to highlight more clearly the increased risk of broken plugins in the release notes https://cordova.apache.org/announcements/2020/06/01/cordova-ios-release-6.0.0.html