28 Star 160 Fork 184

野火IM/ios-chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release_libs_uniapp.sh 2.43 KB
一键复制 编辑 原始数据 按行查看 历史
heavyrian2012 提交于 2024-10-12 22:06 . 脚本
#!/bin/sh
TARGET_CLIENT_NAME=WFChatClient
TARGET_UIKIT_NAME=WFChatUIKit
set -e
CURRENT_PATH=`pwd`
PRG="$0"
PRGDIR=`dirname "$PRG"`
cd $PRGDIR
BUILD_DIR=`pwd`"/build"
rm -rf "${BUILD_DIR}"
mkdir -p "${BUILD_DIR}"
#创建输出目录,并删除之前的framework文件
UNIVERSAL_OUTPUT_FOLDER=`pwd`"/Libs&Resources"
rm -rf "${UNIVERSAL_OUTPUT_FOLDER}"
mkdir -p "${UNIVERSAL_OUTPUT_FOLDER}"
#清理
cd wfclient
xcodebuild -target ${TARGET_CLIENT_NAME} ONLY_ACTIVE_ARCH=YES -arch arm64 -configuration Release -sdk iphoneos BUILD_DIR="${BUILD_DIR}" clean
xcodebuild -target ${TARGET_CLIENT_NAME} ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" clean
cd ../wfuikit
xcodebuild -target ${TARGET_UIKIT_NAME} ONLY_ACTIVE_ARCH=YES -arch arm64 -configuration Release -sdk iphoneos BUILD_DIR="${BUILD_DIR}" clean
xcodebuild -target ${TARGET_UIKIT_NAME} ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" clean
#编译真机的Framework
cd ../wfclient
xcodebuild -target ${TARGET_CLIENT_NAME} ONLY_ACTIVE_ARCH=YES -arch arm64 -configuration Release -sdk iphoneos BUILD_DIR="${BUILD_DIR}" build
cd ../wfuikit
xcodebuild -target ${TARGET_UIKIT_NAME} ONLY_ACTIVE_ARCH=YES -arch arm64 -configuration Release -sdk iphoneos BUILD_DIR="${BUILD_DIR}" build
cd ..
xcodebuild -create-xcframework -framework "${BUILD_DIR}"/Release-iphoneos/"${TARGET_CLIENT_NAME}".framework -output "${UNIVERSAL_OUTPUT_FOLDER}"/${TARGET_CLIENT_NAME}.xcframework
xcodebuild -create-xcframework -framework "${BUILD_DIR}"/Release-iphoneos/"${TARGET_UIKIT_NAME}".framework -output "${UNIVERSAL_OUTPUT_FOLDER}"/${TARGET_UIKIT_NAME}.xcframework
rm -rf "${BUILD_DIR}"
##依赖
cp -af wfuikit/WFChatUIKit/AVEngine/WebRTC.xcframework "${UNIVERSAL_OUTPUT_FOLDER}"
rm -rf "${UNIVERSAL_OUTPUT_FOLDER}"/WebRTC.xcframework/ios-*-simulator
cp -af wfuikit/WFChatUIKit/AVEngine/WFAVEngineKit.xcframework "${UNIVERSAL_OUTPUT_FOLDER}"
rm -rf "${UNIVERSAL_OUTPUT_FOLDER}"/WFAVEngineKit.xcframework/ios-*-simulator
cp -af wfuikit/WFChatUIKit/Vendor/ZLPhotoBrowser/ZLPhotoBrowser.xcframework "${UNIVERSAL_OUTPUT_FOLDER}"
rm -rf "${UNIVERSAL_OUTPUT_FOLDER}"/ZLPhotoBrowser.xcframework/ios-*-simulator
cp -af wfuikit/WFChatUIKit/Vendor/SDWebImage/SDWebImage.xcframework "${UNIVERSAL_OUTPUT_FOLDER}"
rm -rf "${UNIVERSAL_OUTPUT_FOLDER}"/SDWebImage.xcframework/ios-*-simulator
#打开合并后的文件夹
open "${UNIVERSAL_OUTPUT_FOLDER}"
cd "${CURRENT_PATH}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/wfchat/ios-chat.git
git@gitee.com:wfchat/ios-chat.git
wfchat
ios-chat
ios-chat
master

搜索帮助