xcode 如何获得用于 appium 测试的 iOS 应用程序构建?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40672815/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:35:50  来源:igfitidea点击:

How to get an iOS app build for appium testing?

iosxcodeautomated-testsappiumappium-ios

提问by JTN

I wanted to setup iOS testing on simulator on my MacBook-pro. Im using appium 1.6 and Xcode 8 and iOS 10.1 as simulator OS. I ran my appium server and set the desired capabilities and used an .ipa from the app store and it crashes on launch while doing an inspect on appium. Is it happening because i don't have a app signed for development? what are the requirements for the app to be tested for using? Do i need signed apps to be used for testing on simulator too ?

我想在我的 MacBook-pro 上的模拟器上设置 iOS 测试。我使用 appium 1.6 和 Xcode 8 和 iOS 10.1 作为模拟器操作系统。我运行了我的 appium 服务器并设置了所需的功能,并使用了应用商店中的 .ipa,它在对 appium 进行检查时在启动时崩溃了。发生这种情况是因为我没有为开发签名的应用程序吗?要测试使用的应用程序有哪些要求?我是否也需要签名的应用程序用于在模拟器上进行测试?

回答by noor

You can create a .app file useing the belowing instruction:

您可以使用以下说明创建 .app 文件:

1- Go to:

1- 前往:

xcode > File > New Project > (select ios at top bar) select Tabbed Application > click Next > give project name and select swift as language and complete process.

2- Open the project and run it. After running the app in the simulator, you will find the project .app file in the product folder (expand your project in xcode > product.

2- 打开项目并运行它。在模拟器中运行应用程序后,您会在产品文件夹中找到项目 .app 文件(在 xcode > product.xml 中展开您的项目)。

you can use this .app file for your appium test.

您可以使用此 .app 文件进行 appium 测试。

3- You can also get a lot of free .xcode project on the web. download this project, open the .xcodeproj or .xcworkspace file in xcode and run it. you will find the .app file in the product folder

3- 您还可以在网络上获得很多免费的 .xcode 项目。下载这个项目,在 xcode 中打开 .xcodeproj 或 .xcworkspace 文件并运行它。您将在产品文件夹中找到 .app 文件

if you want to run your ios app in the simulator, you need a .app file, not .ipa file. The .ipa file runs on the device. Try to generate a .app file for simulator.

如果你想在模拟器中运行你的 ios 应用程序,你需要一个 .app 文件,而不是 .ipa 文件。.ipa 文件在设备上运行。尝试为模拟器生成一个 .app 文件。

回答by karthick23

Yes, you need apps to be signed with a developer provisiioning profile. You can use the iresignto do it. you should input your ipa file developer provisioning file(contact your dev) and click resign. It will output the resigned app

是的,您需要使用开发人员配置文件对应用程序进行签名。您可以使用iresign来执行此操作。您应该输入您的 ipa 文件开发人员配置文件(联系您的开发人员)并单击退出。它将输出已辞职的应用程序

The same dev provisioning file, dev certificate should be installed in your mac from where you run your scripts.

相同的开发配置文件,开发证书应该安装在您运行脚本的 mac 中。

Note: you cannot run .ipa on simulators. you need .app version of the app , for which you need to contact the developer too

注意:您不能在模拟器上运行 .ipa。您需要应用的 .app 版本,为此您也需要联系开发者