代码拉取完成,页面将自动刷新
#!/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'."
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。