#How to clear IL2CPPStats folder reference in ProjectSettings.asset?

1 messages · Page 1 of 1 (latest)

raw python
#

Every single time I try to use a new workspace and clone the project, and I try to make a build, I encounter with this error. nickname_projectname is my colleague's workspace name in Perforce, I censored it in this message.
Sometimes I can fix this by opening ProjectSettings.asset in a Notepad++ and rewrite the path to point to my workspace's folder I create for it. And it usually works. But if I do this now Unity says my ProjectSettings is corrupted...
Where does this path gets stored by the way inside the asset? How could I change the path in a normal way?

Unhandled exception: System.UnauthorizedAccessException: Access to the path 'C:\Users\open\Documents\work\nickname_projectname\Standalone\IL2CPPStats' is denied.
at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
at System.IO.Directory.CreateDirectory(String path)
at NiceIO.NPath.CreateDirectory()
at il2cpp.StatisticsGenerator.DetermineAndSetupOutputDirectory(Il2CppCommandLineArguments il2CppCommandLineArguments)
at il2cpp.Il2CppOptionParser.SetupOtherArguments(Il2CppCommandLineArguments il2CppCommandLineArguments, List`1 foundAssemblies)
at il2cpp.Il2CppOptionParser.ParseArguments(String[] args, Boolean& continueToRun, ExitCode& exitCode, RuntimePlatform& platform, Il2CppCommandLineArguments& il2cppCommandLineArguments, BuildingOptions& buildingOptions)
at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture, Boolean throwExceptions)
at il2cpp.Program.Main(String[] args)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

#

or how could I just disable this whole IL2CPPStats generation?

#

@copper urchin

copper urchin
#

It seems to be trying to create a folder there.
The simplest solution would be for your colleague to not to store the project in the users directory. And definitely not to commit project settings from such an environment to version control.

Other than that, I'm not sure. I don't think this path is exposed anywhere in the ui. It's also weird that it would be stored in the project settings.🤔

#

It seems like some of the il2cpp config can be manipulated via code, so maybe you could write a simple tool to validate that path.

copper urchin
#

Btw, I don't think modifying the asset would result in it corrupting on it's own.
Maybe it's an encoding/line ending change issue? Did you try checking the asset endocing before and after your changes as well as looking at the diff against the unmodified asset?