Pages

Tuesday, 27 June 2017

使用命令行安装ipa

需要的环境:
Mac OS
安装工具:
npm install -g ipa-deploy
npm install -g ios-deploy
使用:
ipa-deploy <path_to_ipa_file>
示例:
ipa-deploy myapp.ipa
工作原理:
# 将ipa文件解压到临时文件夹tmp
mkdir ./tmp
cd ./tmp
unzip <path_to_ipa_file>

# 运行 ios-deploy 安装ipa到设备
ios-deploy -b ./Payload/*.app

# 清理tmp文件夹
cd ..
rm -r ./tmp 
 
Github链接:https://github.com/floatinghotpot/ipa-deploy
参考链接:ipa-deploy
 
https://github.com/floatinghotpot/ipa-deploy/issues/3

 
 

No comments:

Post a Comment