Posts

Post not yet marked as solved
1 Replies
349 Views
I'm having trouble getting _XCAppClipURL to work in UI tests for my AppClip. My app clip relies on a query parameter in the URL, but it seems like when running my UI Tests, there is no userActivity with the URL as expected. It works as expected when running the app normally, but does not work in my UI Tests. I've tried setting the environment variable in my UI Test scheme, as well as in my XCTestCase's setUp function, by setting the value in XCUIApplication.launchEnvironment like this:     override func setUpWithError() throws {         continueAfterFailure = false         app = XCUIApplication()         app.launchEnvironment["_XCAppClipURL"] = "https://<my url here>"         app.launch()     }  Has anyone had success with this or know if it's a known issue?
Posted
by dc-c5.
Last updated
.