iOS Crash: "A view can only be associated with at most one view controller at a time"
03:37 27 Feb 2026

My app crashes with the following error at runtime:
Thread 1: "A view can only be associated with at most one view controller at a time! is associated with . Clear this association before associating this view with ." An abort signal terminated the process. Such crashes often happen because of an uncaught exception or unrecoverable error or calling the abort() function. What causes this and how can it be fixed?

ios swift uiviewcontroller runtime-error