Error map

Publishing changes from background threads SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread

iOS · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Publishing changes from background threads — SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread (iOS)Publishing …idempotency_key_in_use — API Error: Idempotency key reused with different parameters (idempotency_key_in_use) (API)idempotency_key_in_…concurrent_requests_limit — API Error: Too many concurrent requests (concurrency limit reached) (API)concurrent_requests…Main Thread Checker — Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout] (iOS)Main Thread CheckerCannot preview in this file — SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build (iOS)Cannot preview in t…Modifying state during view update — SwiftUI: Modifying state during view update, this will cause undefined behavior (iOS)Modifying state dur…Main actor-isolated — Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races (iOS)Main actor-isolatedall goroutines are asleep - deadlock — Go: fatal error: all goroutines are asleep - deadlock! (Go)all goroutines are …OptimisticLockException — Optimistic lock conflict: OptimisticLockException / StaleObjectStateException / version mismatch (API)OptimisticLockExcep…Escaping closure captures mutating 'self' — Swift: Escaping closure captures mutating 'self' parameter (iOS)Escaping closure ca…Core Data: NSManagedObjectContext was accessed from the wrong queue — CoreData: error: Serious application error. Exception was caught during Core Data change processing (iOS)Core Data: NSManage…Xcode 16 threading warning: Publishing changes from within view updates — Publishing changes from within view updates is not allowed, this will cause undefined behavior. (iOS)Xcode 16 threading …SwiftUI keyboard won't dismiss / @FocusState not working — (behavior) keyboard stays open after tapping outside (iOS)SwiftUI keyboard wo…409 — HTTP 409 Conflict (HTTP)409ConcurrentModificationException — java.util.ConcurrentModificationException (Java)ConcurrentModificat…412 — HTTP 412 Precondition Failed (HTTP)412ThrottlingException — AWS: ThrottlingException / Rate exceeded (AWS)ThrottlingException429 — HTTP 429 Too Many Requests (HTTP)429ETIMEDOUT — API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded) (API)ETIMEDOUT428 — HTTP 428 Precondition Required (HTTP)428InterruptedException — java.lang.InterruptedException (sleep interrupted) (Java)InterruptedException40001 — ERROR: could not serialize access due to concurrent update (PostgreSQL)40001Unexpectedly found nil — Fatal error: Unexpectedly found nil while unwrapping an Optional value (iOS)Unexpectedly found …Signing requires a development team — Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor (iOS)Signing requires a …No such module — Swift: No such module 'X' (module not found) (iOS)No such moduleToo many re-renders — Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. (React)Too many re-rendersuncontrolled to controlled — Warning: A component is changing an uncontrolled input to be controlled (React)uncontrolled to con…read-only property — TypeError: Cannot assign to read only property 'x' of object (JavaScript)read-only propertyIndex out of range — Swift: Fatal error: Index out of range (iOS)Index out of rangeCould not cast value of type — Swift: Could not cast value of type 'X' to 'Y' (iOS)Could not cast valu…is only available in iOS x or newer — Swift: 'X' is only available in iOS 16.0 or newer (iOS)is only available i…TimeoutException — java.util.concurrent.TimeoutException (Java)TimeoutExceptionConditionalCheckFailedException — ConditionalCheckFailedException: The conditional request failed (AWS)ConditionalCheckFai…the object has been modified — Operation cannot be fulfilled on deployments.apps "x": the object has been modified; please apply your changes to the latest version and try again (Kubernetes)the object has been…IllegalStateException — java.lang.IllegalStateException (Java)IllegalStateExcepti…setState during render — Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`) (React)setState during ren…Actions must be plain objects — Error: Actions must be plain objects. Instead, the actual type was: 'function'. (React)Actions must be pla…Cannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert valu…unable to type-check this expression in reasonable time — Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions (iOS)unable to type-chec…Type of expression is ambiguous — Swift: Type of expression is ambiguous without a type annotation (more context) (iOS)Type of expression …NetworkOnMainThreadException — android.os.NetworkOnMainThreadException (Android)NetworkOnMainThread…CalledFromWrongThreadException — CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views (Android)CalledFromWrongThre…ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRThe iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0 — warning: The iOS deployment target is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0 (iOS)The iOS deployment …SwiftUI: No ObservableObject of type X found — Fatal error: No ObservableObject of type SessionStore found. A View.environmentObject(_:) for SessionStore may be missing as an ancestor of this view. (iOS)SwiftUI: No Observa…Result of call is unused (warning) — warning: result of call to 'foo()' is unused (iOS)Result of call is u…Attempt to present on which is already presenting — Warning: Attempt to present <UIViewController> on <UIViewController> which is already presenting (iOS)Attempt to present …Compose TextField cursor jumps to start / text resets — (behavior) TextField loses cursor position when state updates asynchronously (Android)Compose TextField c…Keyboard covers TextField in Compose (imePadding) — (behavior) soft keyboard hides the input field on edge-to-edge screens (Android)Keyboard covers Tex…

