Skip to content

Conversation

@the9an
Copy link

@the9an the9an commented Aug 9, 2025

Thanks for proposing a pull request!

To help us review the request, please complete the following:

  • sign contributor license agreement
  • I've ensured that all existing tests pass and added tests (when/where necessary)
  • I've updated the documentation (when/where necessary) and Changelog (when/where necessary)
  • I've added the proper label to this pull request (e.g. bug for bug fixes)

Pull Request Details

Before this change:

  • Facebook SDK .xcframeworks were not explicitly added to the Unity iOS build output.

  • This sometimes caused missing framework references in Xcode, leading to build errors or runtime crashes when the app attempted to use Facebook SDK functionality.

After this change:

  • Added a PostProcessBuild step to automatically include the required Facebook .xcframeworks (FBAEMKit, FBSDKCoreKit, FBSDKCoreKit_Basics, FBSDKGamingServicesKit, FBSDKLoginKit, FBSDKShareKit) in the Xcode project.

  • Ensures these frameworks are both added to the build and embedded in the app bundle for runtime access.

  • The script targets the UnityMainTarget to insert framework references directly into the generated Xcode project.

Test Plan

  1. Build the Unity project for iOS.

  2. Open the generated Xcode project.

  3. Verify the Facebook .xcframeworks appear in Frameworks, Libraries, and Embedded Content under the Unity iOS target.

  4. Confirm that “Embed & Sign” is set for each framework.

  5. Run the app on a physical iOS device and verify that Facebook SDK features load without causing runtime crashes.

@meta-cla meta-cla bot added the CLA Signed label Aug 9, 2025
@the9an the9an changed the title fix(ios): properly embed Facebook SDK xcframeworks to prevent startup… fix: iOS app crash at startup Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant