Skip to content

Instantly share code, notes, and snippets.

Friedrich Markgraf fzwo

  • Berlin
Block or report user

Report or block fzwo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fzwo
fzwo / xcode-class-dump.sh
Last active Apr 10, 2016
Create a complete class-dump of Xcode, ready for adding to an empty Xcode project for all your header-ogling needs.
View xcode-class-dump.sh
#!/bin/bash
# Creates a complete class-dump of Xcode and all its libs and internal plug-ins.
# Assumes you have Class-Dump in your path and Xcode at the location set via `xcode-select`.
xcodeClassDump=${1:-"$HOME/Documents/XcodeClassDump"}
xcodePath=`xcode-select -p`
sourceXcodeRootPath="$(dirname "$xcodePath")"
echo "Dumping from Xcode: $sourceXcodeRootPath"
@fzwo
fzwo / LegacyDocsets.md
Last active Jun 8, 2019
Download and view old Apple developer documentation
View LegacyDocsets.md

How to download and view legacy documentation from Apple (no need to sign in to your dev account).

  1. Go to https://developer.apple.com/library/downloads/docset-index.dvtdownloadableindex
  2. Find the docset you want (there are some with URL https://apple.com/none.dmg; ignore them - you will find them again further down the file with a working URL).
  3. Download the dmg. It's probably around a gigabyte or so.
  4. "Install" the .pkg file somewhere on your disk. If you don't trust the installer, do it manually:
    1. Find the largest file, names Payload, and extract it using The Unarchiver.
    2. This created a new, even larger file, probably named Payload-1.
    3. Extract Payload-1 using The Unarchiver.
  5. After many minutes of extracting, we have our .docset file.
You can’t perform that action at this time.