Skip to content

Commit

Permalink
Merge pull request #27 from daniel-mohemian/bugfix/25
Browse files Browse the repository at this point in the history
Use XcodeprojHelper for finding Xcode projects
  • Loading branch information
jdee authored May 13, 2019
2 parents a6475f1 + 98fc491 commit 2e7df3e
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 2e7df3e

Please sign in to comment.