Question

Publishing changes from background threads is not allowed

  • 16 September 2023
  • 1 reply
  • 17 views

Badge +2

Getting a ton of warnings from Xcode saying:

Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates.

All of these are coming from RevenueCat’s SDK:

purchases-ios/Sources/Caching/DeviceCache.swift:167

purchases-ios/Sources/Caching/DeviceCache.swift:602

purchases-ios/Sources/Networking/HTTPClient/ETagManager.swift:193


Have implemented the sdk incorrectly? Any suggestions are welcome.


1 reply

Userlevel 1
Badge +3

Hi,

Just letting you know I emailed you from RevenueCat support asking for some more info so we can look into this for you.

Reply