IOS 18 not working with Xcode

I have upgraded my iphone os to ios18. Now it is not connecting with xcode anymore. It is asking for software update in my mac though but unfortunately software update is getting failed saying that "the software is not available in store right now". What to do now?

iOS 18 is in beta and has to be used with Xcode 16 beta.

IOS 18 not working with Xcode
 
 
Q