kronenthaler / mod-pbxproj

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

remove a file with fileID #338

Open xindizhiyin2014 opened 8 months ago

xindizhiyin2014 commented 8 months ago

hello: I run my script and delete the fileRef use the func :remove_file_by_id but the pycharm told that: File “xxx/venv/lib/python3.9/site-packages/pbxproj/pbxextensions/ProjectFiles.py", line 341, in remove_file_by_id if len([1 for x in self.objects.get_objects_in_section('PBXBuildFile') if x.fileRef == file_ref.get_id()]) != 0: File “xxx/venv/lib/python3.9/site-packages/pbxproj/pbxextensions/ProjectFiles.py", line 341, in if len([1 for x in self.objects.get_objects_in_section('PBXBuildFile') if x.fileRef == file_ref.get_id()]) != 0: AttributeError: 'PBXBuildFile' object has no attribute 'fileRef'

is it the bug of mod-pbxproj?, can help us to fix it .thanks

Nadohs commented 5 months ago

I am encountering same issue