In Cocoa, creating classes to encapsulate everything Cocoa relies heavily on calls into the objective c runtime library at “/usr/lib/libobjc.A.dylib”. When trying to use that lib in iOS, it hard crashes. Does anyone know how I can access the objective c runtime library in iOS?
As a side note - is there a way to view crash logs from the iOS simulator or iOS in general?
Yeah I saw that exact conversation when I was doing some googling of the problem. Unfortunately it doesn’t have any info relevant to this as far as I could tell.
soft declare function objc_allocateClassPair lib "/usr/lib/libobjc.A.dylib" (superclass as Ptr, name as CString, extraBytes as Integer) as Ptr
soft declare sub objc_registerClassPair lib "/usr/lib/libobjc.A.dylib" (cls as Ptr)
soft declare function class_addMethod lib "/usr/lib/libobjc.A.dylib" (cls as Ptr, name as Ptr, imp as Ptr, types as CString) as Boolean