How to import photos into Device Hub photos app (beta 3)

In the old simulator you were able to simply drag a photo or video from your desktop into the photos app within the simulator in order to use it for testing.

That doesn't seem to be working yet in Device Hub. Is there a workaround or are we just waiting on this to be fixed?

Answered by DTS Engineer in 897398022

Hey @itswilder,

You can use the Share sheet:

  • Select the image/video in Finder (or in Photos.app on your Mac)
  • Click Share > choose Simulator from the share destinations > pick the target simulated device from the drop-down
  • The media is added and Photos opens to display it

Or command-line:

xcrun simctl addmedia booted <path to your media file>

Please also file an enhancement request for Device Hub to support photo/video drag-and-drop as well!

-- Greg

Hey @itswilder,

You can use the Share sheet:

  • Select the image/video in Finder (or in Photos.app on your Mac)
  • Click Share > choose Simulator from the share destinations > pick the target simulated device from the drop-down
  • The media is added and Photos opens to display it

Or command-line:

xcrun simctl addmedia booted <path to your media file>

Please also file an enhancement request for Device Hub to support photo/video drag-and-drop as well!

-- Greg

How to import photos into Device Hub photos app (beta 3)
 
 
Q