Skip to content

Instantly share code, notes, and snippets.

@naokits
Last active December 15, 2015 11:19
Show Gist options
  • Save naokits/5252607 to your computer and use it in GitHub Desktop.
Save naokits/5252607 to your computer and use it in GitHub Desktop.
iOSシュミレータを使用してAirPrintのデバッグを実機で行う方法

iOSシュミレータでAirPrintデバッグ

AirPrint対応のプリントを持っていなくても、iOSシュミレータを使用すればAirPrintのテストを実機(iDevice)で行うことが可能です。もちろん、iOSシュミレータでも同様です。

  • IOSシュミレータを起動します。
  • 「ファイル」メニューから「プリンタシュミレータを開く」を選択します。
    そうすると、「Printer Simulator」というアプリが起動し、仮想ドライバがシステムに追加されます。

システム環境設定の「プリンタとスキャン」で追加(+)ボタンをクリックすると、シミュレータによって追加されている下記のプリンタドライバのリストが確認できます。

なお、これらのドライバを追加する必要はありません。

これだけで準備は完了です。

AirPrint対応アプリからプリントを選択すれば、次のようなプリンタが確認できます。

  1. Save Original to Simulator
  • Simulated 2-Sided InkJet
  • Simulated Color Laser
  • Simulated InkJet
  • Simulated Laser

上記のドライバのタイプは「Secure AirPrint」です。

@naokits
Copy link
Author

naokits commented Mar 27, 2013

PrintopiaというMacアプリを使えば当然AirPrintのテストもできるし、その他に開発とは関係なく便利な機能がたくさんあるのでお勧め。

http://www.ecamm.com/mac/printopia/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment