Bugfix/StoreKitConfiguration BuildPhase (#1026)

* Copy storekit to bundle resources by default

* Fix tests

* Update changelog
This commit is contained in:
Joseph Colicchio 2021-02-23 13:33:54 -08:00 committed by GitHub
parent 17b40a3288
commit 05ea968f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,9 @@
## Next Version
#### Fixed
- Fixed regression on **.storekit** configuration files' default build phase. [#1026](https://github.com/yonaskolb/XcodeGen/pull/1026) @jcolicchio
## 2.19.0
#### Added

View File

@ -71,6 +71,7 @@ extension FileType {
// resources
"bundle": FileType(buildPhase: .resources),
"xcassets": FileType(buildPhase: .resources),
"storekit": FileType(buildPhase: .resources),
// sources
"swift": FileType(buildPhase: .sources),
@ -110,6 +111,5 @@ extension FileType {
"xcfilelist": FileType(buildPhase: BuildPhaseSpec.none),
"apns": FileType(buildPhase: BuildPhaseSpec.none),
"pch": FileType(buildPhase: BuildPhaseSpec.none),
"storekit": FileType(buildPhase: BuildPhaseSpec.none),
]
}

View File

@ -21,6 +21,7 @@ fileGroups:
- FileGroup
- SomeFile
- Utilities
- App_iOS/Configuration.storekit
projectReferences:
AnotherProject:
path: ./AnotherProject/AnotherProject.xcodeproj
@ -76,6 +77,7 @@ targets:
- "**/excluded-file"
- "excluded-file"
- "Model.xcmappingmodel"
- "Configuration.storekit"
- path: App_iOS
name: App
includes:

View File

@ -591,6 +591,7 @@ class SourceGeneratorTests: XCTestCase {
- file.mlmodel
- Info.plist
- Intent.intentdefinition
- Configuration.storekit
- Settings.bundle:
- en.lproj:
- Root.strings
@ -646,6 +647,7 @@ class SourceGeneratorTests: XCTestCase {
try pbxProj.expectFile(paths: ["C", "file.metal"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "file.mlmodel"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "Intent.intentdefinition"], buildPhase: .sources)
try pbxProj.expectFile(paths: ["C", "Configuration.storekit"], buildPhase: .resources)
try pbxProj.expectFile(paths: ["C", "Settings.bundle"], buildPhase: .resources)
try pbxProj.expectFileMissing(paths: ["C", "Settings.bundle", "en.lproj"])
try pbxProj.expectFileMissing(paths: ["C", "Settings.bundle", "en.lproj", "Root.strings"])