Python CI中iOS项目自动打包运行

依赖:ios-deploy

安装:brew install node

          npm install -g --unsafe-perm=true ios-deploy

项目代码片段(运行测试build):

def __build_run_app(self, test_compile_folder):
try:
xcodebuild='xcodebuild' # -sdk iphoneos10.2'
os.chdir(test_compile_folder)
os.system(xcodebuild)
os.chdir(test_compile_folder + '/build/Release-iphoneos')
start_app_cmd='ios-deploy' + self.__device + '-I -d -b test_ios.app'
os.system(start_app_cmd)
return 0
except:
return -1
posted @ 2018-02-01 17:14  GavinLJC  阅读(429)  评论(0编辑  收藏  举报