Skip to content

Commit

Permalink
(iOS) Skip Cocoapods checkTool on non-darwin platform
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamLak committed Nov 4, 2020
1 parent e92f653 commit 0e61326
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/templates/scripts/cordova/lib/check_reqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ function os_platform_is_supported () {
* @return {Promise} Returns a promise either resolved or rejected
*/
module.exports.check_cocoapods = toolChecker => {
return checkTool('pod', COCOAPODS_MIN_VERSION, COCOAPODS_NOT_FOUND_MESSAGE, 'CocoaPods');
if (os_platform_is_supported()) {
return checkTool('pod', COCOAPODS_MIN_VERSION, COCOAPODS_NOT_FOUND_MESSAGE, 'CocoaPods');
}

return Promise.resolve({
ignore: true,
ignoreMessage: `CocoaPods check and installation ignored on ${process.platform}`
});
};

/**
Expand Down

0 comments on commit 0e61326

Please sign in to comment.