Skip to content

Commit da4ee37

Browse files
committed
Skip Cocoapods checkTool on non-darwin platform
1 parent e92f653 commit da4ee37

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/templates/scripts/cordova/lib/check_reqs.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ function os_platform_is_supported () {
6868
* @return {Promise} Returns a promise either resolved or rejected
6969
*/
7070
module.exports.check_cocoapods = toolChecker => {
71-
return checkTool('pod', COCOAPODS_MIN_VERSION, COCOAPODS_NOT_FOUND_MESSAGE, 'CocoaPods');
71+
if(os_platform_is_supported()) {
72+
return checkTool('pod', COCOAPODS_MIN_VERSION, COCOAPODS_NOT_FOUND_MESSAGE, 'CocoaPods');
73+
}
74+
75+
return Promise.resolve({
76+
'ignore': true,
77+
'ignoreMessage': `CocoaPods check and installation ignored on ${process.platform}`
78+
});
7279
};
7380

7481
/**

0 commit comments

Comments
 (0)