How Do Binaries work together? What breaks ABI?
For two (dynamic) libraries to work together they need: API compatibility ABI compatibility If you have correct function, parameter names, and are able to access it (itโs not private) then youโre good. The compiler validates if classA is using the correct Programming Interface from classB ๐ API (Application Programming Interface) Example of API usage struct House { var address = Address(streetAddress: "1100 Happy St.") } struct Person { var address = Address("1100 Sad St.") // โผ๏ธ Missing argument label 'streetAddress:' in call } struct Address { let streetAddress: String } ABI compatibility is similar to API, but just at the binary level. The compiler is no longer involved. Whatโs involved is the dynamic linker dyld. ...