Skip to content

remove a file with fileID #338

Description

@xindizhiyin2014

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions