I'm on a Mac and trying to script out a few things from our build for Xcode. There are dSYM
that are directories that you can inspect with Show package contents
. In my script that gets run after Xcode builds, I try to copy a dSYM to the output directory.
my command is this:
cp -vR "${BUILD_PATH}/${CONFIGURATION}-${DEVICE_TYPE}/${FRAMEWORK}.dSYM" "${OUTPUT_FOLDER}/${FRAMEWORK}.dSYM"
Expanded that would basically look like
cp -vR "${BUILD_PATH}/${ANOTHER_FOLDER}/MyFramework.framework.dSYM" "${OUTPUT_FOLDER}/MyFramework.framework.dSYM"
What happens is I get my dsym folder copied into the dsym folder so it looks like this:
MyFramework.framework.dSYM/MyFramework.framework.dSYM
I can rm -rf
the dSYM before I copy it over, but was more curious if there was another way without removing it and what I was doing wrong. Thanks!
cp
command as you had before, it just skips that top-level dSYM directory so it doesn't get doubled-up. The -v flag makes for verbose output, showing each file that was copied; the -R flag makes it recurse down the source directory structure. – Jeff Schaller Oct 24 '18 at 09:58