@@ -2201,12 +2201,18 @@ final class PIFBuilderTests: XCTestCase {
2201
2201
" /Foo/Sources/foo/main.swift " ,
2202
2202
" /Foo/Sources/foo/Resources/Data.plist " ,
2203
2203
" /Foo/Sources/foo/Resources/Database.xcdatamodel " ,
2204
+ " /Foo/Sources/foo/Resources/Assets.xcassets " ,
2205
+ " /Foo/Sources/foo/Resources/Localizable.xcstrings " ,
2204
2206
" /Foo/Sources/FooLib/lib.swift " ,
2205
2207
" /Foo/Sources/FooLib/Resources/Data.plist " ,
2206
2208
" /Foo/Sources/FooLib/Resources/Database.xcdatamodel " ,
2209
+ " /Foo/Sources/FooLib/Resources/Assets.xcassets " ,
2210
+ " /Foo/Sources/FooLib/Resources/Localizable.xcstrings " ,
2207
2211
" /Foo/Sources/FooTests/FooTests.swift " ,
2208
2212
" /Foo/Sources/FooTests/Resources/Data.plist " ,
2209
- " /Foo/Sources/FooTests/Resources/Database.xcdatamodel "
2213
+ " /Foo/Sources/FooTests/Resources/Database.xcdatamodel " ,
2214
+ " /Foo/Sources/FooTests/Resources/Assets.xcassets " ,
2215
+ " /Foo/Sources/FooTests/Resources/Localizable.xcstrings " ,
2210
2216
)
2211
2217
2212
2218
let observability = ObservabilitySystem . makeForTesting ( )
@@ -2216,15 +2222,15 @@ final class PIFBuilderTests: XCTestCase {
2216
2222
Manifest . createRootManifest (
2217
2223
displayName: " Foo " ,
2218
2224
path: " /Foo " ,
2219
- toolsVersion: . v5_3 ,
2225
+ toolsVersion: . v5_9 ,
2220
2226
products: [
2221
2227
. init( name: " FooLib " , type: . library( . automatic) , targets: [ " FooLib " ] ) ,
2222
2228
] ,
2223
2229
targets: [
2224
2230
. init( name: " foo " , resources: [
2225
2231
// This is intentionally specific to test that we pick up `.xcdatamodel` implicitly.
2226
2232
. init( rule: . process( localization: . none) , path: " Resources/Data.plist " ) ,
2227
- ] ) ,
2233
+ ] , type : . executable ) ,
2228
2234
. init( name: " FooLib " , resources: [
2229
2235
. init( rule: . process( localization: . none) , path: " Resources " ) ,
2230
2236
] ) ,
@@ -2253,7 +2259,10 @@ final class PIFBuilderTests: XCTestCase {
2253
2259
try workspace. checkProject ( " PACKAGE:/Foo " ) { project in
2254
2260
project. checkTarget ( " PACKAGE-PRODUCT:foo " ) { target in
2255
2261
XCTAssertEqual ( target. dependencies, [ " PACKAGE-RESOURCE:foo " ] )
2262
+ // All of these file types can generate code.
2256
2263
XCTAssert ( target. sources. contains ( " /Foo/Sources/foo/Resources/Database.xcdatamodel " ) )
2264
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/foo/Resources/Assets.xcassets " ) )
2265
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/foo/Resources/Localizable.xcstrings " ) )
2257
2266
2258
2267
target. checkBuildConfiguration ( " Debug " ) { configuration in
2259
2268
configuration. checkBuildSettings { settings in
@@ -2290,6 +2299,8 @@ final class PIFBuilderTests: XCTestCase {
2290
2299
XCTAssertEqual ( target. resources, [
2291
2300
" /Foo/Sources/foo/Resources/Data.plist " ,
2292
2301
" /Foo/Sources/foo/Resources/Database.xcdatamodel " ,
2302
+ " /Foo/Sources/foo/Resources/Assets.xcassets " ,
2303
+ " /Foo/Sources/foo/Resources/Localizable.xcstrings " ,
2293
2304
] )
2294
2305
2295
2306
target. checkBuildConfiguration ( " Debug " ) { configuration in
@@ -2322,6 +2333,8 @@ final class PIFBuilderTests: XCTestCase {
2322
2333
project. checkTarget ( " PACKAGE-PRODUCT:FooLib " ) { target in
2323
2334
XCTAssert ( !target. dependencies. contains ( " PACKAGE-RESOURCE:FooLib " ) )
2324
2335
XCTAssert ( !target. sources. contains ( " /Foo/Sources/FooLib/Resources/Database.xcdatamodel " ) )
2336
+ XCTAssert ( !target. sources. contains ( " /Foo/Sources/FooLib/Resources/Assets.xcassets " ) )
2337
+ XCTAssert ( !target. sources. contains ( " /Foo/Sources/FooLib/Resources/Localizable.xcstrings " ) )
2325
2338
2326
2339
target. checkBuildConfiguration ( " Debug " ) { configuration in
2327
2340
configuration. checkBuildSettings { settings in
@@ -2343,6 +2356,8 @@ final class PIFBuilderTests: XCTestCase {
2343
2356
project. checkTarget ( " PACKAGE-TARGET:FooLib " ) { target in
2344
2357
XCTAssertEqual ( target. dependencies, [ " PACKAGE-RESOURCE:FooLib " ] )
2345
2358
XCTAssert ( target. sources. contains ( " /Foo/Sources/FooLib/Resources/Database.xcdatamodel " ) )
2359
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/FooLib/Resources/Assets.xcassets " ) )
2360
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/FooLib/Resources/Localizable.xcstrings " ) )
2346
2361
2347
2362
target. checkBuildConfiguration ( " Debug " ) { configuration in
2348
2363
configuration. checkBuildSettings { settings in
@@ -2372,6 +2387,8 @@ final class PIFBuilderTests: XCTestCase {
2372
2387
project. checkTarget ( " PACKAGE-PRODUCT:FooTests " ) { target in
2373
2388
XCTAssertEqual ( target. dependencies, [ " PACKAGE-RESOURCE:FooTests " ] )
2374
2389
XCTAssert ( target. sources. contains ( " /Foo/Sources/FooTests/Resources/Database.xcdatamodel " ) )
2390
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/FooTests/Resources/Assets.xcassets " ) )
2391
+ XCTAssert ( target. sources. contains ( " /Foo/Sources/FooTests/Resources/Localizable.xcstrings " ) )
2375
2392
2376
2393
target. checkBuildConfiguration ( " Debug " ) { configuration in
2377
2394
configuration. checkBuildSettings { settings in
@@ -2408,6 +2425,8 @@ final class PIFBuilderTests: XCTestCase {
2408
2425
XCTAssertEqual ( target. resources, [
2409
2426
" /Foo/Sources/FooTests/Resources/Data.plist " ,
2410
2427
" /Foo/Sources/FooTests/Resources/Database.xcdatamodel " ,
2428
+ " /Foo/Sources/FooTests/Resources/Assets.xcassets " ,
2429
+ " /Foo/Sources/FooTests/Resources/Localizable.xcstrings " ,
2411
2430
] )
2412
2431
2413
2432
target. checkBuildConfiguration ( " Debug " ) { configuration in
0 commit comments