Development Solutions/iOS & OS X

How to check target os version of dylib library file on Mac OS (Mac OS에서 dylib 라이브러리 파일의 타겟 os 버전 확인하는 방법)

studio ODOC 2022. 10. 4. 19:47
반응형

How to check target os version of dylib library file on Mac OS

(Mac OS에서 dylib 라이브러리 파일의 타겟 os 버전 확인하는 방법)

 

 

빌드한 라이브러리의 타겟 OS 버전을 확인이 필요할 때가 있다.

그럴 때는 otool 명령어에 간단한 옵션을 줘서 확인할 수 있다.

 

터미널을 열고 아래와 같이 커맨드를 내려보자!

 

(Sometimes it is necessary to check the target OS version of the built library.
In such a case, you can check by giving a simple option to the otool command.


Open a terminal and run the command below!)

 

otool -lv lib~~.dylib > output.txt

 

output.txt를 열어서 아래 내용을 검색하면 타겟 OS버전을 볼 수 있다.

(You can see the target OS version by opening output.txt and searching the contents below.)

cmd LC_VERSION_MIN_MACOSX
	cmdsize ~~
    version 11.2
    	sdk ~~

 

 

라이브러리의 mac os 타겟 버전 설정 방법
(How to set the mac os target version of the library)

2022.10.04 - [Development Solutions/iOS & OS X] - How to set Mac OS version when building library (라이브러리 빌드할 때 Mac OS버전 설정 방법)

 

How to set Mac OS version when building library (라이브러리 빌드할 때 Mac OS버전 설정 방법)

How to set Mac OS version when building library (라이브러리 빌드할 때 Mac OS버전 설정 방법) 맥에서 라이브러리를 빌드할 때, 특정 타겟 버전으로 빌드해야할 때가 있다. 예를 들어, 11.2 버전으로 라이브러..

studiodoc.tistory.com

 

반응형