🎉 Shams.in 4.0 is released. Read more →
AboutArticles

Code blocks

Dimitri POSTOLOV,1 min read

Access Simulator Keychain

Mountain

This guide explains how to access the Keychain database of a booted iOS simulator using SQLite Browser.

Prerequisites

# Example: install DB Browser for SQLite brew install --cask db-browser-for-sqlite

Steps

  1. Get the UUID of the booted simulator
xcrun simctl list | egrep '(Booted)' # Example output: # iPhone 15 Pro (8B2E0CA2-2F49-4215-B6A7-334102D8811E) (Booted)
  1. Navigate to the simulator’s Keychain directory
cd ~/Library/Developer/CoreSimulator/Devices/8B2E0CA2-2F49-4215-B6A7-334102D8811E/data/Library/Keychains
  1. Open the keychain-2-debug.db file using DB Browser for SQLite

    • Launch the DB Browser application.
    • Open the keychain-2-debug.db file located in the directory above.
  2. (Optional) Print the current working directory

pwd

By following these steps, you can view and analyze the simulator’s keychain database.

Test filename, line highlighting and empty lines

test.js
console.log('hello world') console.log('goodbye world')

Test showLineNumbers and word highlighting

object Hello { def main(args: Array[String]) = { println("hello, world") } } object Hello { def main(args: Array[String]) = { println("hello, world") } }

Test highlighting inline code

import React from 'react'

Test without specified language

hello world

Test with code block default language

const links = [ { href: '/settings', label: 'Settings' }, { href: '/support', label: 'Support' }, { href: '/license', label: 'License' }, ]

Link to google

Link to GitHub

CC BY-NC 4.0 2025 © Dimitri POSTOLOV.RSS