apache / cordova-ios

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

(iOS) Skip Cocoapods checkTool on non-darwin platform #1018

Closed AdamLak closed 3 years ago

AdamLak commented 3 years ago

Platforms affected

What does this PR do?

Ignore CocoaPods check and installation on non-darwin (macOS) platforms.

What testing has been done on this change?

Manual tests:

Tested on docker-linux: "Debian GNU/Linux 9 (stretch)"

Tested on Mac OS X:

cordova-ios: npm test - the results are below

Description

On Linux: try to add a plugin with Cocoapods dependency, e.g.:

Cordova throws an error instead of skipping the pod version check. With this patch, Cordova ignores checking and installing CocoaPods on non-darwin (macOS) platforms.

Checklist

AdamLak commented 3 years ago

Test results on Macbook:

image

The manual test is also completed.

AdamLak commented 3 years ago

Breaking changes:

https://github.com/apache/cordova-ios/pull/849/files#diff-90b3ce405bfd064ca284320d6b7b87a48eb392047134fc24f715b486dc6a6de7R70