![]() ![]() usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) System/Library/Frameworks/amework/Versions/A/CoreServices (compatibility version 1.0.0, current version 728.13.0) System/Library/Frameworks/amework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 48.0.0) System/Library/Frameworks/amework/Versions/C/AppKit (compatibility version 45.0.0, current version 1404.47.0) System/Library/Frameworks/amework/Versions/C/Foundation (compatibility version 300.0.0, current version 1259.0.0) System/Library/Frameworks/amework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1258.1.0) usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1) usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) System/Library/Frameworks/amework/Versions/A/Cocoa (compatibility version 1.0.0, current version 22.0.0) Otool -L output for dylib: (compatibility version 0.0.0, current version 0.0.0) The app does not set any environment variables, either in the ist or in code. The dylib is in the Contents/Frameworks subdirectory of the app. ![]() The app calls functions in the dylib using dlopen and dlsym. All I know right now is that it returned an unexpected and unhelpful error code. It may have been trying to talk to a server over the Internet. I'm not sure exactly what failed, as I didn't write the dylib. To answer some questions asked in a comment: Any idea why this happens or what I can do about it? This is described as "Allows an application to be impacted by DYLD environment variables, which can be used to inject code into the process." That code injection bit sounds like something I'd like to avoid. When I turned on Apple's "Hardened Runtime" feature, the dylib stopped working, until I checked the option "Allow DYLD Environment Variables". I have a Mac app mostly built with Xcode that uses a dynamic library (dylib) built with Free Pascal via Lazarus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |