I have a Python Post Processing build script that modifies the Xcode Project for adding in system libraries, setting flags as well adding in directly some third party sdks. (I am assuming these work fine with cloud build)
The the third part sdks are located elsewhere on my drive, outside of the Assets folder. They live there mainly because some of them produce errors when they are in Unity, and a couple of them are shared by multiple projects.
My main question is where is the best location location for additional files that I may be adding with a PostProcessor script, that can still be accessed in the CloudBuild? Would it be the project root that contains the Assets and Library folder?
@BigToe_1 - when you set up your project, you can specify a subfolder where your Unity-specific project files are located. So your repo might be organized like this:
root/
/myUnityProject
/otherSDKs
You would need to set the subfolder to be “/myUnityProject/” and then in your Python script, you can look for “/otherSDKs/” outside the Unity folder.
That does help. Of course I didn’t set up my repo with subfolders so I’m going to try adding the an SDK folder to the root of the project and see if I can get it working.
Wow. Thank you. I think that was a really huge move and people are going to be pretty excited about it. I will try to give it a look in the next day or so.
I have started using the Xcode Manipulation API and overall it is great. I do have a question regarding adding in a dynamic library. I am trying to add in “libz.1.2.5.dylib” or maybe just “libz.1.dylib”.
If I add them in through Xcode, I do it through the “Link Binary with Libraries” from Build Phases. If I try to add in the “lib.1.2.5.dylib” or "libz.1.dylib"using the PBXProject.addFrameworkToProject(), it adds the file, but it is in red in Xcode which would mean that it is missing.
I can copy it our of its location in the iOS SDK and add it to my Unity project, copy it to my BuildProject directory, then add it to the Frameworks, but this seems really ineloquent.
Any advise for the best way to add in the dynamic libraries to Xcode?
I see you already got answer here. You might continue the discussion there, as the iOS forum has specialists for the XCode manipulation API monitoring the posts.
Btw. there is a collection of different XCode Manipulation API topics and samples here.