PostProcessAndroid - "../" not supported in mac

More
6 years 10 months ago - 6 years 10 months ago #2242 by SweatyChair
When I build Android in iOS and has the game name localized, error appears in PostProcess as:
System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/fur/Projects/NoHumanityMain/Assets/StreamingAssets/../../Temp/StagingArea/res/values"
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00064] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96 
  at I2.Loc.PostProcessBuild_Android.SetStringsFile (System.String folder, System.String fileName, System.String stringXML, System.String appName) [0x0000e] in /Users/fur/Projects/NoHumanityMain/Assets/I2/Localization/Scripts/Editor/PostProcessBuild_ANDROID.cs:77

It seems that double ../ is not supprted in mac?

In this case I simply need to add following line above PostProcessBuild_ANDROID.cs:77:
folder = folder.Replace("Assets/StreamingAssets/../../", "");

Always remember you're unique, just like everyone else.
Last edit: 6 years 10 months ago by SweatyChair.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #2245 by Frank
Good to know. I normally build Android in Windows!

Will double check this and add a fix.
Thanks!!
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

Time to create page: 0.216 seconds
Template by JoomlaShine