@lorihc hey 👋 I’m struggling with an error on watchOS 10 simulator and HealthKit and didn’t find anything on the Apple docs.

I’m receiving a `errorbackgroundworkoutsessionnotallowed` when I try a `session.prepare()`. It’s only happens on simulator and works fine on device

I don’t have any context on the docs developer.apple.com/documentat

@fsousa Hi Fernando! Can you please file Feedback and post the number here? We might have broken something recently. (The error means you can’t start a workout from the background; is that what you’re trying to do, or is it a straightforward Start Workout button tap in the foreground that’s hitting this error in the sim?)

@lorihc Hey Lori. Is this error related with the watchOS app trying to start a session in background or the session.prepare() being called in a background thread?

@lorihc alright. So it is definitely a bug on the watchOS Simulator because I can assure you that the app is in foreground.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.