This project integrates Google's Cloud Print service into Apple's existing AirPrint functionality. For more information, read the blog post.
The project uses AFIncrementalStore, AFOAuth2Client and AFNetworking to communicate with the Cloud Print API, and Theos as its build system.
- Xcode 4.5, which includes the iOS 6 SDK
- A jailbroken device running iOS 6
The first step to build the project is to clone the repository and initialize all of its submodules:
git clone git://github.com/conradev/GoogleCloudPrint.git
cd GoogleCloudPrint
git submodule update --init -—recursiveAdditionally, one header file from the Mountain Lion SDK is required. This is because NSXPCConnection is public on OS X, but not iOS.
mkdir theos/include/Foundation
cp $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h theos/include/Foundation/To build the project, you need only run
make
To install this on a jailbroken device, some additional tools are needed.
The first tool is ldid, which is used for fakesigning binaries. Ryan Petrich has a build on his Github mirror:
curl -O http://cloud.github.com/downloads/rpetrich/ldid/ldid.zip
unzip ldid.zip
mv ldid theos/bin/
rm ldid.zipTo build a Debian package, dpkg and fakeroot are required. You can install these from Homebrew:
brew install fakeroot dpkgTo build a package in the project directory, you can run:
make packageand to automatically install this package on your jailbroken device (over SSH), you can run:
make package install THEOS_DEVICE_IP=xxx.xxx.xxx.xxxGoogleCloudPrint is available under the MIT license. See the LICENSE file for more info.