Hello. Sorry, I’ve found some similar posts regarding this issue, but what I’d really like is a guide. Or some clarification. All I need to do is integrate the “AdSupport.framework” framework into my cloud build.
I’m pretty unfamiliar with Xcode and post processors, here is what I have scrapped together so far from other posts:
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.Collections;
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using System.IO;
using System.Linq;
public class PostBuildProcessor : MonoBehaviour
{
[PostProcessBuild]
public static void OnPostprocessBuild( BuildTarget buildTarget, string path )
{
#if UNITY_IOS
Debug.Log("OnPostprocessBuildiOS - my man!");
string projPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject ();
proj.ReadFromString (File.ReadAllText (projPath));
string target = proj.TargetGuidByName ("Unity-iPhone");
// add frameworks
proj.AddFrameworkToProject(target, "AdSupport.framework", true);
File.WriteAllText (projPath, proj.WriteToString ());
#endif
}
}
It was my understanding that I all I needed to do was create this .cs file, place it in an “Editor” folder in my project, and that would integrate the framework into my cloud build. Is this correct?