facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

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

Open jkozlowicz opened this issue 1 year ago • 2 comments

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

  • Follow this guide: https://developers.facebook.com/docs/audience-network/setting-up/platform-setup/ios/add-sdk/
  • Download iOS Audience Network SDK 6.14.0
  • Unzip the SDK
  • Copy the contents of the Dynamic directory to your app
  • Archive the project

Code samples & details

import FBAudienceNetwork

jkozlowicz avatar Dec 29 '23 14:12 jkozlowicz

Hey did you ever work out why this was happening?

sam-bensley avatar Mar 06 '24 02:03 sam-bensley

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

jkozlowicz avatar Mar 08 '24 14:03 jkozlowicz