Created
May 10, 2020 21:38
-
-
Save josuesasilva/4b71c7a0c0d21642b9e6871374bc4c02 to your computer and use it in GitHub Desktop.
Copying React Native prebuilt libraries and headers
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
WORKSPACE="../RNBuild" | |
HEADERS_SRCROOT=${SRCROOT}/Headers/Public | |
HEADERS_TARGETDIR=${WORKSPACE}/Headers | |
TARGET_DIR=${WORKSPACE} | |
mkdir -p ${TARGET_DIR}/{Simulator,Device,Headers,Universal} | |
find ${BUILD_DIR}/Debug-iphoneos -type f \( -iname "*.a" ! -iname "libPods*.a" \) -exec cp "{}" ${TARGET_DIR}/Simulator \; | |
find ${BUILD_DIR}/Debug-iphonesimulator -type f \( -iname "*.a" ! -iname "libPods*.a" \) -exec cp "{}" ${TARGET_DIR}/Device \; | |
for f in $(ls ${TARGET_DIR}/Simulator); do | |
lipo -create "${TARGET_DIR}/Simulator/${f}" "${TARGET_DIR}/Device/${f}" -output "${TARGET_DIR}/Universal/${f}" | |
done | |
rsync ${HEADERS_SRCROOT}/ ${HEADERS_TARGETDIR}/ -a --copy-links -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment