Comments (13)
@DanKovt You can either use the the MacOS Console app and retrieve the device log by selecting it from the left pane and then click on "Start Streaming", or by using the idevicesyslog
utility from libimobiledevice.
from appium.
Error getting main window kAXErrorServerNotFound
Unfortunately this error is coming from xctest itself and we cannot do anything to change that behaviour. Try to google it, maybe there are some good advices for possible workarounds elsewhere.
from appium.
@mykola-mokhnach I've seen all these issues, but maybe you can tell more about problem itself, so we at lease can fix it from our side please? Because we can't understand what exactly cause this issue.
from appium.
Unfortunately I also don't know exactly. The exception is thrown by xctest when it tries to take a snapshot of the app accessibility tree. There must be something preventing it from doing that. Apple did not make it easy - XCTest is a closed-source framework, so only their engineers might know more details.
I would also try to look for device logs, maybe xctest leaves some useful traces there.
from appium.
@Dan-Maor Do you have any ideas on the above?
from appium.
This sounds similar to an issue I encountered before where testmanagerd
fails to write automation information to the standardUserDefaults
because the daemon responsible for the user defaults hanged. This is usually caused by stressing devices for long periods of time by repeatedly uninstalling, reinstalling and starting an automation session against the freshly installed application. This does not happen with every app and the root cause was very challenging to understand at the time. In any case, the only fully valid solution for it was a full device reboot when the issue occurs.
@DanKovt in order to confirm, will you be able to provide a full syslog of a full session creation from a device in the faulty state?
from appium.
@Dan-Maor can you provide instructions how I can do this please?
Also, I've tried full device reboot and app reinstall, but it didn't help as well.
from appium.
@Dan-Maor Attaching logs for my iPhone from MacOS Console as you requested.
logs.txt
from appium.
Thanks @DanKovt . While the log does not show the entire session creation sequence (possibly filtered to only show error level), the first line indicates that this is the same scenario Iβve encountered.
Not updating lastKnownShmemState in CFPrefsPlistSource<0x6f6c0a440> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): 113 -> 406
testmanagerd
is unable to write a preference value, suggesting that cfprefsd
might be in a hanged state, and thus cannot write the relevant properties to the standardUserDefaults
of the application in order to enable automation access.
Like I mentioned previously, the only solution we were able to find was to reboot the device in question when it gets to such a state. Perhaps a factory reset could help as well, but I cannot guarantee that it will resolve the problem permanently.
from appium.
Closed as third party issue
from appium.
Hi guys (@Dan-Maor @mykola-mokhnach), our dev team figured out what caused the issue! . You were right, the issue lies with an third library used in our project.
Since we work with react-native, we sometimes need components written in native code that are bridged into JS. This library allowed us to avoid writing bridge classes in Objective-C, enabling us to directly implement such components in Swift. Everything stopped working due to adapting the project for building with Xcode 15.
In short, the problem was caused by use of the class_getClassMethod method. By switching from it to class_copyMethodList, everything started working again ππ
from appium.
Thanks for the update. I hope it would be useful to other people facing similar issues
from appium.
In short, the problem was caused by use of the class_getClassMethod method. By switching from it to class_copyMethodList, everything started working again ππ
Hi, we also have the problem in a react native app. What 3rd party library was it and how did you find out?
from appium.
Related Issues (20)
- |org.openqa.selenium.SessionNotCreatedException: Failed to set language: en and country: EN HOT 2
- Info: <Getting unspported Command Exception while using getContextHandles merhod> HOT 12
- Getting unexpected data: {"Error":"InvalidHostID","Request":"StartSession"} while calling driver.device_time HOT 7
- MacOS: appium-doctor cannot find bundletool.jar HOT 4
- xcodebuild failed with code 70 HOT 10
- bug: Running Appium from JavaScript has invalid signature for subcommand "driver" HOT 5
- chrome driver doesn't start on android simulator HOT 4
- [Feat]:Is there any chance to analyze the text color, importantForAccessibility and other features of android.widget.View in appium in the futureοΌ HOT 2
- Error: Cannot start Appium session on real android device with Mac M1 - Device UDID is being dropped by Appium HOT 4
- bug: latest XCUItest driver does not show system dialogs (alerts) in hierarchy HOT 6
- bug: adb setting device id failed on android 14 HOT 1
- bug: [ADB] Setting device id to HOT 3
- bug: No Chromedriver found on mobile platform MacOS - Appium HOT 2
- [Feat]: check the support of non-WebKit browser in xcuitest driver
- execute script error: this[methodName] is not a function HOT 2
- May I ask what happens when clicking and swiping on an Android phone with an error message and there is no operation on the phone HOT 3
- bug: Executing script "mobile:swipe" results in a stale element error HOT 2
- bug: Cannot install uiauatomator2 behind corporate proxy HOT 3
- iOS Simulator crashes the app when interacting with a consent pop up HOT 4
- I'm geting errors when running appium2.4.1 with latest version and using gestures plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium.