Skip to content

Commit

Permalink
ref: only update siging config if appropriate 'teamID', 'teamName' an…
Browse files Browse the repository at this point in the history
…d 'exportMethod' is provided
  • Loading branch information
arthurpalves committed Oct 19, 2023
1 parent fab1d10 commit 25d8dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Sources/VariantsCore/Factory/iOS/XCConfigFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ class XCConfigFactory: XCFactory {
guard
let exportMethod = variant.signing?.exportMethod,
let teamName = variant.signing?.teamName,
let teamID = variant.signing?.teamID
let teamID = variant.signing?.teamID,
!teamID.isEmpty,
!teamName.isEmpty
else { return }

let xcodeFactory = XcodeProjFactory()
Expand Down
3 changes: 1 addition & 2 deletions Sources/VariantsCore/Factory/iOS/XcodeProjFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ struct XcodeProjFactory {
}
try project.write(path: projectPath)
} catch {
dump(error)
logger.logFatal("", item: "Unable to add files to Xcode project '\(projectPath)'")
logger.logFatal("", item: "Unable to add files to Xcode project '\(projectPath)', error: '\(error.localizedDescription)'")
}
}

Expand Down

0 comments on commit 25d8dcb

Please sign in to comment.