VNC Open Source For iOS - ios

Is there any open source code available for VNC client for the iOS platform?

This Open Source package called wdaproxy provides an web application that is able to be used to remote control any iOS device with the WebDriverAgent (by Facebook) installed.
https://github.com/openatx/wdaproxy
Found this casually on the testerhome forum that has a ton of Chinese users, it provides a partial remote controlling of the phone through the browser session and is the nearest non-jailbreak option found so far.

Related

How to transfer a file from a Mac application to an iOS viewer?

We would like to develop a feature similar to what exists in InDesign: when you create a "folio", you can preview it in an iOS "viewer" app, providing:
the iOS device is connected to the Mac with a USB cable
the "viewer" is opened on the iOS device.
The description of this feature is available at http://helpx.adobe.com/digital-publishing-suite/help/preview-folios-articles.html#use_preview_on_device.
There are 2 questions:
how can InDesign detect that the "viewer" app is opened on the device?
how can InDesign transfer a file to the iOS device, and have the "viewer" open the file?
We are aware that file transfer is possible using iTunes, but it's not the method used by InDesign (the way they do it is much more simple and straightforward).
Googling or searching on Stack Overflow does not seem to provide reliable answers so far.
Well, accessing iOS devices from USB is not authorized by Apple, so you got three possibilities :
Use MobileDevice private framework from Apple, you can read files from your app using the Document folder of you app via AFC.
Use libmobiledevice, an open-source and cross-platform library, same as MobileDevice but not so stable across iOS versions.
Use usbmux tunnel to connect to your app via sockets (require MobileDevice or libimobiledevice)
I think that usbmux is the best solution, the protocol used in usb never changed a lot and is very stable, even in libimobiledevice.

Enable iPhone (with iOS7) debug console from Windows

I'm trying to debug my website, but Apple are douches. What do I do to enable the debug console if I don't have a Mac?
I installed Safari and the latest iTunes, but my iPhone doesn't show up in Safari developer thing.
You can try option of using Telerik AppBuilder (Windows client) as a replacement on Windows for Safari debugger on Mac when remote debugging. There's a nice blog post about the steps to do it in link below. I'd rather not repost the info as there are also screenshots and it's a lot of text. But essentially, you install app, open it, connect device via USB, then you can find it in the app and open up the developer tools/debugger for it. For non-public websites, you'll have to open up port 80 with some firewall configs documented in the post.
http://blog.falafel.com/Blogs/josh-eastburn/2014/03/04/ios-web-inspector-on-windows-with-telerik-appbuilder
The tool requires a license or you can use the trial, which becomes a basic edition afterwards. I think the basic edition will still allow you to do the debugging. I'm going to try it out myself.
You can also try these iOS apps too, you can find them in the iTunes App store. They give you a built in developer tools feature (right on iOS no remote debug) that mobile Safari doesn't offer.
MIH Tool - basic edition
https://itunes.apple.com/us/app/mihtool/id584739126?ls=1&mt=8
HTTPWatch Basic
https://itunes.apple.com/us/app/httpwatch-basic-http-sniffer/id658886056?mt=8
I gave them a try and they're at least better than the mobile Safari you get on iOS, unless one needs to target full mobile Safari compatibility. I'm guessing the pro/paid editions of those apps give you more/better features.
iOS Debugging with Safari is a featuere of the new Safari. As Safari for Windows is a outdated Version of Safari, debugging is not Implemented.
So debugging with Safari is only possible on a mac!
min requirements are: OS X 10.8 iOS 6
More Infos:
Safari Remote Debugging on Windows
Since that Question was asked i found another neat way to debug stuff on a not accessible Platform:
http://people.apache.org/~pmuellr/weinre-docs/latest/
It works like this:
You add the weinre.js to your project
You set up weinre on your main platform (pc)
Starting your project results in sending the Debug Information from your project to your Platform
It's not that easy to run and understand, but once it works its pretty nice.
Did you set up your phone to allow remote webview inspection?
http://moduscreate.com/enable-remote-web-inspector-in-ios-6/
As an alternative to Weinre, you can try Vanamco's Ghostlab as well, it supports JS console and parallel testing on multiple device.

Sending cod files via bluetooth in blackberry

