目录
Petro Korienev

Fix: https://github.com/facebook/FBAudienceNetwork/issues/4

Summary: The package declared Swift tools 5.3 while using the iOS 15 platform constant, which requires PackageDescription 5.5. Update the tools declaration and documented Swift requirement to 5.5.

Differential Revision: D114194180

fbshipit-source-id: a7f53d3f104f96a54357efb5d530245abe4d1dac

2个月前6次提交

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.22.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.22.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 15.0+
  • Swift 5.5+
  • Xcode 26 or newer

Documentation

License

See the LICENSE file for more info.

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

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