Open RomainBitard opened 1 month ago
Tried the same process with unity, it works
I'll try a lower version of applovin adapter
same problem Library not loaded: '@rpath/AppLovinSDK.framework/AppLovinSDK
each time I update admob I have tons of issues, admob sdk is f****ng TRASH
I have to find the xcframework file and manually copy it with a postprocessbuild ... basically I have to do your job to make it work . it's amazing. I'll probably switch to a competitor soon I can't lose my time like this every update
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using UnityEngine;
namespace unscripted._Scripts.Editor {
public class ApplovinTMP
{
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
{
if (target == BuildTarget.iOS)
{
string projPath = PBXProject.GetPBXProjectPath(pathToBuiltProject);
PBXProject proj = new PBXProject();
proj.ReadFromFile(projPath);
string mainTargetGuid = proj.GetUnityMainTargetGuid();
// Adding xcframework
string xcFrameworkPath = "Pods/GoogleMobileAdsMediationAppLovin/AppLovinAdapter-12.4.0.0/AppLovinAdapter.xcframework";
string fileGuid = proj.AddFile(xcFrameworkPath, xcFrameworkPath, PBXSourceTree.Source);
proj.AddFileToBuild(mainTargetGuid, fileGuid);
// Ensure frameworks are embedded properly
string embedFrameworksBuildPhase = proj.GetFrameworksBuildPhaseByTarget(mainTargetGuid);
proj.AddFileToBuildSection(mainTargetGuid, embedFrameworksBuildPhase, fileGuid);
proj.SetBuildProperty(mainTargetGuid, "LD_RUNPATH_SEARCH_PATHS", "$(inherited) @executable_path/Frameworks");
proj.WriteToFile(projPath);
}
}
}
}
it doesn't even work on the latest adapter version it works on applovin7.2.0
I have the same problem with inMobi @NVentimiglia do you know what causes this ?
The problem is known since a long time already https://github.com/googleads/googleads-mobile-unity/issues/3395
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
When I add applovin and build the app crash on startup, it works without any adapter