In android device where .apk files are shared and send via bluetooth and then install on device.
Can similar thing is available in Blackberry devices lower versions below OS 10 ?
Can we send or share and install .cod applications via bluetooth in blackberry.
Please do let me know
The short answer is that there is no OS (standard) supplied method to do this.
I think this is a variation on this question
Can we share application in blackberry without the use of jad files
and as with that question, using CodeModuleManager (as suggested in another answer) requires an application that is already on the phone. In this situation, this installer application would have to know how to open a Bluetooth connection, and read the data and then create the new Application using CodeModuleManager I suspect this solution also assumes that there is another application that is sending the file, from a device what is paired with the phone. Is this a workable solution?

NSLogger for Ad Hoc testing

I am looking for a log framework which can show log on my mac when I am running app on my device as ad Hoc distribution.
I have come across NSLogger.
It is working good in simulator but if I run on device (from xcode or from net) it is not working.
Not working means mac Desktop Viewer application is not launching as it launch when I run on simulator.
How can I integrate NSLogger so that I can get log from device to my MAC?
Is there any other framework which provide me this kind of logging?
Thanks.
Here are the steps I took to get NSLogger to work. For the desktop viewer:
download the desktop viewer binary or
follow desktop viewer xcode instructions: part one and part two
run the desktop viewer
goto NSLogger->Preferences->Network
check Publish Bonjour service for automatic discovery on local network
type NSLogger in the Bonjour service name text box
goto NSLogger->Window->Show Logger Status and you should see a status window that displays this:
Bonjour (Ready to accept connections)
Bonjour SSL (Ready to accept connections)
TCP/IP Port 50000 (Unavailable)
NOTE: At this point you WILL NOT see the desktop viewer output window... that window only appear when an NSLogger client correctly connects to the desktop viewer.
For the iOS client:
make sure that your iOS device is on the same local network as the computer running the desktop viewer
install the app Discovery which allows you to browse the Bonjour networks
run Discovery and browse the local Bonjour network, you should see two entries published by NSLogger desktop viewer:
_nsloggger._tcp.
_nslogger-ssl._tcp.
integrate the NSLogger client with your iOS application by following these instructions
when you are done integrating your project will look something like this (my project is named iosTapDetectorDemo)
add #import <NSLogger/NSLogger.h> statements where needed (for me this was in include files included by method files that made NSLogger method calls)
replace all NSLog method calls with LoggerCompat method calls
add the following code to your main program:
LoggerSetOptions(LoggerGetDefaultLogger(), kLoggerOption_BrowseBonjour|kLoggerOption_BufferLogsUntilConnection);
LoggerSetupBonjour(LoggerGetDefaultLogger(), CFSTR("_nslogger._tcp"), CFSTR("NSLogger"));
LoggerStart(LoggerGetDefaultLogger());
run your iOS application, a logger output window should appear on the desktop viewer and your LoggerCompat method calls should display text in the viewer

Writing to files on Mac when running on iOS device attached to Xcode

When running an app on an iPhone/iPad via Xcode, is there anyway to open files for writing on the Mac?
I have an app which requires the device to run, so using the simulator isn't an option. I do however need to analyze some of the app's output. Currently I have to write to files on the device, and then manually sync them to the Mac. I'm looking for a way to write my files to the Mac directly.
I recommend using NSLogger to stream your log data via Bonjour to the Mac. It has a Mac application that allows you view the data as it is coming in.
For more advanced logging you can also combine NSLogger with the CocoaLumberJack framework using this connector project.
Probably the best possible solution for your situation probably rests with leveraging the console and NSLog to redirect output to a file - that's an open channel between the device and the Mac you can leverage as long as your running the app from Xcode.
There are a number of questions and answers relating to how to do this - here's one:
Log XCode gdb output to file with .gdbinit
This solution assumes that you only need to be doing this when running the app through Xcode, which your question implies. If you need to write to the Mac when running the app directly on the device (not debugging) you would need to use some type of network file transfer, such as FTP or HTTP. You could probably whip up a simple HTTP-based logging app that would run on the Mac using:
https://github.com/robbiehanson/CocoaHTTPServer
Then you would just send the content line-by-line to the server. Many other possible approaches along those lines, and probably an existing Mac-based solution you could leverage.

Resources