2
我已經升級統一從4.5.1
到2007.0.1f3
,在此之後,我無法作出IOS生成使用統一的雲構建和收到此錯誤庫未找到-lGoogleToolboxForMac - 統一雲構建
庫沒有發現 - lGoogleToolboxForMac
我在我的項目中使用了Google的firebase和Facebook SDK。
後生成的腳本來傳輸庫:
[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
}
我應該怎麼做才能讓IOS從UBC建立?