How to test printing from iPhone App if we do not have AirPrint enabled Printers?
Solution 1
You can actually test printing in the simulator, somewhere in the setting (sorry, not near my computer at the moment) there is an option to turn on the print server. When you test it will output a PDF.
Solution 2
In the iOS simulator look under the File menu. You'll find "Open Printer Simulator". This will provide several different simulated printers.
Solution 3
Since Xcode 6 you have to download it separately: Hardware IO Tools
This package includes additional hardware i/o tools formerly bundled in the Xcode installer. These tools include: Apple Bluetooth Guidelines Validation, Bluetooth Explorer, HomeKit Accessory Simulator, IO Registry Explorer, Network Link Conditioner.prefpane, PacketLogger and Printer Simulator. These graphic tools support running on OS X 10.10 and OS X 10.9.
Solution 4
You can also do some setup to share any conventional printer as if it were a real AirPrint printer.
Related videos on Youtube
meetpd
I am the CEO of Upnexo Technologies Pvt. Ltd. We are a Product and Content Development Company. Our list of sites include: Upnexo.com HalfPantHippo.com TopVPN.Review SplitScreenApp.com ReviewRoller.com
Updated on July 09, 2022Comments
-
meetpd almost 2 years
Is there a way to test whether correct pages are being passed for printing from iPhone App if we do not have AirPrint enabled printers?
Please let me know.
-
Sedate Alien over 12 yearsBuy a printer? They can be had fairly cheaply and you'd be crazy not to test on a real device.
-
meetpd over 12 yearsAgreed. But what can we do if its urgent to test? Is there a way out?
-
-
NJones over 12 yearsIn the iOS simulator, file menu, Open print simulator.
-
Nate914375 over 10 yearsYou can also find it from xcode directly in the Xcode menu-> Open Developer Tool->Printer Simulator
-
Manthan over 9 years@sosborn: This option doesn't show in xcode6 with ios7 or ios8 simulator!!! Is there any other way for this?
-
nschum over 9 years