Juanpe / Swift-VIPER-Module

Xcode template for VIPER Architecture written in Swift 4
542 stars 113 forks source link

- Using xcode-select to identify real Xcode path #3

Closed grzegorzkrukowski closed 7 years ago

grzegorzkrukowski commented 7 years ago

There is a problem with install.swift script - if you have Xcode installed in different folder than default or if you have multiple Xcode versions it either fails or installs templates in wrong Xcode version.

To fix this problem I suggest to use "xcode-select --print-path" command to get active Xcode path dynamically instead of hardcoded "/Applications/Xcode.app/Contents/Developer".

Juanpe commented 7 years ago

Thanks @grzegorzkrukowski, nice work!