Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove a file with fileID #338

Open
xindizhiyin2014 opened this issue Jan 17, 2024 · 1 comment
Open

remove a file with fileID #338

xindizhiyin2014 opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@xindizhiyin2014
Copy link

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
Copy link

Nadohs commented Mar 22, 2024

I am encountering same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants