Skip to content

Commit 8a799c4

Browse files
author
James Paolantonio
committed
Remove LM_IGNORE_QUERY_GENERICS_ERRORS from appintentsmetadataprocessor
1 parent 68603c0 commit 8a799c4

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

Sources/SWBApplePlatform/Specs/AppIntentsMetadata.xcspec

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,6 @@
113113
CommandLineFlag = "--swift-const-vals-list";
114114
IsInputDependency = Yes;
115115
},
116-
{
117-
Name = LM_IGNORE_QUERY_GENERICS_ERRORS;
118-
Type = Boolean;
119-
DefaultValue = NO;
120-
CommandLineArgs = {
121-
YES = ( "--ignore-query-generics-errors" );
122-
NO = ();
123-
};
124-
},
125116
{
126117
Name = LM_FORCE_LINK_GENERATION;
127118
Type = Boolean;

Tests/SWBTaskConstructionTests/AppIntentsMetadataTaskConstructionTests.swift

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -957,69 +957,6 @@ fileprivate struct AppIntentsMetadataTaskConstructionTests: CoreBasedTests {
957957
}
958958
}
959959

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-
1023960
@Test(.requireSDKs(.iOS))
1024961
func forceLinkGeneration() async throws {
1025962
try await withTemporaryDirectory { tmpDir in

0 commit comments

Comments
 (0)