如何使用iOS Simulator创建虚拟打印机? [英] How to create virtual printer with iOS Simulator?

查看:395
本文介绍了如何使用iOS Simulator创建虚拟打印机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个应用程序中,具有打印文档的功能.我想测试此功能,但没有设备,所以我必须在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 ?

我正在使用Xcode 8.2.1iOS 10StarPrint 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. Xcode 6中的打印机模拟器在哪里
  2. 在这里我找不到Xcode 8.2.1的硬件工具
  1. Where is printer simulator in Xcode 6
  2. Here I cannot find hardware tools for Xcode 8.2.1

推荐答案

模拟器应该能够看到Mac可以看到的任何与AirPrint兼容的打印机.

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

  1. 您可以使用模拟打印机.转到 https://developer.apple.com/download/more/.
  2. 下载与您的版本相对应的用于Xcode 8.x的其他工具".
  3. 安装软件包.
  4. 启动打印机模拟器
  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只要运行即可自动注册多台模拟打印机.它们将显示在iOS打印机选择视图中.它们还会显示在网络上的其他Mac上,甚至还可以显示在物理iOS设备上.

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.

这篇关于如何使用iOS Simulator创建虚拟打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