1 Star 0 Fork 0

老王/FileBrowser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Roy Marmelstein 提交于 2017-09-20 15:50 . Fix build script
#!/bin/bash
# **** Update me when new Xcode versions are released! ****
PLATFORM="platform=iOS Simulator,OS=11.0,name=iPhone 8"
SDK="iphonesimulator"
# It is pitch black.
set -e
function trap_handler() {
echo -e "\n\nOh no! You walked directly into the slavering fangs of a lurking grue!"
echo "**** You have died ****"
exit 255
}
trap trap_handler INT TERM EXIT
MODE="$1"
if [ "$MODE" = "framework" ]; then
echo "Building and testing FileBrowser."
xcodebuild \
-project FileBrowser.xcodeproj \
-scheme FileBrowser \
-sdk "$SDK" \
-destination "$PLATFORM" \
build test
trap - EXIT
exit 0
fi
if [ "$MODE" = "examples" ]; then
echo "Building and testing all FileBrowser examples."
for example in examples/*/; do
echo "Building $example."
pod install --project-directory=$example
xcodebuild \
-workspace "${example}Sample.xcworkspace" \
-scheme Sample \
-sdk "$SDK" \
-destination "$PLATFORM" \
build
done
trap - EXIT
exit 0
fi
echo "Unrecognised mode '$MODE'."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hsq168/FileBrowser.git
git@gitee.com:hsq168/FileBrowser.git
hsq168
FileBrowser
FileBrowser
master

搜索帮助