Pushing image files to remote Appium iOS Simulator

If I want to send photos to the iOS Simulator on a remote Appium server, what’s the path I need to provide so the iOS Photos app will show them?

contents = File.read("/localdisk/photos/test-image.jpg")
push_file(path, contents)

What should path be?

See mine code here: iOS simulator photos app

Thank you, but will this work when using a remote Appium server? I suspect this will only work when you’re executing your test script on the same machine as the Appium server.

you are correct. lucky i am starting appium on remote also (on any jenkins slave) in code thus i do not have your problem.