facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
487 stars 257 forks source link

IL2CPP error for method 'System.Void Facebook.Unity.CodelessUIInteractEvent::Update()' in assembly #641

Open miaotaoii opened 2 years ago

miaotaoii commented 2 years ago

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

Goals

What do you want to achieve? build apk

Expected Results

What do you expect to happen? build success

Actual Results

What actually happened? Can you provide a stack trace? build failed

IL2CPP error for method 'System.Void Facebook.Unity.CodelessUIInteractEvent::Update()' in assembly '/Users/avidly/Desktop/projects/test/testmssdk/TestFB/Temp/StagingArea/assets/bin/Data/Managed/Facebook.Unity.dll' Additional information: Object reference not set to an instance of an object.

Exception: /Applications/Unity/Hub/Editor/2019.4.17f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll did not run properly!

Steps to Reproduce

What are the steps necessary to reproduce this issue?

build failed with IL2CPP

image

Code Samples & Details

Please provide a code sample, as well as any additional details, to help us track down the issue. If you can provide a link to a test project that allows us to reproduce the issue, this helps us immensely in both the speed and quality of the fix.

Note: Remember to format your code for readability:

// INSERT YOUR CODE HERE
skhirosh commented 1 year ago

I am encountering the same error in Unity 2019.2.2f1

lymancao commented 1 year ago

I am encountering the same error in Unity 2019.4.36f1 when building xcode project.

grapherfmy commented 1 year ago

are there any solutions?

danielebanovaz commented 1 year ago

same error, Unity 2020.3.39f1

derwaldgeist commented 1 year ago

Same here. No fixes? This whole plugin is just a mess.

lymancao commented 1 year ago

I am encountering the same error in Unity 2019.4.36f1 when building xcode project.

Upgraded Facebook SDK from version 12 to 13.2, this error disappeared.