From 98fc491a99cedcde7aa73bf9a1ecedd7ab7b0cc9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 21 Feb 2019 12:05:36 +0100 Subject: [PATCH] Use XcodeprojHelper over ignore_cocoapods_path for finding Xcode projects --- .../plugin/settings_bundle/helper/settings_bundle_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/fastlane/plugin/settings_bundle/helper/settings_bundle_helper.rb b/lib/fastlane/plugin/settings_bundle/helper/settings_bundle_helper.rb index 82e08a3..9694885 100644 --- a/lib/fastlane/plugin/settings_bundle/helper/settings_bundle_helper.rb +++ b/lib/fastlane/plugin/settings_bundle/helper/settings_bundle_helper.rb @@ -138,9 +138,8 @@ def xcodeproj_path_from_params(params) # This may not be a git project. Search relative to the Gemfile. repo_path = Bundler.root - all_xcodeproj_paths = Dir[File.expand_path(File.join(repo_path, '**/*.xcodeproj'))] - # find an xcodeproj (ignoring the Cocoapods one) - xcodeproj_paths = Fastlane::Actions.ignore_cocoapods_path(all_xcodeproj_paths) + # find an xcodeproj (ignoring dependencies) + xcodeproj_paths = Fastlane::Helper::XcodeprojHelper.find(repo_path) # no projects found: error UI.user_error!('Could not find a .xcodeproj in the current repository\'s working directory.') and return nil if xcodeproj_paths.count == 0