Hi,
I have upgraded unity from 4.5.1 to 2007.0.1f3, after this I am unable to make IOS build using UBC and getting this error “library not found for -lGoogleToolboxForMac”.
I have used Google firebase and Facebook SDK in my project and also included below Post build script to transfer libs.
[PostProcessBuild]
public static void OnPostprocessBuild (BuildTarget buildTarget, string path)
{
#if !UNITY_CLOUD_BUILD
Debug.Log ("[UNITY_CLOUD_BUILD] OnPostprocessBuild");
ProcessPostBuild (buildTarget, path);
#endif
}
private static void ProcessPostBuild (BuildTarget buildTarget, string path)
{
#if UNITY_IOS
string projPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject ();
proj.ReadFromFile (projPath);
// This is the Xcode target in the generated project
string target = proj.TargetGuidByName("Unity-iPhone");
proj.AddBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
proj.AddBuildProperty(target, "OTHER_LDFLAGS", "-ObjC");
proj.AddBuildProperty(target, "OTHER_LDFLAGS", "-v");
List<string> frameworks = new List<string>() {
"AdSupport.framework",
"CoreData.framework",
"SystemConfiguration.framework",
"libz.dylib",
"libsqlite3.dylib",
"libGoogleAnalytics.a",
"libGoogleToolboxForMac.a",
"libApp.a",
"libAnalytics.a"
};
frameworks.ForEach((framework) => {
proj.AddFrameworkToProject(target, framework, false);
});
proj.WriteToFile (projPath);
#endif
}
Kindly suggest what should I do to make IOS build from UBC.
Thanks