You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're currently rewriting the iOS SDK and we'll consider this use case, thanks for the context.
Edit: Consider using the customstringconvertible as well.
This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.
Activity
marandaneto commentedon Oct 9, 2023
@JoeFerrucci do you mean https://developer.apple.com/documentation/swift/codable ?
JoeFerrucci commentedon Oct 9, 2023
Yes, that is the one. When I try to pass a dictionary into
capture(event:properties:)it fails with that error.Here is a trivial example to help highlight it
This yields the error. Technically PostHog SDK only needs to support
Encodable; it doesn't need to beDecodableNote: the error appears at runtime when you try to send the data over the wire; it's not a compile time error.
marandaneto commentedon Oct 9, 2023
We're currently rewriting the iOS SDK and we'll consider this use case, thanks for the context.
Edit: Consider using the customstringconvertible as well.
github-actions commentedon Apr 14, 2026
This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the
stalelabel – otherwise this will be closed in two weeks.marandaneto commentedon Apr 14, 2026
superseeded by #557