Thank you for your patience while we investigated this issue.
To save and extract meshes on iOS, you need to create a script in your Project tab and name it EnableFileSharingPostProcessor. Then, please open the script and replace the entire default code with the following code:
// Copyright 2021 Niantic, Inc. All Rights Reserved.
#if UNITY_IOS && UNITY_EDITOR
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using System.IO;
public class EnableFileSharingPostProcessor
{
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
{
if (buildTarget == BuildTarget.iOS)
BuildForiOS(path);
}
private static void BuildForiOS(string path)
{
// Get plist
string plistPath = path + "/Info.plist";
PlistDocument plist = new PlistDocument();
plist.ReadFromString(File.ReadAllText(plistPath));
// Set key and value for UIFileSharingEnabled.
PlistElementDict rootDict = plist.root;
rootDict.SetBoolean("UIFileSharingEnabled", true);
// Write to file
File.WriteAllText(plistPath, plist.WriteToString());
}
}
#endif
After saving this script, please rebuild the project to your device and follow the same instructions you did earlier on the Advanced Tutorial: Meshes in the Unity Editor page you linked. With this new script, you will now be able to view your app and extract your saved meshes into your Unity project.
Please let me know if you have any trouble with the above steps or if they do not solve the problem. Thank you!