iPadOS version 16.4

I updated my iPad today to version 16.4 and now when I try to transfer my app from Xcode to the iPad I get the following error: "Failed to prepare the device for development. This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility." My Xcode version is Version 14.2 (14C18).

Does anyone know how I can resolve this. I was able to transfer the app earlier today before I updated the iPad version.

Upgrading to Xcode 14.3 fixed the problem with getting the app on the iPad but now I can't archive with Xcode 14.3.

iPadOS version 16.4
 
 
Q