@@ -683,14 +683,14 @@ private final class ProjectModelItemClass: ProjectModelItem {
683683 #expect( fileGroup. children. count == 2 )
684684
685685 // Examine its children
686- if let fileRef = try ? #require( fileGroup. children. first as? FileReference ? ) {
686+ if let fileRef = try ? #require( fileGroup. children. first as? FileReference ) {
687687 #expect( fileRef. guid == " first-fileReference-guid " )
688688 #expect( fileRef. sourceTree == SourceTree . groupRelative)
689689 #expect( fileRef. path. stringRep == " ClassOne.m " )
690690 #expect( fileRef. fileTypeIdentifier == " sourcecode.c.objc " )
691691 #expect( fileRef. regionVariantName == nil )
692692 }
693- if let fileRef = try ? #require( fileGroup. children [ 1 ] as? FileReference ? ) {
693+ if let fileRef = try ? #require( fileGroup. children [ 1 ] as? FileReference ) {
694694 #expect( fileRef. guid == " second-fileReference-guid " )
695695 #expect( fileRef. sourceTree == SourceTree . groupRelative)
696696 #expect( fileRef. path. stringRep == " ClassOne.h " )
@@ -740,14 +740,14 @@ private final class ProjectModelItemClass: ProjectModelItem {
740740 #expect( versionGroup. children. count == 2 )
741741
742742 // Examine its children
743- if let fileRef = try ? #require( versionGroup. children [ 0 ] as? FileReference ? ) {
743+ if let fileRef = try ? #require( versionGroup. children [ 0 ] as? FileReference ) {
744744 #expect( fileRef. guid == " first-versionedFile-guid " )
745745 #expect( fileRef. sourceTree == SourceTree . groupRelative)
746746 #expect( fileRef. path. stringRep == " CoreData-1.xcdatamodel " )
747747 #expect( fileRef. fileTypeIdentifier == " wrapper.xcdatamodel " )
748748 #expect( fileRef. regionVariantName == nil )
749749 }
750- if let fileRef = try ? #require( versionGroup. children [ 1 ] as? FileReference ? ) {
750+ if let fileRef = try ? #require( versionGroup. children [ 1 ] as? FileReference ) {
751751 #expect( fileRef. guid == " second-versionedFile-guid " )
752752 #expect( fileRef. sourceTree == SourceTree . groupRelative)
753753 #expect( fileRef. path. stringRep == " CoreData-2.xcdatamodel " )
@@ -821,21 +821,21 @@ private final class ProjectModelItemClass: ProjectModelItem {
821821 #expect( variantGroup. name == " Thingy.xib " )
822822
823823 // Examine its children, the xib and its localized strings files
824- if let fileRef = try ? #require( variantGroup. children [ 0 ] as? FileReference ? ) {
824+ if let fileRef = try ? #require( variantGroup. children [ 0 ] as? FileReference ) {
825825 #expect( fileRef. guid == " xib-fileReference-guid " )
826826 #expect( fileRef. sourceTree == SourceTree . groupRelative)
827827 #expect( fileRef. path. stringRep == " Thingy.xib " )
828828 #expect( fileRef. fileTypeIdentifier == " file.xib " )
829829 #expect( fileRef. regionVariantName == nil )
830830 }
831- if let fileRef = try ? #require( variantGroup. children [ 1 ] as? FileReference ? ) {
831+ if let fileRef = try ? #require( variantGroup. children [ 1 ] as? FileReference ) {
832832 #expect( fileRef. guid == " fr-strings-fileReference-guid " )
833833 #expect( fileRef. sourceTree == SourceTree . groupRelative)
834834 #expect( fileRef. path. stringRep == " Thingy.strings " )
835835 #expect( fileRef. fileTypeIdentifier == " text.plist.strings " )
836836 #expect( fileRef. regionVariantName == " fr " )
837837 }
838- if let fileRef = try ? #require( variantGroup. children [ 2 ] as? FileReference ? ) {
838+ if let fileRef = try ? #require( variantGroup. children [ 2 ] as? FileReference ) {
839839 #expect( fileRef. guid == " de-strings-fileReference-guid " )
840840 #expect( fileRef. sourceTree == SourceTree . groupRelative)
841841 #expect( fileRef. path. stringRep == " Thingy.strings " )
@@ -941,7 +941,7 @@ private final class ProjectModelItemClass: ProjectModelItem {
941941 ]
942942
943943 // Convert the test data into a property list, then read the build phase from it.
944- if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? SourcesBuildPhase ? ) {
944+ if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? SourcesBuildPhase ) {
945945 // Examine the build phase.
946946 #expect( buildPhase. buildFiles. count == 1 )
947947 }
@@ -962,7 +962,7 @@ private final class ProjectModelItemClass: ProjectModelItem {
962962 ]
963963
964964 // Convert the test data into a property list, then read the build phase from it.
965- if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? HeadersBuildPhase ? ) {
965+ if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? HeadersBuildPhase ) {
966966 // Examine the build phase.
967967 #expect( buildPhase. buildFiles. count == 1 )
968968 }
@@ -983,7 +983,7 @@ private final class ProjectModelItemClass: ProjectModelItem {
983983 ]
984984
985985 // Convert the test data into a property list, then read the build phase from it.
986- if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? ResourcesBuildPhase ? ) {
986+ if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? ResourcesBuildPhase ) {
987987 // Examine the build phase.
988988 #expect( buildPhase. buildFiles. count == 1 )
989989 }
@@ -1007,7 +1007,7 @@ private final class ProjectModelItemClass: ProjectModelItem {
10071007 ]
10081008
10091009 // Convert the test data into a property list, then read the build phase from it.
1010- if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? CopyFilesBuildPhase ? ) {
1010+ if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? CopyFilesBuildPhase ) {
10111011 // Examine the build phase.
10121012 #expect( buildPhase. destinationSubfolder. stringRep == " Resources " )
10131013 #expect( buildPhase. destinationSubpath. stringRep == " Subpath " )
@@ -1036,7 +1036,7 @@ private final class ProjectModelItemClass: ProjectModelItem {
10361036 ]
10371037
10381038 // Convert the test data into a property list, then read the build phase from it.
1039- if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? ShellScriptBuildPhase ? ) {
1039+ if let buildPhase = try ? #require( BuildPhase . parsePIFDictAsBuildPhase ( buildPhasePIF, pifLoader: pifLoader) as? ShellScriptBuildPhase ) {
10401040 // Examine the build phase.
10411041 #expect( buildPhase. guid == " some-shellScriptBuildPhase-guid " )
10421042 #expect( buildPhase. name == " A Shell Script Phase " )
0 commit comments