HideAllTips launch argument does not work in xctestplan

The launch argument -com.apple.TipKit.HideAllTips 1 does not work if it is defined in xctestplan arguments passed on launch. I tested it with the apple provided example app, where I created simple UI test and added xctestplan with launch argument -com.apple.TipKit.HideAllTips 1.

The app does not hide the tips when it is running the UI Tests.

Is there any solution that works? Thanks for reply.

Arguments in the test plan are passed to the test runner, which is the process where the test code executes. For a UI test, this is a different process than the app itself, which you launch using XCUIApplication.

To pass arguments or environment variables to apps launched in a UI test, use the corresponding APIs on XCUIApplication (.arguments and .environment) before you call .launch()

HideAllTips launch argument does not work in xctestplan
 
 
Q