Skip to content

Commit a24abf5

Browse files
authored
Only use objc name for PropertyListEncoder when building for the framework (#1131)
1 parent 963de65 commit a24abf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationEssentials/PropertyList/PlistEncoder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
// name. The two must coexist, so it was renamed. The old name must not
2020
// be used in the new runtime. _TtC10Foundation20_PropertyListEncoder
2121
// is the mangled name for Foundation._PropertyListEncoder.
22+
#if FOUNDATION_FRAMEWORK
2223
@_objcRuntimeName(_TtC10Foundation20_PropertyListEncoder)
24+
#endif
2325
@available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2426
open class PropertyListEncoder {
2527

0 commit comments

Comments
 (0)