facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.73k stars 3.51k forks source link

Asset validation failed - Error while archiving and distributing the app with FBAudienceNetwork #2318

Open jkozlowicz opened 5 months ago

jkozlowicz commented 5 months ago

Checklist before submitting a bug report

Xcode version

15.0

Facebook iOS SDK version

16.3.1

Dependency Manager

SPM

SDK Framework

Core

Goals

I want to monetise my app with FBAudienceNetwork ads. To do that I followed this guide: https://developers.facebook.com/docs/audience-network/setting-up/platform-setup/ios/add-sdk/ to add FBAudienceNetworkSDK to my iOS app

Expected results

My app can be properly built and distributed with FBAudienceNetworkSDK.

Actual results

My app cannot be properly built and distributed with FBAudienceNetworkSDK, because there seems to be minimum OS version mismatch between the FBAudienceNetworkSDK and my app. There is no problem between my app and the general FB SDK, however. Building and running locally works, but whenever I tried to archive and distribute the app, I get the following error:

Screenshot 2023-12-29 at 15 19 32

Steps to reproduce

Code samples & details

import FBAudienceNetwork
sam-bensley commented 2 months ago

Hey did you ever work out why this was happening?

jkozlowicz commented 2 months ago

@sam-bensley nope, but restarting the mac and re-adding the facebook SDK solved the problem for me.