Skip to content

Instantly share code, notes, and snippets.

@dive
dive / xcode-prompts-as-a-skill.md
Created January 2, 2026 19:14
Xcode 26 System Prompts converted to Agent Skill
name description compatibility metadata
xcode-assistant
Apple-platform (iOS, iPadOS, macOS, watchOS, visionOS) coding assistant for Swift/Xcode codebases. Use for code explanation, refactoring, bug fixes, test generation, SwiftUI
Designed for Codex-style coding agents. Works offline; for questions about brand-new platform APIs, use an official docs/search tool if available.
author version provenance
dive
1.0.0
Synthesized from Xcode IDEIntelligenceChat prompt templates
@dive
dive / codes_vs_apple.md
Last active June 14, 2025 16:59
llm.codes vs Apple Documentation
<!-- Comments
Link: https://llm.codes/?https%3A%2F%2Fdeveloper.apple.com%2Fdocumentation%2Ffoundationmodels

Issue 1: The tool assumes that anchors are separate links. 
For the following anchors, the tool duplicates the same page in the markdown for each instance.

  https://developer.apple.com/documentation/foundationmodels
    #app-main (x2)
    #overview

Script

#!/bin/env sh

# http://haxx.se 
# http://daniel.haxx.se

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
@dive
dive / fix_ios_15_simulator_spotlight_cpu.sh
Created December 16, 2021 10:35
Fix the iOS 15 Simulator high CPU usage due to the Spotlight/Suggestions Engine
#!/bin/env sh
disable_suggestions() {
if [ -d "$1" ]; then
pushd "$1" || return
find . -name com.apple.suggestions.plist \
-exec echo {} \; \
-exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} \;
popd || return
fi
@dive
dive / things_3_console_logs
Created June 3, 2021 19:47
Things 3 Console Logs (iMac M1, stuck on launch)
default 20:40:55.697729+0100 Things3 Requesting container lookup; class = 2, identifier = <private>, temp = 0, create = 0, euid = 501, uid = 501, personaid = -1, type = NOPERSONA, name = <unknown>
default 20:40:55.698792+0100 Things3 container_create_or_lookup_for_platform: success
default 20:40:55.721862+0100 Things3 CHECKIN: pid=2504
default 20:40:55.732980+0100 Things3 CHECKEDIN: pid=2504 asn=0x0-0xff0ff foreground=1
default 20:40:55.737016+0100 Things3 Received configuration update from daemon (initial)
default 20:40:55.751735+0100 Things3 FRONTLOGGING: version 1
default 20:40:55.751776+0100 Things3 Registered, pid=2504 ASN=0x0,0xff0ff
default 20:40:55.755234+0100 Things3 BringForward: pid=2504 asn=0x0-0xff0ff bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
default 20:40:55.755675+0100 Things3 BringFrontModifier: pid=2504 asn=0x0-0xff0ff Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default 20:40:55.755783+0100 Things3 BringForward: pi
@dive
dive / things_3_sample
Created June 3, 2021 19:45
Things 3 – Sample (iMac M1, stuck on launch)
Sampling process 2504 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Things3 (pid 2504) every 1 millisecond
Process: Things3 [2504]
Path: /Applications/Things3.app/Contents/MacOS/Things3
Load Address: 0x100dd0000
Identifier: com.culturedcode.ThingsMac
Version: 3.13.11 (31311505)
Code Type: ARM64
Platform: macOS
@dive
dive / carthage_update.sh
Created June 1, 2021 15:41
Carthage workaround for XCFrameworks and `arm64` arch
#!/usr/bin/env bash
# Usage example: ./carthage_update.sh Chatto
set -euo pipefail
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
# Serialize dsym paths for running on different machines, required in order for lldb debugging to work on xcode 12+
echo 'SWIFT_SERIALIZE_DEBUGGING_OPTIONS = NO' >> "$xcconfig"
@dive
dive / install_macports.sh
Last active May 23, 2021 14:02
MacPorts installation script
#!/bin/bash
set -euf -o pipefail
# FIXME: Check '/opt/local/bin/port' directly if MacPorts is not in the PATH?
if command -v port &> /dev/null; then
printf "%s\n%s\n%s\n" \
"MacPorts is already installed." \
"Consider to use 'sudo port selfupdate' command for upgrades." \
"Check the https://guide.macports.org/#installing.macports.uninstalling to uninstall MacPorts before reinstalling."
@dive
dive / current_selected_installed_xcode.md
Last active November 2, 2025 07:33
How to get the current selected Xcode and list installed

How to get the current selected Xcode and list installed

Current Selected Xcode

xcode-select

This is the most common way to get the path to the selected instance:

xcrun xcode-select --print-path
@dive
dive / grammarly_ios_keyboard_unboxing.md
Last active March 20, 2025 10:52
Grammarly iOS Keyboard — Unboxing

Grammarly iOS Keyboard – Unboxing

Grammarly is a lovely writing assistant. Twenty million people use the tool across the globe according to the statistics available on the site. I use it too. No complaints, it does its job quite well, and I am a happy user. The only thing that always worried me is the Grammarly iOS Keyboard. As an iOS engineer, I know how easily you can collect different data, sensitive information, and even do not ask users about the consent. So, let's check what is inside the Grammarly iOS application.

TL;DR

  • Grammarly iOS uses at least three trackers (Adjust, AppsFlyer, Internal analytics)
  • Grammarly Keyboard has access to keystrokes, sensitive data, and able to send them over the network

Frameworks