Search Unity

Mac build cannot find a file location

Discussion in 'macOS' started by amateurhr, Apr 19, 2018.

  1. amateurhr

    amateurhr

    Joined:
    Jun 28, 2013
    Posts:
    24
    We're using a Mac build to read in a script file. I'm able to use the OpenFile function to select the script and load it into the build, however it can't seem to find the script when I try to reload or write to the script file.

    I receive this error:

    FileNotFoundException: Could not find file /private/var/folders/ts/l935xpxn2b56_c02xll6hwv80000gn/T/AppTranslocation/13538B25-19A3-4036-B4DA-FA9E07C3D964/d/Users\dev\Repos\scriptname.txt


    Originally I thought it had something to do with the Mac OS Sierra security feature called "Gatekeeper Path Randomization": https://github.com/potionfactory/LetsMove/issues/56

    But in this example, I dragged the build to the Application folder so I'm not sure why I'm still getting this issue.

    Any Ideas??

    Best,
    Thomas
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Well, that's a very suspicious-looking path... does your file name actually have backslashes in it?!?

    If you open Terminal and do
    ...does it show the file?