securefs icon indicating copy to clipboard operation
securefs copied to clipboard

Mac :xcode build failed: File name too long

Open nicholaslin opened this issue 6 years ago • 5 comments

屏幕快照 2019-09-26 23 19 00 hi, buddy as you can see above picture , when I build xcode project on the mounted fs, the file name is append its path cause file name too long ,please tell me how to solve it if you know

nicholaslin avatar Sep 27 '19 09:09 nicholaslin

Sorry, I don't know how Xcode produces that long a filename, and it is fundamentally impossible to support such long filenames in format 4. You may create a format 2 securefs filesystem, or try to figure out why Xcode results in such long names.

netheril96 avatar Sep 28 '19 14:09 netheril96

I’m think that not just xcode file but all file that has long name directory has same problem. Because the file name has changed in securefs that had append it’s complete file path, and xcode building will generate long name directory so the phenomenon occurs

nicholaslin avatar Sep 30 '19 23:09 nicholaslin

Because the file name has changed in securefs that had append it’s complete file path,

I don't understand this line. Are you saying that securefs is the reason that Xcode generates such long filename (XXXXXX_xcbuild.lock)?

On Tue, Oct 1, 2019 at 7:36 AM nicholaslin [email protected] wrote:

I’m think that not just xcode file but all file that has long name directory has same problem. Because the file name has changed in securefs that had append it’s complete file path, and xcode building will generate long name directory so the phenomenon occurs

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/netheril96/securefs/issues/84?email_source=notifications&email_token=AAGMJZZA222K34Z35VI3RPTQMKEPZA5CNFSM4I3D4FXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD77NQ6I#issuecomment-536795257, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGMJZ74T63RKTG7IPDZITLQMKEPZANCNFSM4I3D4FXA .

netheril96 avatar Oct 01 '19 07:10 netheril96

As you can see at my first pic , when Xcode building and save file in mounted directory, the file name will change (append Users_computername......_xcodebuild.lock ,the prefix is it’s complete path),but when Xcode save to the directory that no mount it’s file name just is “xcodebuild.lock”,and then I try to mkdir a long name dir name in finder ,and then drop any file in it and drag the dir to the mounted fs,the same issue occurred,so I guess that

nicholaslin avatar Oct 01 '19 07:10 nicholaslin

OK, I got it. It is very weird. I need time to investigate.

netheril96 avatar Oct 01 '19 07:10 netheril96