IOS AddSDK
From AdLocus
加入 SDK Library
- 下載 SDK
- 在您下載的檔案中有兩個資料夾:AdLocus(SDK),Sample(Sample code),請將AdLocus拖曳到您的專案中。
- Xcode詢問時,請勾選下面兩個選項:
- "Copy items into destination group's folder (if needed)"
- "Create group for any added folders"
加入 Framework
- 請將 "AdLocus SDK" 所需要的Framework加入到專案中,點選專案後,選擇[Build Phase],在[Link Binary with Library]中加入下列 .framwwork
- AdSupport
- AudioToolbox
- AVFoundation
- CFNetwork
- CoreGraphics
- CoreLocation
- CoreTelephony
- Foundation
- libz.1.2.5.dylib or libz.dblib
- libsqlite3.0.dylib or libsqlite3.dylib
- MapKit
- MobileCoreServices
- QuartzCore
- UIKit
- SystemConfiguration
設定編譯相容性
- 請打開Project->Build Setting,在"Link"分類下的"Other Linker Flags",加入"-ObjC"與"-all_load"。
開啟BACKGROUND MODE
- 為了提高Promotion Ad的分潤,我們建議您開啟此模式
- 步驟: 開啟專案, 選擇 [Info], 在 [Custom iOS Target Properties] 中加入 [Required background modes]
- 續上,新增 [App downloads content from the network]