Flight-School / AnyCodable

Type-erased wrappers for Encodable, Decodable, and Codable values
https://flight.school/books/codable
MIT License
1.28k stars 132 forks source link

Extension of internal protocol cannot be declared public error #41

Closed catchakos closed 3 years ago

catchakos commented 3 years ago

I get this error while compiling with Xcode 12.0:

/Pods/AnyCodable-FlightSchool/Sources/AnyCodable/AnyDecodable.swift:66:1: error: extension of internal protocol cannot be declared public public extension _AnyDecodable { ^~~

and suggested Xcode fix: "Remove public"

The error seems to go away if I deintegrate the pods and install them again, but somehow resurfaces again after switching to a different build configuration

Any ideas?

catchakos commented 3 years ago

Closing this, it was related to some new rule from a SwiftFormat pod update.

mattt commented 3 years ago

@catchakos Thanks for following up on this. Glad to hear that you were able to resolve your problem.