Directly related (12)

idempotency_key_in_useAPI

API Error: Idempotency key reused with different parameters (idempotency_key_in_use)

An Idempotency-Key header was sent again with a different request body, or while the first request with that key was still runnin…

concurrent_requests_limitAPI

API Error: Too many concurrent requests (concurrency limit reached)

You have more requests in flight at once than the API allows for your key — even if your requests-per-minute rate is fine.

Main Thread CheckeriOS

Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout]

UIKit was used from a background thread; UI must only be touched on the main thread.

Cannot preview in this fileiOS

SwiftUI Preview: Cannot preview in this file — the preview crashed / failed to build

Xcode Previews couldn’t build or run the view — compile errors elsewhere, a crash in preview data, or preview-specific environmen…

Modifying state during view updateiOS

SwiftUI: Modifying state during view update, this will cause undefined behavior

A @State/@Published value was changed while SwiftUI was computing a view’s body.

Main actor-isolatediOS

Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races

Strict concurrency checking found code that accesses main-actor state from another isolation domain, or passes non-Sendable value…

all goroutines are asleep - deadlockGo

Go: fatal error: all goroutines are asleep - deadlock!

Every goroutine is blocked waiting (on a channel, mutex or WaitGroup), so the program can never continue.

OptimisticLockExceptionAPI

Optimistic lock conflict: OptimisticLockException / StaleObjectStateException / version mismatch

Someone else changed the record after you read it, so your update — based on an old version — was rejected to avoid overwriting t…

Escaping closure captures mutating 'self'iOS

Swift: Escaping closure captures mutating 'self' parameter

A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.

Core Data: NSManagedObjectContext was accessed from the wrong queueiOS

CoreData: error: Serious application error. Exception was caught during Core Data change processing

A managed object or context was used on a different thread than it belongs to.

Xcode 16 threading warning: Publishing changes from within view updatesiOS

Publishing changes from within view updates is not allowed, this will cause undefined behavior.

A published value changed during view rendering.

SwiftUI keyboard won't dismiss / @FocusState not workingiOS

(behavior) keyboard stays open after tapping outside

SwiftUI doesn't dismiss the keyboard automatically.

Two steps away (36)

409HTTP

HTTP 409 Conflict

The request conflicts with the current state of the resource — e.g. a duplicate or an edit based on an outdated version.

ConcurrentModificationExceptionJava

java.util.ConcurrentModificationException

A collection was modified while being iterated (even in a single thread).

412HTTP

HTTP 412 Precondition Failed

A conditional request header (If-Match, If-Unmodified-Since) didn’t match the current state of the resource.

ThrottlingExceptionAWS

AWS: ThrottlingException / Rate exceeded

You exceeded the request rate for an AWS API; retry with exponential backoff.

429HTTP

HTTP 429 Too Many Requests

You’ve hit a rate limit — too many requests in a given time window. Slow down and retry later.

ETIMEDOUTAPI

API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded)

The client gave up waiting — either for the connection to open or for the response to arrive.

428HTTP

HTTP 428 Precondition Required

The server requires a conditional request (If-Match / If-Unmodified-Since) to prevent lost updates, and you didn’t send one.

InterruptedExceptionJava

java.lang.InterruptedException (sleep interrupted)

A blocked thread (sleep, wait, join, queue take) was interrupted by another thread.

40001PostgreSQL

ERROR: could not serialize access due to concurrent update

