···1212framework_prefix = "/System/Library/Frameworks/"
1313private_framework_prefix = "/System/Library/PrivateFrameworks/"
14141515-class_dump = "~/bin/class-dump"
1515+class_dump = "/Users/andrewhyatt/bin/class-dump"
16161717copyright = """/*
1818 This file is part of Darling.
···128128 if line == "":
129129 continue
130130131131- address, id, name = line.split(" ")
132132- # Remove the underscore
133133- name = name[1:]
131131+ if len(line.split(" ")) == 3:
132132+ address, id, name = line.split(" ")
133133+ # Remove the underscore
134134+ name = name[1:]
134135135135- if id == "T":
136136- functions.append(name)
136136+ if id == "T":
137137+ functions.append(name)
138138+ else:
139139+ print("Skipping c function output line")
137140138138-class_dump_output = subprocess.check_output(["class-dump", full_path]).decode('utf8').strip()
141141+class_dump_output = subprocess.check_output([class_dump, full_path]).decode('utf8').strip()
139142uses_objc = "This file does not contain any Objective-C runtime information." not in class_dump_output
140143141144c_header = open(header_dir + target_name + ".h", "w")