onevcat / XUPorter

Add files and frameworks to your Xcode project after it is generated by Unity 3D.
http://onevcat.com/2012/12/xuporter/
MIT License
597 stars 240 forks source link

XCProject incorrectly reports duplicate files #29

Closed MrTact closed 4 years ago

MrTact commented 10 years ago

I have recently integrated XUPorter into our project to handle localization files. Immediately I ran into a problem with the file-duplication check around line 331 of XCProject.cs. It truncates the file down to the filename, which pretty explicitly breaks using XUPorter for localization, since that involves having multiple InfoPlist.strings files, in separate directories per language.

I think that line ought to just check a PBXFileReference based on the full filePath, but I don't know enough about the inner workings of the tool to be sure of that.