目录

Meta Audience Network iOS SDK

Swift Package Manager

Meta Audience Network allows you to monetize your iOS apps with Facebook ads.

Please make sure that you have completed the Audience Network Getting Started and iOS Getting Started guides before you proceed.

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding FBAudienceNetwork as a dependency is as easy as adding it to the dependencies value of your Package.swift or the Package list in Xcode.

Package.swift

dependencies: [
    .package(url: "https://github.com/facebook/FBAudienceNetwork", .upToNextMajor(from: "6.21.0"))
]

Xcode

  1. Open your project in Xcode
  2. Go to File > Add Package Dependencies…
  3. Enter the package repository URL: https://github.com/facebook/FBAudienceNetwork
  4. Select the version rule (e.g., “Up to Next Major Version” from 6.21.0)
  5. Click Add Package
  6. Select the FBAudienceNetwork library and add it to your target

CocoaPods (deprecated)

Note: CocoaPods trunk is becoming readonly so Swift Package Manager is the recommended way to install the SDK.

Add the following to your Podfile:

pod 'FBAudienceNetwork'

Then run pod install in the project folder from command line to download the latest Audience Network SDK.

Requirements

  • iOS 13.0+
  • Swift 5.3+
  • Xcode 26 or newer

Documentation

License

See the LICENSE file for more info.

关于
32.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号