A REPEATABLE READ/SERIALIZABLE transaction conflicted with a concurrent one and must be retried.

Unexpectedly found niliOS

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Swift force-unwrapped (`!`) an optional that was nil, crashing the app.

Signing requires a development teamiOS

Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor

No Apple developer team is selected for the target, so Xcode can’t sign the app.

No such moduleiOS

Swift: No such module 'X' (module not found)

Xcode can’t find a Swift package, pod or framework you import.

Too many re-rendersReact

Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

A state update runs during render, which triggers another render, which updates state again — forever.

uncontrolled to controlledReact

Warning: A component is changing an uncontrolled input to be controlled

An input’s `value` started as `undefined` (uncontrolled) and later became a defined value (controlled), or vice versa.

read-only propertyJavaScript

TypeError: Cannot assign to read only property 'x' of object

Code tried to modify a frozen object, a getter-only property, or immutable state.

Index out of rangeiOS

Swift: Fatal error: Index out of range

Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.

Could not cast value of typeiOS

Swift: Could not cast value of type 'X' to 'Y'

A force cast (as!) failed because the object isn’t the expected type.

is only available in iOS x or neweriOS

Swift: 'X' is only available in iOS 16.0 or newer

You used an API that requires a newer iOS than your deployment target.

TimeoutExceptionJava

java.util.concurrent.TimeoutException

A Future.get(timeout) or async operation didn’t complete in the allowed time.

ConditionalCheckFailedExceptionAWS

ConditionalCheckFailedException: The conditional request failed

A write’s ConditionExpression evaluated to false, so DynamoDB didn’t perform it — often exactly as designed.

the object has been modifiedKubernetes

Operation cannot be fulfilled on deployments.apps "x": the object has been modified; please apply your changes to the latest version and try again

Optimistic-concurrency conflict: the object changed (new resourceVersion) between when you read it and when you tried to update i…

IllegalStateExceptionJava

java.lang.IllegalStateException

A method was called when the object wasn’t in the right state for it.

setState during renderReact

Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`)

A child component updated a parent’s state during its render instead of in an effect or event handler.

Actions must be plain objectsReact

Error: Actions must be plain objects. Instead, the actual type was: 'function'.

A function (thunk) was dispatched but the thunk middleware isn’t configured.

Cannot convert value of typeiOS

Swift: Cannot convert value of type 'X' to expected argument type 'Y'

The value’s type doesn’t match what the function or property expects.

unable to type-check this expression in reasonable timeiOS

Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

A long expression (often in a SwiftUI body) has too many possible type combinations for the compiler — or hides a type error.

Type of expression is ambiguousiOS

Swift: Type of expression is ambiguous without a type annotation (more context)

The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.

NetworkOnMainThreadExceptionAndroid

android.os.NetworkOnMainThreadException

The app made a network call on the main (UI) thread, which Android forbids.

CalledFromWrongThreadExceptionAndroid

CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views

Background code updated a View directly; UI changes must happen on the main thread.

ANRAndroid

ANR: Application Not Responding (Input dispatching timed out)

The main thread was blocked for about 5 seconds (input) or a broadcast/service took too long, so Android showed “App isn’t respon…

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0iOS

warning: The iOS deployment target is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0

A Pod targets an old iOS version that current Xcode no longer supports.

SwiftUI: No ObservableObject of type X foundiOS

Fatal error: No ObservableObject of type SessionStore found. A View.environmentObject(_:) for SessionStore may be missing as an ancestor of this view.

A view reads an `@EnvironmentObject` that no parent provided.

Result of call is unused (warning)iOS

warning: result of call to 'foo()' is unused

A function returns a value you ignore.

Attempt to present on which is already presentingiOS

Warning: Attempt to present <UIViewController> on <UIViewController> which is already presenting

A second sheet/alert was presented while one was already visible.

Compose TextField cursor jumps to start / text resetsAndroid

(behavior) TextField loses cursor position when state updates asynchronously

The TextField state is updated asynchronously, so the cursor resets.

Keyboard covers TextField in Compose (imePadding)Android

(behavior) soft keyboard hides the input field on edge-to-edge screens

The IME overlaps content because insets aren't applied.