You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception is thrown when trying to remove unrelated files:
Error: An unexpected error occurred in clean_translation_files: 'PBXBuildFile' object has no attribute 'fileRef'
Traceback (most recent call last):
File "/home/omar/work/openedx/openedx-app-ios/i18n_scripts/translation.py", line 394, in <module>
main()
File "/home/omar/work/openedx/openedx-app-ios/i18n_scripts/translation.py", line 390, in main
clean_translation_files()
File "/home/omar/work/openedx/openedx-app-ios/i18n_scripts/translation.py", line 335, in clean_translation_files
xcode_project.remove_files_by_path(file_ref.path, tree=LOCALIZABLE_FILES_TREE)
File "/home/omar/.virtualenvs/openedx-app-ios/lib/python3.10/site-packages/pbxproj/pbxextensions/ProjectFiles.py", line 366, in remove_files_by_path
if self.remove_file_by_id(file_ref.get_id(), target_name=target_name):
File "/home/omar/.virtualenvs/openedx-app-ios/lib/python3.10/site-packages/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'
make: *** [Makefile:3: clean_translations] Error 1
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'
```
Fixeskronenthaler#352
Describe the bug
Exception is thrown when finding
productRef
instead offileRef
.Exception is thrown when trying to remove unrelated files:
System information
To Reproduce
Steps to reproduce the behavior:
TBD: Add more details here
Expected behavior
The file is added despite
productRef
exists somewhere else.Screenshots
None.
Additional context
We're trying to add generated files, and XCode doesn't cooperate without
mod-pbxproj
help.Related issues
The text was updated successfully, but these errors were encountered: