@@ -1147,48 +1147,8 @@ private final class ProjectModelItemClass: ProjectModelItem {
1147
1147
}
1148
1148
}
1149
1149
1150
- @Test ( . requireXcode16 ( ) )
1150
+ @Test
1151
1151
func loadingStandardTarget( ) throws {
1152
- let classOneFileRef : FileReference ? = try
1153
- {
1154
- let fileRefPIF : [ String : PropertyListItem ] = [
1155
- " guid " : " framework-source-fileReference-guid " ,
1156
- " type " : " file " ,
1157
- " sourceTree " : " PROJECT_DIR " ,
1158
- " path " : " ClassOne.m " ,
1159
- " fileType " : " sourcecode.c.objc " ,
1160
- ]
1161
-
1162
- // Convert the test data into a property list, then read the file reference from it.
1163
- return try FileReference ( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1164
- } ( )
1165
- let classTwoFileRef : FileReference ? = try
1166
- {
1167
- let fileRefPIF : [ String : PropertyListItem ] = [
1168
- " guid " : " app-source-fileReference-guid " ,
1169
- " type " : " file " ,
1170
- " sourceTree " : " PROJECT_DIR " ,
1171
- " path " : " ClassTwo.m " ,
1172
- " fileType " : " sourcecode.c.objc " ,
1173
- ]
1174
-
1175
- // Convert the test data into a property list, then read the file reference from it.
1176
- return try FileReference ( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1177
- } ( )
1178
- let cocoaFwkFileRef : FileReference ? = try
1179
- {
1180
- let fileRefPIF : [ String : PropertyListItem ] = [
1181
- " guid " : " cocoa-framework-fileReference-guid " ,
1182
- " type " : " file " ,
1183
- " sourceTree " : " <absolute> " ,
1184
- " path " : " /System/Library/Frameworks/Cocoa.framework " ,
1185
- " fileType " : " wrapper.framework " ,
1186
- ]
1187
-
1188
- // Convert the test data into a property list, then read the file reference from it.
1189
- return try FileReference ( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1190
- } ( )
1191
-
1192
1152
// Load a framework target.
1193
1153
let frameworkTarget : StandardTarget ? = try {
1194
1154
let testBuildConfigurationData : [ String : PropertyListItem ] = [
@@ -1365,10 +1325,6 @@ private final class ProjectModelItemClass: ProjectModelItem {
1365
1325
1366
1326
// Check that the build files and the target dependency resolved.
1367
1327
#expect( appTarget!. dependencies. map { $0. guid } == [ frameworkTarget!. guid] )
1368
- #expect( ( appTarget!. buildPhases [ 0 ] as! SourcesBuildPhase ) . buildFiles [ 0 ] === classOneFileRef!)
1369
- #expect( ( appTarget!. buildPhases [ 1 ] as! FrameworksBuildPhase ) . buildFiles [ 0 ] === cocoaFwkFileRef!)
1370
- #expect( ( frameworkTarget!. buildPhases [ 0 ] as! SourcesBuildPhase ) . buildFiles [ 0 ] === classTwoFileRef!)
1371
- #expect( ( frameworkTarget!. buildPhases [ 1 ] as! FrameworksBuildPhase ) . buildFiles [ 0 ] === classTwoFileRef!)
1372
1328
#expect( appTarget? . productReference. target == appTarget)
1373
1329
#expect( frameworkTarget? . productReference. target == frameworkTarget)
1374
1330
}
0 commit comments