自动编译、安装iOS安装包ipa

1. 自动编译

cd ..
rm -rf build/*
xcodebuild -configuration Release

# zip ipa
cd build
mkdir -p ipa/Payload
cp -r ./Release-iphoneos/abc.app ./ipa/Payload/
cd ipa 
zip -r abc.ipa *

cd ../../deploy
cp ../build/ipa/abc.ipa .

echo Finished building abc.ipa.


2. 自动安装

参考:

http://www.stewgleadow.com/blog/2011/11/05/installing-ios-apps-on-the-device-from-the-command-line/

http://gamua.com/blog/2012/03/how-to-deploy-ios-apps-to-the-iphone-via-the-command-line/

(后者在前者的基础上,自动化处理下载、编译等过程)

所以可使用后者的方法,下载它的ruby脚本transporter_chief.rb

直接输入命令:

./transporter_chief.rb abc.ipa

你可能感兴趣的:(Mac,iOS)