iOS app一键打包并上传服务器

来源:互联网 发布:用友t3软件数据备份 编辑:程序博客网 时间:2024/06/08 17:11

1.iOS工程自动打包并发布脚本实现
2.Xcode中Command Line Tool安装方法
3.脚本git连接
4.下载xcode_shell-master.zip包。

打包脚本使用方法
1.打开终端
2.在终端中直接拉两个文件路径



到这里就完成了一键打包的工作。
注:
1.中间如果出现提示下面这个错误:
xcrun: error: unable to find utility “PackageApplication”, not a developer tool or in PATH
后面根据对比发现新版的Xcode少了这个PackageApplication,先去找个旧版的Xcode里面copy一份过来。放到下面这个目录里:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
然后执行命令:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
chmod +x /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

2.中间在更改脚本的时候需要特别注意几个路径,分别是你项目在finder中的路径和打包完事后放置的路径,根据具体情况更改。

最后附上PackageApplication下载地址:
链接: https://pan.baidu.com/s/1jIPw0Iy 密码: 4htw

接下来就是ftp完成上传包到服务器
下载安装配置FileZilla

连接服务器准备上船ipa包
这里写图片描述

这里写图片描述

阅读全文
0 0
原创粉丝点击