SDK 설치
1. SDK 설치
1) 프로젝트의 Podfile 을 열고 다음 항목을 추가합니다.
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/dev-adwhale/AdWhaleSDK_iOS.git'
pod 'AdWhaleSDK', '1.0.2'
# Xcode15.0 이상 버전에서 TOOL CHAIN 관련 빌드 에러가 발생하는 경우, 아래 코드를 추가합니다.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
endXcode15.0 이상 버전에서 빌드 시, 일부 광고 네트워크 SDK에서 다음과 같은 에러가 발생할 수 있습니다.
이 경우 Podfile에 위 내용을 참조하여 수정합니다.
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
React Native(bare) 환경에서 iOS 앱을 App Store에 배포할 때, 다음과 같은 에러가 발생할 수 있습니다.
Invalid Executable. The executable '.../hermes.framework/hermes' contains bitcode.
이 경우 Podfile에서 Hermes 엔진을 비활성화합니다.
2) pod을 설치하고 Xcode에서 실행하는 경우 .xcworkspace 파일을 엽니다.
최신 SDK Version : 1.0.2
Last updated