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