kronenthaler / mod-pbxproj

A python module to manipulate XCode projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remove a file with fileID

xindizhiyin2014 opened this issue · comments

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

I am encountering same issue