IOS AddSDK

From AdLocus
Revision as of 23:55, 7 October 2014 by Sfchang (Talk | contribs)

Jump to: navigation, search

加入 SDK Library

  • 下載 SDK
  • 在您下載的檔案中有兩個資料夾:AdLocus(SDK),Sample(Sample code),請將AdLocus拖曳到您的專案中。
 IOS Add File 1.jpg
  • Xcode詢問時,請勾選下面兩個選項:
    • "Copy items into destination group's folder (if needed)"
    • "Create group for any added folders"
 IOS Add File 2.jpg

 

加入 Framework

  • 請將 "AdLocus SDK" 所需要的Framework加入到專案中:
    • 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
 IOS Add File 3.jpg

 

設定您的專案

  • 請打開Project->Build Setting,在"Link"分類下的"Other Linker Flags",加入"-ObjC"與"-all_load"。
 IOS Add File 4.jpg