Access personal data from Xcode tests

Ilya Kulakov
1 min readJun 27, 2020

--

macOS does not simply allow any app to access user’s personal data. This includes Xcode. An attempt to access Address Book or Reminders from a test will fail. Unfortunately you cannot simply add the app to System Preferences’ Privacy settings.

However, there is a workaround: simply create a Playground and request the all necessary permissions. The way Xcode runs them will pop all the necessary system dialog and will you to grant the access.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Ilya Kulakov
Ilya Kulakov

Written by Ilya Kulakov

Tech Entrepreneur and Quality Freak with passion.

No responses yet

Write a response