blakgeek / cordova-plugin-cocoapods-support

A Cordova/PhoneGap plugin to add support for CocoaPods dependencies.
MIT License
72 stars 71 forks source link

fix: check directory presence when copying schemes #21

Closed guirip closed 7 years ago

guirip commented 7 years ago

Hello

Worked on a simple fix for the error I described in issue 19.

As I understood the problem, an error is raised when adding schemes because a directory creation is demanded while the directory already exists.

The update I've made is a simple check for directory presence before trying to create it.

From the basic tests I've done there is no more error, everything seems to be fine, but I'm not sure that the directories would be created if needed.

Wish it can help. Cheers