diff --git a/xcode/.swiftlint.yml b/xcode/.swiftlint.yml index 524c6a6..ceee568 100644 --- a/xcode/.swiftlint.yml +++ b/xcode/.swiftlint.yml @@ -97,6 +97,7 @@ excluded: - "**/Generated" - "**/Resources" - ".gem" + - "**/*.app" line_length: warning: 128 diff --git a/xcode/bootstrap/Makefile b/xcode/bootstrap/Makefile index 7894911..09940d2 100644 --- a/xcode/bootstrap/Makefile +++ b/xcode/bootstrap/Makefile @@ -8,6 +8,7 @@ RUBY_VERSION="2.7.6" open_project=(open *.xcworkspace) install_dev_certs=(bundle exec fastlane SyncCodeSigning type:development readonly:true) install_pods=(bundle exec pod install || bundle exec pod install --repo-update) +init_rbenv=(if command -v rbenv &> /dev/null; then eval "$$(rbenv init -)"; fi) TARGET_MAX_CHAR_NUM=20 ## Show help @@ -31,7 +32,7 @@ help: init: brew bundle - eval "$(rbenv init -)" + $(call init_rbenv) rbenv install -s ${RUBY_VERSION} rbenv global ${RUBY_VERSION} @@ -43,7 +44,7 @@ init: bundle install - xcodegen + $(call gen) $(call install_pods) @@ -59,6 +60,10 @@ init: pod: $(call install_pods) +## Запускает генерацию файла проекта +gen: + xcodegen + ## Устанавливает сертификат и профили для запуска на девайсе dev_certs: $(call install_dev_certs)