7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

brew で class-dump をインストールする

Last updated at Posted at 2014-05-06

##はじめに
最近になって木下誠さんのDynamic Objective-Cを読み始めたのですが、冒頭で紹介されている class-dump について調べていたとき、公式ページでは dmg ファイルなどが配布されていましたが、brew でも普通にインストールできたのでメモ

##インストール
brewでインストールコマンドを叩くだけの簡単なお仕事です
(下記のログはうっかりログが流れてしまったので再インストールしたときのログです)

$ brew install class-dump
==> Downloading https://github.com/nygard/class-dump/archive/3.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/class-dump-3.5.tar.gz
==> xcodebuild -configuration Release SYMROOT=build PREFIX=/usr/local/Cellar/class-dump/3.5 ONLY_ACTI
?  /usr/local/Cellar/class-dump/3.5: 4 files, 668K, built in 3 seconds

さっそく github ページの README にあるように AppKit.framework について覗いてみる

$ class-dump /System/Library/Frameworks/AppKit.framework

//
//     Generated by class-dump 3.5 (64 bit).
//
//     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//

#pragma mark Function Pointers and Blocks

typedef void (*CDUnknownFunctionPointerType)(void); // return type and parameters are unknown

typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown

(中略)

@interface CALayer (_NSTiledLayer)
+ (id)keyPathsForValuesAffectingNS_tiledLayerVisibleRect;
@end

##おわりに
やっぱり brew は便利ですね
もう手放せないw

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?