Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create virtual printer with iOS Simulator?

In one of my application there is feature to print documents. I want to test this feature but I don’t have device, So I have to test on Simulator. With simulator how can I print documents. Do I need to connect physical printer or can I create virtual printer and test with it ?

I am using Xcode 8.2.1, iOS 10 and StarPrint iOS SDK 5.2.1

I have searched lot but I didn’t find which work for me. How can I do that ?

I have referred below links :

  1. Where is printer simulator in Xcode 6
  2. Here I cannot find hardware tools for Xcode 8.2.1
like image 304
VRAwesome Avatar asked Mar 21 '17 13:03

VRAwesome


People also ask

Does Xcode have simulator?

If you require a different version of the iOS simulator than is provided by your Xcode installation, you can download additional simulators in Xcode. Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do you simulate an iPhone on an iPad?

Download an iPad browser, such as Dolphin Browser or Opera Mini. Then download a web browser that is iPhone/iPod touch only, such as Mango Browser, iFox FREE, Sphere, or Full Screen Web Browser (99¢). Then you can run an iPad browser in the full iPad mode and run another browser that is in the 1x 2x iPhone mode.


1 Answers

The Simulator should be able to see any AirPrint compatible printer that you Mac can see.

  1. You can use a simulated printer. Go to https://developer.apple.com/download/more/.
  2. Download "Additional Tools for Xcode 8.x" corresponding to your version.
  3. Install the package.
  4. Start Printer Simulator

Printer Simulator will automatically register several simulated printers as long as it is running. They will show up in the iOS printer selection view. They also show up to other Macs on your network and even physical iOS devices.

like image 55
russbishop Avatar answered Oct 05 '22 03:10

russbishop