issue/2871 - Fix the framework copy and codesigining issues

Forget the other one... that one is cleaner!
The parameter `--exclude '*.h'` which was printed by the original echo, was intented to be listed also on the really excuted command line. That's my fault. But we need to strip the headers from the framework on copy. That's also what Xcode does, there is an internal attribute therefore, which is not shown in the GUI.