Skip to content

Commit

Permalink
Use XcodeprojHelper over ignore_cocoapods_path for finding Xcode proj…
Browse files Browse the repository at this point in the history
…ects
  • Loading branch information
daniel-moh committed Feb 21, 2019
1 parent a6475f1 commit 98fc491
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98fc491

Please sign in to comment.