I am getting the error, Simulator architecture is unsupported, when running my appium tests? What deployment target do I need to use? Thanks in advance
Error in full:
Error: [init({"platformName":"iOS","platformVersion":"10","deviceName":"iPhone 11","app":"./apps/myracnative.ipa","udid":"4F94755B-6323-46B0-ACB4-469FB50BAD95","automationName":"XCUITest"})] The environment you requested was unavailable.
An unknown server-side error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/var/folders/5l/ns5fgsk57wvcqbpvv6d_wl800000gn/T/2022529-5352-1wvey6q.zyww/myracnative.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
self.appium_driver_instance.find_element_by_id("ConfigJSONKey").set_text('adb')
send_keys
, set_value
but didn't work[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] Calling AppiumDriver.setValue() with args: [["a","d","b"],"unity-element-2262","41ac71b8-5447-4225-b47c-323a6534af65"]
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] Matched '/element/unity-element-2262/value' to command name 'setValue'
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] Added 'value' property ["a","d","b"] to 'setValue' request body
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] Proxying [POST /element/unity-element-2262/value] to [POST http://127.0.0.1:8297/session/dca81d4b-1fce-4e5f-9888-724b19e48e41/element/unity-element-2262/value] with body: {"elementId":"unity-element-2262","text":"adb","replace":false,"value":["a","d","b"]}
[AndroidUiautomator2Driver@4902 (41ac71b8)] Got response with status 404: {"sessionId":"dca81d4b-1fce-4e5f-9888-724b19e48e41","value":{"error":"no such element","message":"The element identified by 'unity-element-2262' is not present in the cache or has expired. Try to find it again","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: The element identified by 'unity-element-2262' is not present in the cache or has expired. Try to find it again\n\tat io.appium.uiautomator2.model.ElementsCache.get(ElementsCache.java:160)\n\tat io.appium.uiautomator2.handler.SendKeysToElement.safeHandle(SendKeysToElement.java:104)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:267)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:261)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChann...
[debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] Encountered internal error running command: io.appium.uiautomator2.common.exceptions.ElementNotFoundException: The element identified by 'unity-element-2262' is not present in the cache or has expired. Try to find it again
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.model.ElementsCache.get(ElementsCache.java:160)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.handler.SendKeysToElement.safeHandle(SendKeysToElement.java:104)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:267)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:261)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [AndroidUiautomator2Driver@4902 (41ac71b8)] at io.netty.
while trying to run the test I got this exception :
file or directory '/home/user/StudioProjects/mobile/test-appium/build/classes/java/test', not found
any idea how can I change the path to become :
'/home/user/StudioProjects/mobile/test-appium/build/classes/kotlin/test'
Hi everyone. I'm in need of some appium help. I have appium authenticating an app with biometrics enabled on android. The app running in Sauce Labs uses a different call to authenticate biometrics than a local emulator. The call to Sauce Labs works perfectly, but when doing the calls on a local android emulator, they fail to authenticate. The Android emulator has a fingerprint setup on fingerprint 1.
I am using python and tried,driver.finger_print(1)
It fails.
I then bypassed driver with the appium http api like this,http://0.0.0.0:4723/wd/hub/session/<appium_session_id>/appium/device/finger_print
with a json body of,
{
"fingerprintId": 1
}
and it still fails.
the appium server output is,
[HTTP] --> POST /wd/hub/session/a4488470-2f44-4c51-b145-ec930b10a4fc/appium/device/finger_print
[HTTP] {"fingerprintId":1}
[W3C (a4488470)] Calling AppiumDriver.fingerprint() with args: [1,"a4488470-2f44-4c51-b145-ec930b10a4fc"]
[ADB] Getting connected emulators
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[ADB] 1 emulator connected
[ADB] Running '/Users/Shel/Library/Developer/Xamarin/android-sdk-macosx/platform-tools/adb -P 5037 -s emulator-5554 emu finger touch 1'
[W3C (a4488470)] Responding to client with driver.fingerprint() result: null
ANY help here would be appreciated. I'm really stuck.