@@ -957,69 +957,6 @@ fileprivate struct AppIntentsMetadataTaskConstructionTests: CoreBasedTests {
957
957
}
958
958
}
959
959
960
- @Test ( . requireSDKs( . iOS) )
961
- func ignoreQueryGenericsErrors( ) async throws {
962
- try await withTemporaryDirectory { tmpDir in
963
- let testProject = try await TestProject (
964
- " aProject " ,
965
- sourceRoot: tmpDir,
966
- groupTree: TestGroup (
967
- " SomeFiles " ,
968
- children: [
969
- TestFile ( " source.swift " ) ,
970
- TestFile ( appShortcutsStringsFileName)
971
- ] ) ,
972
- buildConfigurations: [
973
- TestBuildConfiguration (
974
- " Debug " ,
975
- buildSettings: [
976
- " AD_HOC_CODE_SIGNING_ALLOWED " : " YES " ,
977
- " ARCHS " : " arm64 " ,
978
- " CODE_SIGN_IDENTITY " : " - " ,
979
- " GENERATE_INFOPLIST_FILE " : " YES " ,
980
- " PRODUCT_BUNDLE_IDENTIFIER " : " com.foo.bar " ,
981
- " PRODUCT_NAME " : " $(TARGET_NAME) " ,
982
- " SDKROOT " : " iphoneos " ,
983
- " SWIFT_EXEC " : swiftCompilerPath. str,
984
- " SWIFT_VERSION " : swiftVersion,
985
- " VERSIONING_SYSTEM " : " apple-generic " ,
986
- " SWIFT_EMIT_CONST_VALUE_PROTOCOLS " : " Foo Bar " ,
987
- ] ) ,
988
- ] ,
989
- targets: [
990
- TestStandardTarget (
991
- " LinkTest " ,
992
- type: . application,
993
- buildConfigurations: [
994
- TestBuildConfiguration (
995
- " Debug " ,
996
- buildSettings: [
997
- " LM_ENABLE_LINK_GENERATION " : " YES " ,
998
- " LM_IGNORE_QUERY_GENERICS_ERRORS " : " YES "
999
- ] ) ,
1000
- ] ,
1001
- buildPhases: [
1002
- TestResourcesBuildPhase ( [ TestBuildFile ( appShortcutsStringsFileName) ] ) ,
1003
- TestSourcesBuildPhase ( [ " source.swift " ] ) ,
1004
- ]
1005
- )
1006
- ] )
1007
-
1008
- let core = try await getCore ( )
1009
- let tester = try TaskConstructionTester ( core, testProject)
1010
- await tester. checkBuild ( runDestination: . iOS) { results in
1011
- results. checkTask ( . matchRuleType( " ExtractAppIntentsMetadata " ) ) { task in
1012
- let executableName = task. commandLine. first
1013
- if let executableName,
1014
- executableName == " appintentsmetadataprocessor " {
1015
- task. checkCommandLineContains ( [ " --ignore-query-generics-errors " ] )
1016
- }
1017
- results. checkNoDiagnostics ( )
1018
- }
1019
- }
1020
- }
1021
- }
1022
-
1023
960
@Test ( . requireSDKs( . iOS) )
1024
961
func forceLinkGeneration( ) async throws {
1025
962
try await withTemporaryDirectory { tmpDir in
0 commit comments