I'm experiencing the same issue on the latest iOS.
What I see
What I get
Feedback submitted FB13704192
Post
Replies
Boosts
Views
Activity
Filed under FB12325479 @garrett-davidson
Here's what works for me in Xcode 14:
tell application "Xcode"
set x to path of last item of source documents
display dialog x
end tell