Skip to content

Commit

Permalink
Prefer default Debug and Release configs (#752)
Browse files Browse the repository at this point in the history
Prefer default Debug and Release configs
  • Loading branch information
yonaskolb authored Jan 15, 2020
2 parents 480477a + 517bfd1 commit e0a8068
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed resolving a relative path for `projectReference.path` [#740](https://github.com/yonaskolb/XcodeGen/pull/740) @kateinoigakukun
- Don't add framework dependency's directory to `FRAMEWORK_SEARCH_PATHS` if it is implicit [#744](https://github.com/yonaskolb/XcodeGen/pull/744) @ikesyo @yutailang0119
- Fixed resolving relative path passed to `XcodeProj` [#751](https://github.com/yonaskolb/XcodeGen/pull/751) @PycKamil
- Prefer configurations named "Debug" or "Release" for default scheme build configurations [#752](https://github.com/yonaskolb/XcodeGen/pull/752) @john-flanagan

#### Internal
- Update to SwiftCLI 6.0 and use the new property wrappers [#749](https://github.com/yonaskolb/XcodeGen/pull/749) @yonaskolb
Expand Down
4 changes: 2 additions & 2 deletions Sources/XcodeGenKit/SchemeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ public class SchemeGenerator {
let pbxProj: PBXProj

var defaultDebugConfig: Config {
project.configs.first { $0.type == .debug }!
suitableConfig(for: .debug, in: project)
}

var defaultReleaseConfig: Config {
project.configs.first { $0.type == .release }!
suitableConfig(for: .release, in: project)
}

public init(project: Project, pbxProj: PBXProj) {
Expand Down

0 comments on commit e0a8068

Please sign in to comment.