-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue testing on physical iOS device (Log capture did not start) #4216
Comments
I also receive the same error when I attempt to test native applications. |
Same here. Currently I am completely unable to run tests on real devices. Is anyone aware of workarounds or env/versions that don't have this problem? |
This seems to be an issue when testing on iOS 8.x, whereas testing on 7.x does succeed getting past the log capture step. |
lately it has been one hundred percent consistent when using appium ruby console, whereas I haven't seen it happen when running tests with ruby lib. |
It could be related to timeouts and implicit waits. I think the default values are different in ARC vs ruby_lib. |
It works, if you don't pass |
@GindiKhangura could you retry without --force-ipad and using https://github.com/appium/appium/blob/master/bin/ios-webkit-debug-proxy-launcher.js |
Once I have a Mac available, I'll test it and let you know. Thanks! |
@sebv |
Same issue. XCode 5.1 ,iPhone4S 7.0, Appium 1.3.4 DesiredCapabilities:
Logs: Welcome to Appium v1.3.4 (REV c8c79a8) |
The issue still exists after omitting "forceIpad". I was not able to figure out what to do with the ios-webkit proxy that you linked me to, as the setup for the proxy was done using brew install, and I have no idea where it installed to. Regardless, Appium was unable to launch the application as it still faced the "Log capture did not start in a reasonable amount of time" issue. The issue does not seem to be with the proxy, as my understanding is that the proxy is only needed for webviews in a native app, and is not needed to launch the app. |
I'll check with the latest Appium 1.3.5 and update this post with my findings. |
Still having the same problem on 1.3.5. For me it's a problem when using iOS 8, but iOS 7 works fine. |
Hi, don't know if it will help, but I had this error and then I noticed the UDID I entered was wrong... |
I tried installing Appium 1.3.5, but ran into this issue: I then downloaded the Appium app 1.3.5 and configured the settings to connect to the hub. My first attempt failed due to some reason, so I ran the "Doctor" feature and found that the command line tools were not installed properly (thought I had done that step initially when setting up Appium). I allowed the app to fix the issue for me, and was then able to launch the application successfully. I will try the Appium JAR and post an update. I would recommend installing the Appium app and running the Doctor in case there is something missing. |
I am facing this issue as well, and that's happening when device can return any logs. I think device is collecting to many logs, so it can't log any more. Only reboot help. |
I am unable to reproduce the issue using Appium 1.3.4. Can someone else encountering this issue verify that the above steps resolves the issue for them? |
Hi, I tried the above commands and I still get the same error. As I am new to this I'm not sure if I'm missing any other step. I'm happy to share screen and show you if that would help. |
Just tried appium 1.3.5 and get the same error. Not to sound silly but as the error relates to logging (Log capture did not start in a reasonable amount of time), could I try disabling the logs? |
Alright, I figured it out, and when I realized what it was, I became sad :( @ShiranDadon was correct about the UDID being incorrect. On my Windows device, I retrieved the UDID from iTunes (not sure where else to get it from on Windows), and iTunes makes all characters in the UDID uppercase. If you use XCode on a Mac to get the UDID, the alphabetic characters are all lowercase (as least for my device). By using the uppercase UDID, I am able to reproduce the issue. By using the correct UDID from XCode, the issue is NOT reproducible. Can someone working on Appium please make this issue more apparent in the log messages, and also update the online documentation? |
I noticed that in the log files and capabilities declaration for the other posters facing this issue, their UDIDs are not all uppercase like mine. Perhaps there is another configuration issue that also results in a similar error message (incorrect device name, etc)? |
Thanks, updated my UDID. I now get a new error: info: [debug] Cleaning up appium session |
@IlyasPatel I also run into the same issue that you do when attempting to test Safari on an iOS device. Applications should work fine though. I have looked up the issue and there are a few posts regarding the issue, but the solutions are not very user-friendly (e.g. compiling SafariLauncher in XCode and deploying to device). |
I'm trying again by following the steps here: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/mobile-web.md When I try to run this command: ./reset.sh --ios --real-safari I get the below error. Previously it was issues with lodash but managed to install that but can't get passed this error.
|
The SafariLauncher issue should be discussed in another thread by opening a new issue as it does not pertain to this original one. |
ok I will. Out of interest, am i better off using an older version of iOS? Currently I'm using Mavericks. |
Take a look at this document (http://appium.io/slate/en/master/?ruby#automating-mobile-web-apps); it looks like you will need to deploy the SafariLauncherApp to the device using a provisioning profile. |
Ok closing since you figure out the original issue (And thanks I myself did not know about this windows issue). Open other issues for the other problems if needed. For the profile error, just install any app on the device direcly from xCode, and that should setup everything for you. |
I have "Googled" the issue and have found a few issues similar to what I'm seeing, but those are from older versions of Appium, and there is also a post saying that a fix was pushed out.
https://discuss.appium.io/t/log-capture-did-not-start-in-a-reasonable-amount-of-time/1075
https://discuss.appium.io/t/log-capture-did-not-start-in-a-reasonable-amount-of-time/1204
#3503
#3902
Capabilities setup:
where driver is a class member variable and yes, the device name and UDID are correct.
Server log:
Also, why does it state "Final device string is: 'GK025917 iPade (8.1 Simulator)'" when I have already defined the name and have made it clear that I'm not using a simulator?
On a side note, this test does successfully work on a simulator. I also have the developer settings enabled on the device. What I don't have is an XCode developer's license on the Mac machine. My setup is as the following:
The text was updated successfully, but these errors were encountered: