Can't connect iPhone App to Home Assistant

I have a new Home Assistant and am currently in the process of connecting it to the smartphones.
It was no problem with the first Android mobile phone.
The first iPhone also connected without any problems.
However, I just can’t get the last iPhone to connect.
I start the app, it also finds the local HA server and I get to the HA login window.
I enter the user and password there and then nothing happens for 1 minute.
Then the app reports the error that it cannot connect.

The HA server then displays the following error message in the Log:

[139827324382656] from 192.168.178.109 (Home Assistant/2024.1 (io.robbie.HomeAssistant; build:2024.535; iOS 17.2.1)): Disconnected: Did not receive auth message within 10 seconds

Thats the output of the app log:

2024-02-13 16:51:35.253 [Info] > Home Assistant Version: 2024.1 Build: 2024.535 PID: 41271
2024-02-13 16:51:35.253 [Info] > XCGLogger Version: 7.0.1 - Level: Debug
2024-02-13 16:51:35.255 [Info] > XCGLogger writing log to: file:///private/var/mobile/Containers/Shared/AppGroup/CBA43265-D348-43BB-9EB5-32300F2F5338/logs/Home%20Assistant.txt
2024-02-13 16:51:35.259 [Info] [webhookmanager-data] [WebhookManager.swift:763] init(identifier:delegate:delegateQueue:background:) > webhook-io.robbie.HomeAssistant initial tasks: []
2024-02-13 16:51:35.259 [Info] [webhookmanager-data] [WebhookManager.swift:763] init(identifier:delegate:delegateQueue:background:) > non-background initial tasks: []
2024-02-13 16:51:35.260 [Info] [main] [ServerManager.swift:390] migrateIfNeeded() > no historic server found to import
2024-02-13 16:51:35.347 [Info] [main] [NotificationManagerLocalPushInterfaceExtension.swift:78] updateManagers() > 
2024-02-13 16:51:35.358 [Verbose] [main] [NotificationManager.swift:55] setupFirebase() > Calling UIApplication.shared.registerForRemoteNotifications()
2024-02-13 16:51:35.973 [Info] [main] [ClientEventStore.swift:8] ClientEventStore > unknown: Application Starting [:]
2024-02-13 16:51:35.983 [Info] [main] [ZoneManager.swift:87] log(state:) > initialize
2024-02-13 16:51:35.983 [Info] [main] [ZoneManager.swift:64] updateLocationManager(isInitial:) > started monitoring siglog changes
2024-02-13 16:51:35.984 [Info] [com.apple.root.user-initiated-qos] [RealmScene.swift:71] willDelete(objects:server:realm:) > deleting actions []
2024-02-13 16:51:36.007 [Info] [main] [ZoneManager.swift:191] sync(zones:) > available 0, enabled true, monitoring 0 ((beacon: 0, circular: 0, zone: 0)), started 0, ended 0
2024-02-13 16:51:36.030 [Info] [main] [WebViewWindowController.swift:70] setup() > showing onboarding required(HomeAssistant.OnboardingNavigationViewController.OnboardingStyle.RequiredType.full)
2024-02-13 16:51:36.081 [Verbose] [main] [AppDelegate.swift:367] setupWatchCommunicator() > Activation state changed: activated
2024-02-13 16:51:36.081 [Warning] [main] [WatchHelpers.swift:46] SyncWatchContext() > Tried to sync HAAPI config to watch but watch not paired or app not installed
2024-02-13 16:51:36.081 [Verbose] [main] [AppDelegate.swift:377] setupWatchCommunicator() > Reachability changed: notReachable
2024-02-13 16:51:36.083 [Verbose] [main] [NotificationManagerLocalPushInterfaceExtension.swift:141] configure(managers:) > computed managers: [:]
2024-02-13 16:51:36.083 [Verbose] [main] [NotificationManager.swift:68] didRegisterForRemoteNotifications(deviceToken:) > Successfully registered for push notifications! APNS token: a824cc9d2afa001f9c422055c0de750879ba50ecee6753ea5a32eb02852867a3
2024-02-13 16:51:36.085 [Info] [main] [PeriodicUpdateManager.swift:57] connectAPI(reason:) > Connect finished for reason cold
2024-02-13 16:51:36.292 [Error] [main] [AppDelegate.swift:314] checkForAlerts() > check error: The first or last element was requested for an empty sequence
2024-02-13 16:51:37.608 [Info] [main] [Bonjour.swift:25] start() > 
2024-02-13 16:51:37.826 [Verbose] [main] [Bonjour.swift:47] netServiceBrowser(_:didFind:moreComing:) > 
2024-02-13 16:51:37.858 [Verbose] [main] [Bonjour.swift:54] netServiceDidResolveAddress(_:) > 
2024-02-13 16:51:38.586 [Info] [main] [NotificationManager.swift:337] messaging(_:didReceiveRegistrationToken:) > Firebase registration token refreshed, new token: dw9svqtofk6spVObj8UAwI:APA91bGua-0yrBedEVMX_VsxRcb5suoC5PLqQMjFxHIGPEpsX2awUNW2c1A_HhQ7JlyXoQ-ZOplIucKqi5zQzzFZykVmvUJ2FEtLy7D_OJ3uhTHgwkJuH8hl_Zspk6KL0th1djsn67JO
2024-02-13 16:51:38.586 [Warning] [main] [NotificationManager.swift:340] messaging(_:didReceiveRegistrationToken:) > FCM token has changed from (null) to dw9svqtofk6spVObj8UAwI:APA91bGua-0yrBedEVMX_VsxRcb5suoC5PLqQMjFxHIGPEpsX2awUNW2c1A_HhQ7JlyXoQ-ZOplIucKqi5zQzzFZykVmvUJ2FEtLy7D_OJ3uhTHgwkJuH8hl_Zspk6KL0th1djsn67JO
2024-02-13 16:51:39.400 [Verbose] [main] [OnboardingScanningViewController.swift:229] tableView(_:didSelectRowAt:) > Selected row at 0 DiscoveredHomeAssistant(uuid: Optional("18cfc484e8e04a30ab1ca09cb1b29e69"), version: 2024.2.1, internalOrExternalURL: http://192.168.178.254, externalURL: nil, internalURL: Optional(http://192.168.178.254), locationName: "Home", bonjourName: Optional("Home"))
2024-02-13 16:51:39.407 [Info] [main] [OnboardingAuth.swift:80] performPreSteps(checkPoint:authDetails:sender:) > beforeAuth
2024-02-13 16:51:39.407 [Verbose] [main] [OnboardingAuthStepConnectivity.swift:25] perform(point:) > 
2024-02-13 16:51:39.667 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepConnectivity: fulfilled()
2024-02-13 16:51:39.667 [Verbose] [main] [OnboardingAuthLogin.swift:18] open(authDetails:sender:) > http://192.168.178.254/auth/authorize?response_type=code&client_id=https://home-assistant.io/iOS&redirect_uri=homeassistant://auth-callback
2024-02-13 16:51:52.829 [Info] [main] [OnboardingAuth.swift:154] configuredAPI(authDetails:instance:code:) > 
2024-02-13 16:51:52.918 [Verbose] [main] [OnboardingAuth.swift:162] configuredAPI(authDetails:instance:code:) > 
2024-02-13 16:51:52.922 [Info] [main] [OnboardingAuth.swift:95] performPostSteps(checkPoint:api:sender:) > beforeRegister
2024-02-13 16:51:52.929 [Info] [main] [Environment.swift:71] init() > WebSocket: connecting using HAConnectionInfo(url: http://192.168.178.254, userAgent: Optional("Home Assistant/2024.1 (io.robbie.HomeAssistant; build:2024.535; iOS 17.2.1)"), engine: nil, evaluateCertificate: Optional((Function)))
2024-02-13 16:51:52.932 [Info] [main] [Environment.swift:71] init() > WebSocket: Viability changed: true
2024-02-13 16:51:52.966 [Info] [main] [Environment.swift:71] init() > WebSocket: connected with headers: ["Upgrade": "websocket", "Server": "Python/3.12 aiohttp/3.9.3", "Date": "Tue, 13 Feb 2024 15:51:52 GMT", "Sec-WebSocket-Extensions": "permessage-deflate", "Connection": "upgrade", "Sec-WebSocket-Accept": "HC3AgbLkZ8EMpZxULroIOoWQ5A0="]
2024-02-13 16:51:52.966 [Info] [main] [Environment.swift:71] init() > WebSocket: phase transition to auth
2024-02-13 16:51:52.967 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: auth: required
2024-02-13 16:51:52.967 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: (auth)
2024-02-13 16:52:24.426 [Info] [main] [OnboardingAuth.swift:70] perform(checkPoint:checks:) > OnboardingAuthStepDuplicate: rejected(HomeAssistant.OnboardingAuthError(kind: HomeAssistant.OnboardingAuthError.ErrorKind.invalidURL, data: nil))
2024-02-13 16:52:24.427 [Info] [main] [OnboardingAuth.swift:183] undoConfigure(api:) > 
2024-02-13 16:52:24.481 [Info] [main] [Environment.swift:71] init() > WebSocket: disconnecting; permanently: true, error: nil
2024-02-13 16:52:24.482 [Info] [main] [Environment.swift:71] init() > WebSocket: phase transition to disconnected(error: nil, forReset: true)
2024-02-13 16:52:24.490 [Info] [main] [NotificationManagerLocalPushInterfaceExtension.swift:78] updateManagers() > 
2024-02-13 16:52:24.490 [Warning] [main] [WatchHelpers.swift:46] SyncWatchContext() > Tried to sync HAAPI config to watch but watch not paired or app not installed
2024-02-13 16:52:24.497 [Verbose] [main] [NotificationManagerLocalPushInterfaceExtension.swift:141] configure(managers:) > computed managers: [:]
2024-02-13 16:52:24.529 [Info] [com.apple.root.user-initiated-qos] [RealmScene.swift:71] willDelete(objects:server:realm:) > deleting actions []
2024-02-13 16:52:25.062 [Info] [main] [Bonjour.swift:34] stop() > 
2024-02-13 16:52:27.323 [Verbose] [main] [XCGLogger+Export.swift:17] export(from:sender:openURLHandler:) > Logs directory is: file:///private/var/mobile/Containers/Shared/AppGroup/CBA43265-D348-43BB-9EB5-32300F2F5338/logs/
2024-02-13 16:52:27.324 [Debug] [main] [XCGLogger+Export.swift:32] export(from:sender:openURLHandler:) > Exporting logs as filename 2024-02-13_16.52.27+0100.logs.zip

Does nobody have any idea what the problem could be?