Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOSシミュレータの録画が面倒だったのでどうにかしてみた

huin
January 10, 2018

 iOSシミュレータの録画が面倒だったのでどうにかしてみた

2018/01/10にSmartNewsさんで行われた「「iOS 11 Programming」刊行記念 Night」(https://peaks.connpass.com/event/74553/) で発表したスライドです。

huin

January 10, 2018
Tweet

More Decks by huin

Other Decks in Programming

Transcript

  1. 4 What’s New in Xcode You can take a screenshot

    or a video recording of the simulator using the xcrun command-line utility.
  2. 15 γϛϡϨʔλҰཡͷදࣔ > xcrun simctl list
 
 == Device Types

    == == Runtimes == == Devices == -- iOS 10.3 — -- iOS 11.2 — iPhone X (2638D67D-7C6C-4BE7-893C-9A11DB294314) (Booted) iPhone 8 (D1152492-CA99-46FF-A828-9E7CD1E9B0FC) (Shutdown)
  3. 21

  4. 23 JSONͰදࣔͯ͠ύʔε͢Ε͹ىಈதͷσόΠεΛऔΓग़ͤΔʂ > xcrun simctl list —json { “devicetypes”: [

    … ], “runtimes”: [ … ], “devices”: { “iOS 11.2”: [ { “state”: “Booted”, “availability”: “(available)”, “name”: “iPhone X”, “udid”: “F421F28A-D26D-47D0-…”, } ] } }
  5. 25 Swift Package Manager ͷར༻ > mkdir simio && cd

    simio > swift package init —type executable > > swift package generate-xcodeproj
  6. 26

  7. 27