如何从.xcarchive检索.app文件? [英] How to retrieve a .app file from the .xcarchive?

查看:125
本文介绍了如何从.xcarchive检索.app文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Appium来自动化我们的移动应用程序,并且我意识到,为此,我们需要指定.app文件的路径.但是,在归档后,我只得到了.xcarchive文件,但我不知道下一步该怎么做.

I am trying to use Appium to automate our mobile app, and I realize that in order to do so we need to specify the path to .app file. However after archiving I get only the .xcarchive file which I don't know what to do next..

我的xcode版本是5.1.

My xcode version is 5.1.

请告知如何进行,谢谢!

Please advise how to proceed, thanks!

推荐答案

两个选项:

  1. 构建.ipa而不是.xcarchive (此处的说明) --app arugment接受.ipa,.app和甚至.zip文件. (尝试将其指向.xcarchive!我不知道它是否可以工作)

  1. Build an .ipa instead of .xcarchive (Instructions here) Appium's --app arugment accepts .ipa's as well as .app's and even .zip files. (Try pointing it at .xcarchive! I have no idea if it'll work)

构建并运行

  1. 转到/Users/blah/Library/Application \ Support/iPhone \ Simulator/7.1/Applications
  2. 找到您的应用
  3. 复制.app文件
  4. 将其放在模拟器目录之外的某个位置(因此当appium重置模拟器时,它将进行应用程序的全新安装)

这篇关于如何从.xcarchive检索.app文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