Development Solutions/iOS & OS X

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

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

How to set Mac OS version when building library

(라이브러리 빌드할 때 Mac OS버전 설정 방법)

 

 

맥에서 라이브러리를 빌드할 때, 특정 타겟 버전으로 빌드해야할 때가 있다.

예를 들어, 11.2 버전으로 라이브러리를 빌드해야하는데 내가 사용하는 맥의 OS버전이 12.x일 수 가 있다.

이럴 때는 아래 명령어를 사용한 뒤에 라이브러리를 빌드하면 된다.

(When building libraries on a Mac, there are times when you need to build to a specific target version.

For example, I need to build the library with version 11.2, but the OS version of Mac I am using may be 12.x.

In this case, you can build the library after using the command below.)

 

export MACOSX_DEPLOYMENT_TARGET=11.2

 

빌드한 라이브러리 파일의 타겟 os버전 확인 방법
(How to check the target OS version of the built library file)

 

2022.10.04 - [Development Solutions/iOS & OS X] - How to check target os version of dylib library file on Mac OS (Mac OS에서 dylib 라이브러리 파일의 타겟 os 버전 확인하는 방법)

 

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

How to check target os version of dylib library file on Mac OS (Mac OS에서 dylib 라이브러리 파일의 타겟 os 버전 확인하는 방법) 빌드한 라이브러리의 타겟 OS 버전을 확인이 필요할 때가 있다. 그럴 때는 o..

studiodoc.tistory.com

 

반응형