Look here: https://stackoverflow.com/questions/70610403/swiftui-add-refreshable-to-lazyvstack
Post
Replies
Boosts
Views
Activity
xcode-select --print-path
You may need to change this to your Xcode installation if you separately installed the command line tools and that is the issue:
xcode-select -switch /Applications/Xcode.app
Try also building with clang++ instead of clang. This was causing a linking issue for me.