Error: The application at '/appTest/src/test/resources/apk/myapp.ipa' does not exist or is not accessible

Hi there, I encountered the following error “Error: The application at ‘/appTest/src/test/resources/apk/myapp.ipa’ does not exist or is not accessible” while running appium test on ios simulator.

Below are my capability settings.
@BeforeTest
public void setup() throws MalformedURLException{

	DesiredCapabilities caps = new DesiredCapabilities();
	caps.setCapability("deviceName", "iPhone 8"); 
	caps.setCapability("platformName", "iOS");
	caps.setCapability("automationName", "XCUITest"); 
	caps.setCapability("platformVersion", "12.1");
	File app = new File("/appTest/src/test/resources/apk/myapp.ipa");
	caps.setCapability("app", app.getAbsolutePath());	
	caps.setCapability("clearSystemFiles", true);
	caps.setCapability("wdaStartupRetryInterval", 1000);
	caps.setCapability("wdaStartupRetries", 5);
	caps.setCapability("useNewWDA", false);
	caps.setCapability("appPackage", "com.sothebys.appletv");
	caps.setCapability("appActivity", "com.sothebys.reactnative.MainActivity");
       caps.setCapability("noReset", false);
	
	driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"), caps);
	driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}

I copied the ipa file under my project folder /appTest/src/test/resources/apk.
Can you help me fix this issue?
Thanks!!

I am getting this error too. any fix?

Does it run correctly on real devices?

Try relative path instead of absolute path:

https://www.linuxfoundation.org/blog/classic-sysadmin-absolute-path-vs-relative-path-in-linux-unix/