Код: Выделить всё
extern const struct segment_command *getsegbyname(
const char *segname) __CCTOOLS_DEPRECATED;
#define __CCTOOLS_DEPRECATED __API_DEPRECATED("No longer supported", macos(10.0, 13.0), ios(1.0, 16.0), watchos(1.0, 8.0), tvos(1.0, 16.0))
Код: Выделить всё
@available(iOS, introduced: 1.0, deprecated: 16.0, message: "No longer supported")
public func getsegbyname(_ segname: UnsafePointer!) -> UnsafePointer!
Это была очень удобная функция, позволяющая избежать необходимости проходить через структуры MachO путем рука.
Подробнее здесь: https://stackoverflow.com/questions/792 ... e-function
Мобильная версия