Skip to content

xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0 #2

Description

@cooljeanius

I tried running the script on https://github.com/cooljeanius/goldout and got the following result:

$ python3 xcodetocmake.py
Enter path to the .xcodeproj directory: /Users/ericgallager/Documents/GitHub/goldout/goldout.xcodeproj
Traceback (most recent call last):
  File "xcodetocmake.py", line 40, in <module>
    xcode_to_cmake(xcode_project_path)
  File "xcodetocmake.py", line 35, in xcode_to_cmake
    source_files = extract_files_from_project(xcodeproj_path)
  File "xcodetocmake.py", line 9, in extract_files_from_project
    pbxproj = plistlib.load(f, fmt=plistlib.FMT_XML)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/plistlib.py", line 1012, in load
    return p.parse(fp)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/plistlib.py", line 289, in parse
    self.parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions