Use cp instead of rsync to copy frameworks (refs #1063).

Add mkdir command to make sure the folder Contents/Frameworks exists (otherwise the first framework becomes this folder).
Change rsync command to cp to keep the file structure and all symbolic links.
Merge branch 'master' of https://github.com/ashtom/CocoaPods into ashtom-master

* 'master' of https://github.com/ashtom/CocoaPods:
  Use cp instead of rsync to copy frameworks (refs #1063).
Use cp instead of rsync to copy frameworks 2

Closes #1063