This repository provides a Swift Package Manager (SPM) wrapper for the Facebook FBAudienceNetwork binary framework, enabling its use in SwiftPM projects.
Facebook distributes FBAudienceNetwork only via CocoaPods.
There is no public repository with the binary framework, which makes SwiftPM integration difficult.
This package solves that problem by providing a SPM-compatible binary target, so developers can use FBAudienceNetwork without relying on CocoaPods.
Feature request to Facebook: facebook-ios-sdk #2504
The repository automates the creation of SwiftPM releases using the ci branch and ./release.sh script. The process works as follows:
- Fetch the latest version of FBAudienceNetwork from CocoaPods.
- Check if this version is already released in this repository.
- Zip fetched
.xcframeworkand compute the checksum. - Update
Package.swiftwith the new URL and checksum. - Push a GitHub release.
Note: Only the
masterbranch is user-facing and containsPackage.swift.
Thecibranch contains build scripts, intermediate files, and is used for automation.
Add this package as a dependency in your Package.swift:
.package(
url: "https://github.com/OlegKetrar/FBAudienceNetwork",
from: "6.20.1"
)The wrapper and scripts are free to use, modify, and distribute for any purpose.
The FBAudienceNetwork binary framework itself is copyrighted by Facebook.