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
原文地址:https://www.cnblogs.com/gavinliu1982/p/8400056.html