Hi,
I’m trying to use the Xcode API so that the MessageUI.framework is included in my xcode project when using Cloud Build, but I’m not clear on how this is done, there don’t seem to be any instructions available, only the sample project which is a bit mysterious.
I added the files in the Assets/Editor folder to my project’s Assets/Editor folder. Then I modified the “XcodeProjectUpdater.cs” file by adding:
proj.AddFrameworkToProject(target, “MessageUI.framework”, false);
and commenting out:
CopyAndReplaceDirectory("NativeAssets/TestLib.bundle", Path.Combine(path, "Frameworks/TestLib.bundle"));
proj.AddFileToBuild(target, proj.AddFile("Frameworks/TestLib.bundle",
"Frameworks/TestLib.bundle", PBXSourceTree.Source));
CopyAndReplaceDirectory("NativeAssets/TestLib.framework", Path.Combine(path, "Frameworks/TestLib.framework"));
proj.AddFileToBuild(target, proj.AddFile("Frameworks/TestLib.framework",
"Frameworks/TestLib.framework", PBXSourceTree.Source));
but now the project no longer opens in Xcode upon build, and there are no errors in Unity. I get this error in xcode when I try to open the project manually:
“cannot be opened because the project file cannot be parsed.”