Fixed generic Xcode archive problem by moving ‘copy headers’ from public to private in the build phases.