remove a file with fileID
xindizhiyin2014 opened this issue · 1 comments
xindizhiyin2014 commented
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
I am encountering same issue