Created
April 23, 2019 21:17
-
-
Save brennanMKE/83d53466ffe2eb020c81e941b72c27a1 to your computer and use it in GitHub Desktop.
Copy XCTest.framework into BUILT_PRODUCTS_DIR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
if [ ${ARCHS} = "x86_64" ]; then | |
TARGET_PLATFORM="iPhoneSimulator" | |
else | |
TARGET_PLATFORM="iPhoneOS" | |
fi | |
SOURCE_PATH=${DEVELOPER_DIR}/Platforms/${TARGET_PLATFORM}.platform/Developer/Library/Frameworks/XCTest.framework | |
DESTINATION_PATH="${BUILT_PRODUCTS_DIR}/XCTest.framework" | |
if [ -d "${DESTINATION_PATH}" ]; then | |
rm -rf "${DESTINATION_PATH}" | |
fi | |
cp -rp "${SOURCE_PATH}" "${BUILT_PRODUCTS_DIR}" | |
lipo -info "${DESTINATION_PATH}/XCTest" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment