This error is showing with xcode 16.2 and rider 2024. The solution for me was to update Rider to 2024.3 as discussed here https://rider-support.jetbrains.com/hc/en-us/community/posts/22789137492882-error-HE0004-Could-not-load-the-framework-IDEDistribution