2 Commits

Author SHA1 Message Date
JP Simard b69ae7cc4d Silence duplicate symbol runtime warning (#5068)
Similar to #4901 but updated with a new warning from Xcode 15 beta 1.
Increase dupclass max name length from 64 to 128
2023-06-22 10:14:54 -04:00
Keith Smiley 1892c846b0 Workaround dyld warning about SwiftSyntax classes (#4901)
This uses a recent but unannounced (also read as private) feature of
dyld where it ignores duplicate Objective-C classes when they're in a
special format in the binary. https://github.com/apple-oss-distributions/dyld/blob/c8a445f88f9fc1713db34674e79b00e30723e79d/dyld/PrebuiltLoader.cpp#L1660-L1662

I think this is generally safe because hopefully people aren't actually
using the SwiftSyntax classes through the Objective-C runtime, but if
they are we'd still probably prefer to silence the noise and accept the
UB.

Fixes https://github.com/realm/SwiftLint/issues/4782
2023-04-17 19:55:33 -04:00