Is it possible to hide source code when releasing framework through Swift Package Manager?

Nope. See SPM Support for Binaries Distribution.