我可以自动执行从应用商店安装的 ios 应用程序吗?

Can i automate the ios app which is installed from app store?

我想在实际应用中使用 appium 工具自动化 iOS 应用程序。我已经从应用商店安装了应用程序。那么如何在真实设备中启动该应用程序。那么我可以使用 appium 自动化应用程序的 Sign in/Sign 功能吗?

我添加了像

这样的依赖
cap.setCapability("platformName", "iOS");
cap.setCapability("platformVersion", "11.4");
cap.setCapability("deviceName", "iPhone 8");
cap.setCapability("UDID", "hsgd57576s5dfsdf7s56d7f5s");
cap.setCapability("app", “appname.app“);  

该应用未在真实设备中启动。

你用错了Desired Capability

app - The absolute local path or remote http URL to a .ipa file (IOS), .app folder (IOS Simulator), .apk file (Android) or .apks file (Android App Bundle), or a .zip file containing one of these (for .app, the .app folder must be the root of the zip file). Appium will attempt to install this app binary on the appropriate device first. Note that this capability is not required for Android if you specify appPackage and appActivity capabilities (see below). Incompatible with browserName. See here about .apks file.

为了自动化 iOS 应用程序,无论来源如何,您都需要传递 bundleId 而不是

bundleId - Bundle ID of the app under test. Useful for starting an app on a real device or for using other caps which require the bundle ID during test startup. To run a test on a real device using the bundle ID, you may omit the 'app' capability, but you must provide 'udid'.

还要确保遵循 Appium XCUITest Driver Real Device Setup as you will need to set up provisioning profile for the WebDriverAgent-Runner application in order to be able to deploy it onto real iOS device. If you're not too familiar with provisioning profiles and code signing I would recommend considering using Appium Studio 中的说明,它提供了一个 GUI 向导,允许设置 Apple 开发者帐户并正确配置代码签名,以便在真实的 iOS 设备上进行 运行 Appium 测试.