Manually Adding Framework to Cloud Build?

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?

This might have been a preemptive post. I didn’t define the Post Export Method in the advanced options. Hopefully that fixes my problems.

UPDATE - It was a really really dumb issue on my end. Apparently a .a file was not uploaded to my SVN. I guess those are set to be ignored by default, or perhaps I set that a year ago and have just forgotten at this point. I’d delete this thread but I don’t think I can do that. Instead I might turn it into a “Guide” so that next time I have to do this I can save a day of time figuring it out again.

A [PostProcessBuild] method will execute automatically, regardless of whether you set it up in the Cloud build.

You can define other methods that will execute before or after a build through the cloud build dashboard.