kronenthaler / mod-pbxproj

A python module to manipulate XCode projects
MIT License
1.2k stars 294 forks source link

fix: repeated removing cause crash #310

Closed Leathong closed 2 years ago

kronenthaler commented 2 years ago

Can you provide an example of when this happens? or can you provide a unit test for it?

Leathong commented 2 years ago

Can you provide an example of when this happens? or can you provide a unit test for it?

It is happened when there are two files with same file name, the 'target' will be removed twice from 'potential_targets', the second time will throw an exception. Actually, I think only check the file name is not strict, files with the same file name may not be the same file. I'm not a professional Python developer,i'm sorry i don't know what should i do next.