Skip to content

Commit

Permalink
Added secondary location check for pbxProject
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Rundle committed Apr 15, 2021
1 parent e8abe8b commit 4904c74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tasks/XcodeV5/xcodeutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ function getPbxProjectPath(workspace: string) {
if (workspace && workspace.trim().toLowerCase().endsWith('.xcworkspace')) {
let pbxProjectPath: string = workspace.trim().toLowerCase().replace('.xcworkspace', '.pbxproj');

if (pathExistsAsFile(pbxProjectPath)) {
return pbxProjectPath;
}

tl.debug("Corresponding pbxProject file doesn't exist: " + pbxProjectPath + ", checking alternative location");

pbxProjectPath = workspace.trim().toLowerCase().replace('.xcworkspace', '.xcodeproj/project.pbxproj');
if (pathExistsAsFile(pbxProjectPath)) {
return pbxProjectPath;
}
Expand Down

0 comments on commit 4904c74

Please sign in to comment.