kronenthaler / mod-pbxproj

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

fix: support `productRef` when removing files #353

Closed OmarIthawi closed 2 months ago

OmarIthawi commented 2 months ago

fix the exception below:

  File "pbxproj/pbxextensions/ProjectFiles.py", line 332, in remove_file_by_id
    if build_file.fileRef == file_ref.get_id():
AttributeError: 'PBXBuildFile' object has no attribute 'fileRef'

Fixes #352

kronenthaler commented 2 months ago

@OmarIthawi thanks for the contribution

OmarIthawi commented 2 months ago

Thanks @kronenthaler a lot for the quick triage!!