kronenthaler / openstep-parser

OpenStep plist parser for python
BSD 2-Clause "Simplified" License
17 stars 17 forks source link

openstep_parser.py has bug #17

Closed PiPiPrawn closed 6 years ago

PiPiPrawn commented 6 years ago

When I loaded project.pbxproj through load, the following error occurred and the script seemed to have a problem.

Traceback (most recent call last): File "ipa.py", line 16, in project = XcodeProject.load('Test.xcodeproj/project.pbxproj') File "build/bdist.macosx-10.13-x86_64/egg/pbxproj/XcodeProject.py", line 64, in load File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 43, in ParseFromFile File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 47, in ParseFromString File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 56, in _parse File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 68, in _parse_dictionary File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 98, in _parse_dictionary_entry File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 170, in _parse_value File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 68, in _parse_dictionary File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 98, in _parse_dictionary_entry File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 170, in _parse_value File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 68, in _parse_dictionary File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 98, in _parse_dictionary_entry File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 170, in _parse_value File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 68, in _parse_dictionary File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 98, in _parse_dictionary_entry File "build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py", line 169, in _parse_value IndexError: string index out of range

PiPiPrawn commented 6 years ago

git clone mod-pbxproj cd mod-pbxproj sudo python setup.py install During the installation, I found that the contents of the bdist.macosx-10.13-x86_64 directory had been removed and installed in the python.2.7 site-packages directory

PiPiPrawn commented 6 years ago

The contents of the directory bdist.macosx-10.13-x86_64 have been removed. Why does the error message show build/bdist.macosx-10.13-x86_64/egg/openstep_parser/openstep_parser.py

PiPiPrawn commented 6 years ago

Resolved,THX