How to create virtual printer with iOS Simulator?

北城余情 提交于 2019-12-12 14:34:06

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/42928387/how-to-create-virtual-printer-with-ios-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!