diff --git a/CHANGELOG.md b/CHANGELOG.md index 7324a4629..54bb715fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,12 @@ [woxtu](https://github.com/woxtu) [#3023](https://github.com/realm/SwiftLint/issues/3023) +* Work around dyld warning about duplicate SwiftSyntax classes with Xcode 15 + betas. + [keith](https://github.com/keith) + [JP Simard](https://github.com/jpsim) + [#4782](https://github.com/realm/SwiftLint/issues/4782) + ## 0.52.2: Crisper Clearer Pleats #### Breaking diff --git a/Source/DyldWarningWorkaround/DyldWarningWorkaround.c b/Source/DyldWarningWorkaround/DyldWarningWorkaround.c index 735f423cd..c7ddcde92 100644 --- a/Source/DyldWarningWorkaround/DyldWarningWorkaround.c +++ b/Source/DyldWarningWorkaround/DyldWarningWorkaround.c @@ -11,5 +11,6 @@ OBJC_DUPCLASS(_TtC11SwiftSyntax18ParsingSyntaxArena); OBJC_DUPCLASS(_TtC11SwiftSyntax23SourceLocationConverter); OBJC_DUPCLASS(_TtC11SwiftSyntax26IncrementalParseTransition); OBJC_DUPCLASS(_TtC11SwiftSyntax35IncrementalParseReusedNodeCollector); +OBJC_DUPCLASS(_TtC11SwiftParserP33_78149DB072C20084E7D780D86E26C3AF41StringLiteralExpressionIndentationChecker); #endif // __APPLE__ diff --git a/Source/DyldWarningWorkaround/include/objc_dupclass.h b/Source/DyldWarningWorkaround/include/objc_dupclass.h index d82d6c366..b828f3bc1 100644 --- a/Source/DyldWarningWorkaround/include/objc_dupclass.h +++ b/Source/DyldWarningWorkaround/include/objc_dupclass.h @@ -11,7 +11,7 @@ // Struct layout from https://github.com/apple-oss-distributions/objc4/blob/8701d5672d3fd3cd817aeb84db1077aafe1a1604/runtime/objc-abi.h#L175-L183 #define OBJC_DUPCLASS(kclass) \ __attribute__((used)) __attribute__((visibility("hidden"))) \ - static struct { uint32_t version; uint32_t flags; const char name[64]; } \ + static struct { uint32_t version; uint32_t flags; const char name[128]; } \ const __duplicate_class_##kclass = { 0, 0, #kclass }; \ \ __attribute__((used)) __attribute__((visibility("hidden"))) \