If you are using CocoaPods, open yourProject.workspace instead of yourProject.xcodeproj.
CocoaPods
yourProject.workspace
yourProject.xcodeproj
Did you try to remove the cache ?
rm -rf /Users/abdulrehman/Desktop/StudentMentor/DerivedData/ModuleCache/DLJPQMLQI1Q/
(I might have wrong copied your file path. So feel free to type it manually if there is nothing to remove at this path)
If you're working with SPM, deleting the .build folder and re-running swift build solves the issue for me.
.build
swift build