SDK 설치

1. SDK 설치

circle-info

AdWhale iOS 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
end
circle-exclamation
triangle-exclamation

2) pod을 설치하고 Xcode에서 실행하는 경우 .xcworkspace 파일을 엽니다.

최신 SDK Version : 1.0.2

Last updated