[Frameworks] Fix Analyzer Crash & Public Header Declaration

:warning: Do not merge, should be fast-forwarded without merge commit.
/c @neonichu