이런저런 IT 이야기
article thumbnail
반응형

iOS용 라이브러리를 개발하다 보면 curl이 필요한 경우가 있는데 curl라이브러리는 기본적으로 SDK에서 지원하지 않기 때문에 외부에서 빌드후 넣어줘야 함.

 

1. 소스코드 다운로드 및 빌드

github.com/jasonacox/Build-OpenSSL-cURL.git

 

jasonacox/Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting OpenSSL 1.1.1 with TLS 1.3 and Mac Catalyst buil...

github.com

git clone https://github.com/jasonacox/Build-OpenSSL-cURL.git
cd Build-OpenSSL-cURL
./build.sh

 

2. 빌드완료

libcurl.a파일
curl 폴더

 

3. 위에서 보이는 libcurl.a, libcrypto.a, libnghttp2.a, libssl.a 파일과 curl폴더를 아래 경로로 복사

    3.1 libcurl.a, libcrypto.a, libnghttp2.a, libssl.a 파일은 아래 경로

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib

    3.2 curl폴더은 아래 경로

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include

 

세팅완료

반응형
profile

이런저런 IT 이야기

@이런저런 IT 이야기

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

profile on loading

Loading...

검색 태그