Create fat builds of static, dynamic & framework libraries if both iOS and simulator versions have been created from separate manual Xcode builds. Refactor scripts for creating fat libraries to reuse across projects. Add MVK_BUILT_PROD_DIR to replace use of BUILT_PRODUCTS_DIR in most scripts to allow flexibility across per-platform compilation.
12 lines
271 B
Bash
Executable File
12 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export MVK_OS="macOS"
|
|
export MVK_BUILT_PROD_DIR="${BUILT_PRODUCTS_DIR}"
|
|
export MVK_FRWK_SUBPATH="Versions/Current/"
|
|
|
|
. "${SRCROOT}/../Scripts/create_framework.sh"
|
|
|
|
ln -sfn "${MVK_FRWK_SUBPATH}${PRODUCT_NAME}" "${MVK_BUILT_FRWK_PATH}/${PRODUCT_NAME}"
|