Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05ea968

Browse files
authored
Bugfix/StoreKitConfiguration BuildPhase (yonaskolb#1026)
* Copy storekit to bundle resources by default * Fix tests * Update changelog
1 parent 17b40a3 commit 05ea968

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Next Version
44

5+
#### Fixed
6+
- Fixed regression on **.storekit** configuration files' default build phase. [#1026](https://github.com/yonaskolb/XcodeGen/pull/1026) @jcolicchio
7+
58
## 2.19.0
69

710
#### Added

Sources/ProjectSpec/FileType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extension FileType {
7171
// resources
7272
"bundle": FileType(buildPhase: .resources),
7373
"xcassets": FileType(buildPhase: .resources),
74+
"storekit": FileType(buildPhase: .resources),
7475

7576
// sources
7677
"swift": FileType(buildPhase: .sources),
@@ -110,6 +111,5 @@ extension FileType {
110111
"xcfilelist": FileType(buildPhase: BuildPhaseSpec.none),
111112
"apns": FileType(buildPhase: BuildPhaseSpec.none),
112113
"pch": FileType(buildPhase: BuildPhaseSpec.none),
113-
"storekit": FileType(buildPhase: BuildPhaseSpec.none),
114114
]
115115
}

Tests/Fixtures/TestProject/project.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fileGroups:
2121
- FileGroup
2222
- SomeFile
2323
- Utilities
24+
- App_iOS/Configuration.storekit
2425
projectReferences:
2526
AnotherProject:
2627
path: ./AnotherProject/AnotherProject.xcodeproj
@@ -76,6 +77,7 @@ targets:
7677
- "**/excluded-file"
7778
- "excluded-file"
7879
- "Model.xcmappingmodel"
80+
- "Configuration.storekit"
7981
- path: App_iOS
8082
name: App
8183
includes:

Tests/XcodeGenKitTests/SourceGeneratorTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ class SourceGeneratorTests: XCTestCase {
591591
- file.mlmodel
592592
- Info.plist
593593
- Intent.intentdefinition
594+
- Configuration.storekit
594595
- Settings.bundle:
595596
- en.lproj:
596597
- Root.strings
@@ -646,6 +647,7 @@ class SourceGeneratorTests: XCTestCase {
646647
try pbxProj.expectFile(paths: ["C", "file.metal"], buildPhase: .sources)
647648
try pbxProj.expectFile(paths: ["C", "file.mlmodel"], buildPhase: .sources)
648649
try pbxProj.expectFile(paths: ["C", "Intent.intentdefinition"], buildPhase: .sources)
650+
try pbxProj.expectFile(paths: ["C", "Configuration.storekit"], buildPhase: .resources)
649651
try pbxProj.expectFile(paths: ["C", "Settings.bundle"], buildPhase: .resources)
650652
try pbxProj.expectFileMissing(paths: ["C", "Settings.bundle", "en.lproj"])
651653
try pbxProj.expectFileMissing(paths: ["C", "Settings.bundle", "en.lproj", "Root.strings"])

0 commit comments

Comments
 (0)