<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nanashinodonbee</author_name>
  <author_url>https://blog.hatena.ne.jp/nanashinodonbee/</author_url>
  <blog_title>『入る学科間違えた高専生』の日記</blog_title>
  <blog_url>https://nnsnodnb.hatenablog.jp/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>iOS</anon>
  </categories>
  <description>はじめに タイトルなんか意味わからんことになったけど、 import Photos PHPhotoLibrary.requestAuthorization { if case .authorized = $0 { print(&quot;アクセスが許可された！&quot;) } else { print(&quot;アクセスを許可してね！&quot;) } } みたいなコード書いて、 UT とかでテストしたいときとかあるじゃないですか？ そういうときに GUI のポップアップだされても人間がテストしてるときはある程度勝手に許容する動作をしてくれると思うのですが、ロボットはそんなことしてくれないのでそこをやってあげることできないかと思…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnnsnodnb.hatenablog.jp%2Fentry%2Fios-simulator-privary-grant-auto&quot; title=&quot;iOS Simulatorの写真ライブラリとかの権限を自動で与えたい人々 - 『入る学科間違えた高専生』の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nanashinodonbee/20200402/20200402004516.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-02 01:13:20</published>
  <title>iOS Simulatorの写真ライブラリとかの権限を自動で与えたい人々</title>
  <type>rich</type>
  <url>https://nnsnodnb.hatenablog.jp/entry/ios-simulator-privary-grant-auto</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
