Search Unity

[Solved-With Firebase SDK] iOS game crash after integrating "Facebook SDK" in your unity project.

Discussion in 'iOS and tvOS' started by tashfiq103, Jun 17, 2019.

  1. tashfiq103

    tashfiq103

    Joined:
    Mar 4, 2016
    Posts:
    15
    Hey Devs.

    Hope you are doing well. There seems to be frustrating bug which is getting from Facebook SDK and affects on different devices. The game crashes on launch if connected to mobile data but not when connected to WiFi and the reverse also. Both Facebook and Unity are aware of it but it seems that they haven't found a definitive solution yet. but the following fix seems to have worked in most reported cases: add the -ObjC linker flag in Xcode. A detailed and up-to-date GitHub thread on the subject can be found here.

    Solution:
    -------------
    If you just add "Firebase Analytics" to you project, it overwrite and delete some earlier versions & duplicated plugins. Which is more likely resolve the plugins issue of "Facebook" as well.

    Steps:
    (1) Integrate Facebook SDK
    (2) Integrate Firebase Analytics (Dot.Net 4.0)
    (3) Make sure you pressed the "Yes" button when it asked for deleting the conflicted and earlier version of plugins/sdk.

    Hope it solve the problem for everyone.

    Cheers :)
     
  2. Deirvlon

    Deirvlon

    Joined:
    Oct 14, 2013
    Posts:
    4