AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

Fail to build iOS build after update to 6.4.2 from 6.1.2 #360

Closed kekchpek closed 4 months ago

kekchpek commented 7 months ago

MAX Plugin Version

6.4.2

Unity Version

2022.3.18f1

Device/Platform Info

iOS

Current Behavior

When I build an iOS build in XCode, I get errors:

Expected Behavior

iOS build in XCode should be cooked well.

How to Reproduce

Just make the XCode project build in Unity, and try to build&run the cooked project in XCode.

Additional Info

I noticed, that AppLovinPostProcessiOS has been significantly changed, when I update the AppLovin plugin to 6.4.2. As I understand, it makes some manipulations with the dependencies, that are specified in the errors above. Also these framewokrs are specified as Pod dependencies in FacebookSDK *Dependencies.xml file for google-jar-relover(aka External Dependency Manager). Probably this cause a some kind of conflict between AppLovin and Facebook SDKs. I hadn't dived deep into it, but maybe this info can be useful.

JonathanLiuApp commented 7 months ago

Hello, this should be fixed in plugin version 6.4.3. Could you try updating your plugin version and see if that helps the issue?

santoshbagadi commented 7 months ago

@kekchpek if you have custom settings for Facebook to be added to main target, you may have to remove it as mentioned here: https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/issues/355#issuecomment-2051817075

The other option would be to remove the Facebook frameworks from this list in our plugin here: https://github.com/AppLovin/AppLovin-MAX-Unity-Plugin/blob/07378eee00a848f360c83ac372ef82acb796b552/DemoApp/Assets/MaxSdk/Scripts/IntegrationManager/Editor/AppLovinPostProcessiOS.cs#L65-L70

We'll include a fix in the next SDK release that only embeds dynamic libraries only if they are not in the main target as well.

Barky commented 7 months ago

Same issue here. Unity plugin version 6.4.3 and iOS plugin version 12.4.1.

Vitalii-Dudnyk commented 6 months ago

Same issue here. Unity plugin version 6.5.2 and iOS plugin version 12.5.0. Unity version 2022.3.25

santoshbagadi commented 4 months ago

Our latest plugin version 6.6.0 now takes Unity-iPhone Pods when embedding dynamic libraries.