Mohamed Wasiq
Mohamed Wasiq

Reputation: 587

How to install iOS app on a real device for iOS Test Automation?

I am writing XCUITests for an app without source code. I have .app file of the app. I am using XCUIApplications init(bundleIdentifier:) method to launch the application. This works fine if I have the app pre installed on the device. If I don't have the app insalled, XCUIApplication fails to launch the app as it cannot find the build. How can I provide .app file of the app to Xcode to install and launch the application using init(bundleIdentifier:) ?

Upvotes: 1

Views: 556

Answers (1)

Roman Zakharov
Roman Zakharov

Reputation: 2273

It is usually done with https://github.com/libimobiledevice/ideviceinstaller

This tool allows installing and uninstalling the apps

Upvotes: 1

Related Questions