Skip to main content
Question

Publishing changes from background threads is not allowed

  • 16 September 2023
  • 5 replies
  • 298 views

Forum|alt.badge.img+3

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.

5 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 369 replies
  • September 21, 2023

Hi,

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


Forum|alt.badge.img

I got the same issue… Any solutions ?


Forum|alt.badge.img+3
  • Author
  • New Member
  • 1 reply
  • March 4, 2024

Hi Joris,

I reached out to them recently about it with the details. They seem to be looking into it. You should also send them your details. Might help them narrow down the issue.


Still seems to be happening in the latest release: 4.37.0


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • June 2, 2024

Having the exact same issue with version 4.41.2 - even when wrapping the setup code inside a DispatchQueue.main.async


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • July 11, 2024

I’ve tried with 5.0.0 and apparently this is still an issue. 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings