I'm trying to get Printer Simulator working with the iOS Simulator for testing printing, but I'm unable to do so. The preview area remains blank with a spinning wheel in it, and tapping Print closes the printing window without anything happening.
Notably, attempting to print produces the following in Printer Simulator's log:
[19/Sep/2018:03:34:58 -0400] [Client 1] Encrypting connection.
[19/Sep/2018:03:34:59 -0400] [Client 1] Unable to encrypt connection from 192.168.2.59: Unable to find server credentials.
(where the Client number starts at one and climbs to 6).
A little googling suggests that maybe some connection/permission/security issues may be in play, so I checked out Keychain to see (as one of the solutions suggests) if there's anything amiss there.
Now, I didn't actually do anything. But the next time I tried to print from my app in the Simulator with Printer Simulator running, I got the attached: "certtool wants to use the 'ssl' keychain."
Except I've never heard of the "ssl" keychain. There is no ssl keychain in the Keychain utility. No password I would have used works, nor does an empty one.
And now, having restarted my app and Printer Simulator, I'm back to the original error(s), and the keychain message no longer appears.
Has anyone run into something like this before?
Related
I am facing a strange issue, appium just flashes white Screen and does not open the app and if i keep the app open manually in the emulator it works. This issue just happen all of sudden.
My Observations on this issue. ( Not aware how to resolve this )
it happens only for few apps like Telegram
in the appium logs i dont see appPackage and Activity ( even though i have set capabilities)
in the logs i see this msg "[UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application
"
in the logs i see " [AndroidDriver] No app sent in, not parsing package/activity "
Solutions I tried:
updated the app
appPackage and Activity is correct
tried clearing the cache of the app / reinstalled it
tried in real device still no luck
Any help is much appreciated
Logs are too lengthy to attach here
its resolved, It was a silly mistake, i had given a different property and in the desired caps i used a different property name (basically the place where i am storing the appPackage and Activity name and where i am using it was different )
While developping an app for an iPad on my Mac, I use print logs to monitor what is going on (regular prints in Swift code). However I really don't like the Xcode console, and I'd like to be able to redirect the stream to a file, where I can then read it with a better log viewer (and add color!).
I'm executing the app in debug mode through Wifi on my iPad, but I want the logs on my Mac, so storing the logs to a file on the device is not really interesting (SO question here). Wrapping the debugger executable seems interesting, as suggested here but I couldn't find anything more recent (with lldb).
Alternatively, I could also run the debugger from the console and handler the redirection from there, but I don't know how to do that for debugging on a remote device over WiFi.
Any help would be greatly appreciated!
So I'm trying to make an application using the DJI SDK. In order for my app to function properly, my iDevice needs to be hooked up to the remote controller of the drone via USB.
This means I can't also run the app via xcode and get console output.
Is there a way of saving console output when using an app on your phone? I am aware of the crash logs, but sadly they don't provide enough info to be useful to me.
This problem started when I got a runtime error only when the device was connected to the remote controller. Therefore there was no way of isolating the problem since I couldn't tell what went wrong.
Another solution would maybe be a 1 female to 2 male usb chord, but I haven't found one online yet and even if I did I don't know if that would work.
Is there a standard way of debugging when using hardware that needs to be connected to the device?
from Xcode, hit window on the tool bar at the top, then Devices. Select the device you want to read the log from. However, this is the log for the entire phone, and you have to be plugged into the mac... so you'll have to run your tests, unplug from the DJI, plug into the mac, go to devices, and scroll through the log until you find the output from your app, and you won't be able to see real time expected outcome.
It's not ideal, but that's the only way I know of to see the apart from building an entire console log into your app yourself.
I am working with Corona SDK for some time, and i really like it, but there is one thing, that i cant figure out: How to debug my code on a real device?
At the point, when my code runs great in the simulator, i usually compile it, and try it on the phone. But when there is some error, that doesn't bother the simulator, but pisses the phone off, i simply see an error message:
"This application encountered a Lua error (see logs) etc."
Me and my boss spent a whole day figuring out, that i made a require with a capital instead of lower case.
My question is: How to actually "see" that log? I tried to connect my device to DDMS, but i saw no relevant output. Is there a way to access that log (I'm testing on an android device)? Or is there a way to simulate the EXACT behavior of the phone in the simulator? Usually the phone freaks out because of i/o operations, and when using the wrong case.
The best way to debug on iOS devices is to use XCode's Organizer with your device plugged in via the USB port. On the left hand panel of Organizer, there will be a block for each device that XCode knows about. You may have to click on a button "Use device for debugging" or something similar so XCode can gather all the information it needs.
Once done, then you can use XCode to install the app to the device (you don't need to make an .ipa file, just copy the app to the device via Organizer). In that panel on the left, there is a link for "Console Log", click that and you can your print statements and other errors issued by Corona SDK.
Rob
If you don't have Xcode, you can try iPhone configuration utility. It is more light-weight than the xcode plus you can also use it on a windows machine.
This question might be a bit strange and i apologize for that... i have rather a strange problem with my iPad app. My app is running absolutely fine when i connect the device to my system and run the app. But,it is getting crashed repeatedly once i try to use the app after disconnecting it from my system. This is very strange to me. I am unable to even debug this because of this strange issue. i need at least GDB log to debug my code.So, is there any way in which i can print my GDB log on my device(iPad)... At least is there any other way in which i can solve this strange issue...
Is it crashing while you are debugging and then disconnect the device. If you disconnect your device while debugging, the app will stop on your device and you need to reopen it to continue using it on the device.
If you want the Logs stored on your device, connect your device to your Mac and in Xcode go to Window -> Organiser. Select the Devices Tab and on the left should be your Device and an option to view the Device Logs which should get you the same Crash Logs you get in the Debugger Output window. Xcode will Symbolise them if it can so you should be able to debug the issue. It will also show Crash Logs for Applications you do not develop but those will not be Symbolised so won't make much sense.
Alternatively, if you choose the Console option you'll be able to see the Console output which will show all your NSLog outputs. It will also have some Device Specific output which you can ignore.
Use NSLog(), you can read the resulting console entries in the Xcode organiser after connecting the device via USB: