...
and then copy the useful directories to another location
Please note that the shared libraries have their paths hardcoded - this must be fixed before distributing the build. First you can check the output obtained using:
otool -L
then fix the shared library using:
install_name_tool -id newID fileName
and
install_name_tool -change oldName newName fileName