- 脚本代码:
if [ "${ACTION}" = "build" ] then INSTALL_DIR=${SRCROOT}/Products/IJKMediaFramework.framework DEVICE_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphoneos/IJKMediaFramework.framework SIMULATOR_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphonesimulator/IJKMediaFramework.framework if [ -d "${INSTALL_DIR}" ] then rm -rf "${INSTALL_DIR}" fi mkdir -p "${INSTALL_DIR}" cp -R "${DEVICE_DIR}/" "${INSTALL_DIR}/" #ditto "${DEVICE_DIR}/Headers" "${INSTALL_DIR}/Headers" lipo -create "${DEVICE_DIR}/IJKMediaFramework" "${SIMULATOR_DIR}/IJKMediaFramework" -output "${INSTALL_DIR}/IJKMediaFramework" #open "${DEVICE_DIR}" #open "${SRCROOT}/Products" fi
- 配置如下: