1 Star 1 Fork 0

ZhangJitao/AutoArchive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
auto_build_me.sh 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
ZhangJitao 提交于 2018-03-08 09:57 . 脚本
scheme="Penjing"
project_path="/Users/ZJtao/Desktop/Project/Discuz/Discuz_iOS/DiscuzMobile"
development_team="开发者id"
code_sign="a4d6901e-2358-4b75-bf11-192fc3b53118"
sign_name="描述文件名"
autoBuild() {
#打包之前先清理一下工程
xcodebuild clean \
-scheme ${scheme} \
-configuration Release
if [[ $? != 0 ]]; then
exit
fi
#开始编译工程 - 导出.xcarchive文件
xcodebuild archive \
-workspace "${project_path}/DiscuzMobile.xcworkspace" \
-scheme ${scheme} \
-configuration Release \
-archivePath "./build/${scheme}.xcarchive" \
# CODE_SIGN_IDENTITY="iPhone Distribution: Beijing Comsenz-service Technology Limited (5ZLZJ65EY9)" \
# DEVELOPMENT_TEAM=${development_team} \
# PROVISIONING_PROFILE=${code_sign} \
# PROVISIONING_PROFILE_SPECIFIER=${sign_name}
if [[ $? != 0 ]]; then
exit
fi
#导出ipa包
xcodebuild -exportArchive \
-archivePath "${project_path}/build/${scheme}.xcarchive" \
-exportPath "~/Desktop/PublishIPA/${scheme}" \
-exportOptionsPlist "./build/${scheme}/exportTest.plist"
if [[ $? != 0 ]]; then
exit
fi
}
autoBuild
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/zhangjitao0/AutoArchive.git
git@gitee.com:zhangjitao0/AutoArchive.git
zhangjitao0
AutoArchive
AutoArchive
master

搜索帮助