빌드 설정
DoveRunner Mobile App Security SDK가 올바르게 작동하려면 XCode 프로젝트의 빌드 설정을 적절히 구성해야 합니다.
Other Linker Flags 설정
Section titled “Other Linker Flags 설정”가장 중요한 설정 중 하나는 “Other Linker Flags”입니다.
- 프로젝트 설정에서 “Build Settings” 탭을 선택합니다
- “Other Linker Flags”를 검색합니다
- Debug 구성에 다음을 추가합니다:
-lStaticAppSec_Debug -L$(PROJECT_DIR)/AppSealingSDK/Libraries
- Release 구성에 다음을 추가합니다:
-lStaticAppSec -L$(PROJECT_DIR)/AppSealingSDK/Libraries
헤더 검색 경로
Section titled “헤더 검색 경로”SDK 헤더 파일을 찾을 수 있도록 검색 경로를 설정해야 합니다.
Header Search Paths 설정
Section titled “Header Search Paths 설정”- “Header Search Paths”를 검색합니다
- 다음 경로를 추가합니다:
$(PROJECT_DIR)/AppSealingSDK/Libraries
- “recursive” 옵션을 선택합니다
라이브러리 검색 경로
Section titled “라이브러리 검색 경로”정적 라이브러리 파일을 찾을 수 있도록 경로를 설정합니다.
Library Search Paths 설정
Section titled “Library Search Paths 설정”- “Library Search Paths”를 검색합니다
- 다음 경로를 추가합니다:
$(PROJECT_DIR)/AppSealingSDK/Libraries
컴파일러 설정
Section titled “컴파일러 설정”Enable Bitcode
Section titled “Enable Bitcode”- Bitcode를 NO로 설정해야 합니다
- DoveRunner Mobile App Security SDK는 현재 Bitcode를 지원하지 않습니다
C++ Language Dialect
Section titled “C++ Language Dialect”- C++11 이상으로 설정합니다
Objective-C Automatic Reference Counting
Section titled “Objective-C Automatic Reference Counting”- ARC를 활성화합니다
아키텍처 설정
Section titled “아키텍처 설정”Valid Architectures
Section titled “Valid Architectures”지원되는 아키텍처만 포함하도록 설정합니다:
- arm64 (필수)
- armv7 (선택적, 구형 기기 지원 시)
Excluded Architectures
Section titled “Excluded Architectures”시뮬레이터 빌드 시 다음을 제외합니다:
- arm64 (시뮬레이터용)
iOS 9.0 이상으로 설정합니다.
빌드 구성별 차이점
Section titled “빌드 구성별 차이점”Debug 구성
Section titled “Debug 구성”libStaticAppSec_Debug.a
사용- 보안 기능이 일부 비활성화됨 (개발 편의성)
Release 구성
Section titled “Release 구성”libStaticAppSec.a
사용- 모든 보안 기능 활성화
- 프로덕션 배포용
이러한 설정을 올바르게 구성하면 SDK가 정상적으로 링크되고 실행됩니다.