[Command] 라이브러리 파일 정보 확인
2016. 9. 26. 16:48ㆍ컴퓨터 잘쓰기/Mac(OSX)
반응형
# Architectures 확인 명령
> xcrun -sdk iphoneos lipo -info lib.a
Architectures in the fat file: lib.a are: armv7 arm64
> file lib.a
lib.a: Mach-O universal binary with 2 architectures
lib.a (for architecture armv7): current ar archive random library
lib.a (for architecture arm64): current ar archive random library
> lipo -info lib.a
Architectures in the fat file: lib.a are: armv7 arm64
# 라이브러리 내부에 포함된 Obj 파일 Architectures 확인 명령
> otool -hv /sw/lib/libfftw3.a
Archive : /sw/lib/libfftw3.a
/sw/lib/libfftw3.a(align.o):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 X86_64 ALL 0x00 OBJECT 3 336 SUBSECTIONS_VIA_SYMBOLS
/sw/lib/libfftw3.a(alloc.o):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 X86_64 ALL 0x00 OBJECT 3 416 SUBSECTIONS_VIA_SYMBOLS
...
# 라이브러리 심볼 확인
> nm -um /System/Applications/Calculator.app/Contents/MacOS/Calculator
(undefined) external _CFRelease (from CoreFoundation)
(undefined) external _CFUUIDCreate (from CoreFoundation)
(undefined) external _CGRectGetWidth (from CoreGraphics)
(undefined) external _CalculateExpression (from Calculate)
(undefined) external _NSAccessibilityHelpAttribute (from AppKit)
(undefined) external _NSApp (from AppKit)
(undefined) external _NSAppearanceNameTouchBar (from AppKit)
(undefined) external _NSAppearanceNameVibrantDark (from AppKit)
(undefined) external _NSApplicationMain (from AppKit)
(undefined) external _NSBeep (from AppKit)
(undefined) external _NSClassFromString (from Foundation)
(undefined) external _NSFontAttributeName (from AppKit)
(undefined) external _NSFontFeatureSelectorIdentifierKey (from AppKit)
(undefined) external _NSFontFeatureSettingsAttribute (from AppKit)
...
반응형
'컴퓨터 잘쓰기 > Mac(OSX)' 카테고리의 다른 글
[Command] 숨김파일 보이기/숨기기 (0) | 2017.01.10 |
---|---|
[Tip] Beyond Compare for MAC (0) | 2016.11.07 |
[Path] 공인인증서 저장경로 (0) | 2016.07.27 |
[Command] 폴더내부 특정 파일 및 폴더 지우기 (0) | 2016.07.07 |
[Command] 폴더별 파일 갯수 카운팅 (0) | 2016.07.05 |