AppLovin / AppLovin-MAX-Unity-Plugin

129 stars 35 forks source link

iOS - Fail to build IOS build after update Facebook SDK 6.15.0 from 6.14.0 #373

Open ShuZee opened 6 months ago

ShuZee commented 6 months ago

MAX Plugin Version

12.4.2

Unity Version

2020.3.25f1

Device/Platform Info

Iphone XS - iOS

Current Behavior

When i built a iOS build, it show a error:

Undefined symbols: _FBRewardedVideoAdBridgeOnServerRewardFailure, referenced from: _RewardedVideoAdBridgeIOS_FBRewardedVideoAdBridgeOnServerRewardFailure_m8CA9DAD92471CA7A8BA4B4ECD6813F107450FED7 in Assembly-CSharp20.o _RewardedVideoAdBridgeIOS_Create_mFB43C77B3C5128B87670A40ED991010C655E0548 in Assembly-CSharp20.o _FBRewardedVideoAdBridgeOnServerRewardSuccess, referenced from: _RewardedVideoAdBridgeIOS_FBRewardedVideoAdBridgeOnServerRewardSuccess_m66D1E09B2D178DE3D94C4D38073516AD5FC8B863 in Assembly-CSharp20.o _RewardedVideoAdBridgeIOS_Create_mFB43C77B3C5128B87670A40ED991010C655E0548 in Assembly-CSharp20.o clang: error: linker command failed with exit code 1 (use -v to see invocation)

I was commented out all mention method show in that logs and i build fine. But a build always crashed when i opened it. I back to version FBAudienceNetword 6.14.0 and AppLovinMediationFacebookAdapter 6.14, it work well. Something wrongs with a FB SDK

Expected Behavior

A build has not fail

How to Reproduce

Additional Info

No response

igs-billywang commented 6 months ago

iOS update ad plugin, meet the same problem!
GoogleMobileAdsMediationFacebook 6.15.0.0

ShuZee commented 6 months ago

I found a problems solve in this thread. https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/348 Commented out all references of the 2 functions in RewardedVideoAd.cs before built a iOS build

     [DllImport("__Internal")]
    private static extern void FBRewardedVideoAdBridgeOnServerRewardSuccess(int uniqueId,
            FBRewardedVideoAdBridgeExternalCallback callback);

    [DllImport("__Internal")]
    private static extern void FBRewardedVideoAdBridgeOnServerRewardFailure(int uniqueId,
            FBRewardedVideoAdBridgeExternalCallback callback);

Those functions maybe had not been used in 6.15.0

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.