]> git.saurik.com Git - apple/security.git/blobdiff - xcscripts/install-test-framework.sh
Security-59754.80.3.tar.gz
[apple/security.git] / xcscripts / install-test-framework.sh
index ae4aae17ceae9f84c9a6e4c3668af0e447470cba..26b4b1b028b6d8cbb7114c906afe7a522fc09a82 100644 (file)
@@ -8,8 +8,9 @@ for a in ${TEST_FRAMEWORK_SEARCH_PATHS}; do
     if test -d "${a}/${framework}" ; then
         dst="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
 
     if test -d "${a}/${framework}" ; then
         dst="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
 
-           mkdir -p "{dst}" || { echo "mkdir failed with: $?" ; exit 1; }
+           mkdir -p "${dst}" || { echo "mkdir failed with: $?" ; exit 1; }
         ditto  "${a}/${framework}" "${dst}/${framework}" || { echo "ditto failed with: $?" ; exit 1; }
         ditto  "${a}/${framework}" "${dst}/${framework}" || { echo "ditto failed with: $?" ; exit 1; }
+        find "${dst}/${framework}" \( -name Headers -o -name Modules -o -name '*.tbd' \) -delete
         xcrun codesign -s - -f "${dst}/${framework}" || { echo "codesign failed with: $?" ; exit 1; }
 
         found=yes
         xcrun codesign -s - -f "${dst}/${framework}" || { echo "codesign failed with: $?" ; exit 1; }
 
         found=yes