I’m trying to launch photos app in ios simulator and getting error:
org.openqa.selenium.InvalidArgumentException: Error Domain=FBSOpenApplicationServiceErrorDomain Code=4 “The request to open “com.apple.com.apple.mobileslideshow” failed.” UserInfo={BSErrorCodeDescription=InvalidRequest, NSLocalizedDescription=The request to open “com.apple.com.apple.mobileslideshow” failed., FBSOpenApplicationRequestID=0xea68, NSUnderlyingError=0x600000ce2b50 {Error Domain=FBSOpenApplicationErrorDomain Code=4 “Application info provider (FBSApplicationLibrary) returned nil for “com.apple.com.apple.mobileslideshow”” UserInfo={BSErrorCodeDescription=NotFound, NSLocalizedFailureReason=Application info provider (FBSApplicationLibrary) returned nil for “com.apple.com.apple.mobileslideshow“}}}
Build info: version: ‘4.22.0’, revision: ‘c5f3146703*’
System info: os.name: ‘Mac OS X’, os.arch: ‘aarch64’, os.version: ‘14.5’, java.version: ‘22.0.1’
Driver info: io.appium.java_client.ios.IOSDriver
Command: [d9a9bf19-e5ed-4b47-903d-56681c5b2d3a, executeScript {args=[{bundleId=com.apple.com.apple.mobileslideshow}], script=mobile:launchApp}]
Capabilities {appium:automationName: XCuiTest, appium:databaseEnabled: false, appium:deviceName: iphone 14 promax, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: false, appium:platformVersion: 17.5, appium:takesScreenshot: true, appium:udid: 7082A8A0-749F-4719-9CCA-232…, appium:wdaLaunchTimeout: 10000, appium:webStorageEnabled: false, platformName: IOS}
Session ID: d9a9bf19-e5ed-4b47-903d-56681c5b2d3a
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:138)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:50)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:190)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:463)
at org.IOS.IOSswipe.existing(IOSswipe.java:11)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141)
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:686)
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:230)
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:63)
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:992)
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:203)
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:154)
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:134)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
at org.testng.TestRunner.privateRun(TestRunner.java:739)
at org.testng.TestRunner.run(TestRunner.java:614)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:421)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)
at org.testng.SuiteRunner.run(SuiteRunner.java:312)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1208)
at org.testng.TestNG.runSuites(TestNG.java:1112)
at org.testng.TestNG.run(TestNG.java:1079)
at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:65)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)
I was expecting it to launch as my test app without any issues. My question here is: can we access in-build apps in iOS with appium? if yes, how?
frustratedBit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.