问题
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 :
- Where is printer simulator in Xcode 6
- 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.
- You can use a simulated printer. Go to https://developer.apple.com/download/more/.
- Download "Additional Tools for Xcode 8.x" corresponding to your version.
- Install the package.
- 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