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.5k forks source link

Facebook SDK(dynamic) Validation Failed in Unity #2373

Open bforrose opened 1 month ago

bforrose commented 1 month ago

Checklist before submitting a bug report

Xcode version

15.1

Facebook iOS SDK version

17.0.0

Dependency Manager

Carthage

SDK Framework

Login

Goals

The Facebook SDK must also be built successfully in Unity.

Expected results

Adding the Facebook SDK to Unity and exporting it to Xcode should not result in a build failure.

Actual results

After adding the Facebook SDK to Unity and exporting it to Xcode, the build fails. The build failure is due to the Facebook SDK's Validation Failed. (Validation Error: A sealed resource is missing or invalid).

The reason for the Validation Failed error is as follows: There is a build issue due to the symlink while applying the FacebookSDK_Dynamic.xcframework.zip file.

Symlinks have been identified in the folders and files under the following XCFrameworks:

Adding these XCFrameworks to the Unity engine will break the symlinks. (The file copying provided by the Unity Engine does not preserve symlinks.) In this state, performing a Unity Build will result in a Validation Failed error for the Facebook SDK in Xcode. (Validation Error: A sealed resource is missing or invalid).

original XCFramework

스크린샷 2024-04-05 19 33 48

XCFramework added to Unity

스크린샷 2024-04-05 19 33 19

The FacebookSDK-Static_XCFramework.zip does not have symlinks, so this issue does not occur.

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"