Add mlmodel to compiled file extensions (#457)

This commit is contained in:
David W. Berry 2018-12-13 13:03:46 -06:00 committed by Brentley Jones
parent f991020a5a
commit 7e2c870762
2 changed files with 4 additions and 1 deletions

View File

@ -192,7 +192,8 @@ class SourceGenerator {
"S",
"xcdatamodeld",
"intentdefinition",
"metal":
"metal",
"mlmodel":
return .sources
case "h",
"hh",

View File

@ -435,6 +435,7 @@ class SourceGeneratorTests: XCTestCase {
- file.123
- file.xcassets
- file.metal
- file.mlmodel
- Info.plist
- Intent.intentdefinition
"""
@ -484,6 +485,7 @@ class SourceGeneratorTests: XCTestCase {
try pbxProj.expectFile(paths: ["C", "file.123"], buildPhase: .resources)
try pbxProj.expectFile(paths: ["C", "Info.plist"], buildPhase: .none)
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)
}