Skip to content

Commit

Permalink
[LOCAL] fix copy-hermes-xcode.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Rykun committed Nov 22, 2022
1 parent ba1a9de commit fc1dbb8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions sdks/hermes-engine/utils/copy-hermes-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@

set -x

source="${PODS_ROOT}/hermes-engine/destroot/Library/Frameworks/${PLATFORM_NAME}/hermes.framework"
src="${PODS_ROOT}/hermes-engine/destroot/Library/Frameworks/${PLATFORM_NAME}/hermes.framework"

if [[ -f "$source" ]]; then
cp -R "$source" "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes/hermes.framework"
cp -R "$source" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
if [[ ! -e "$src" ]]; then
echo "$src does not exist."
exit 1
fi

dst1="${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes"
[ ! -f "$dst1" ] && mkdir -p "$dst1"
cp -R "$src" "$dst1"

dst2="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
[ ! -f "$dst2" ] && mkdir -p "$dst2"
cp -R "$src" "$dst2"

0 comments on commit fc1dbb8

Please sign in to comment.