Using the framework in PreferencePane

I'm currently trying to implement a “third-party structure” (FeedbackReporter.Framework) in my preference area.

Unfortunately, I constantly get the following error when trying to launch the preferences panel:

05/16/10 23:13:30 System settings [32645] dlopen_preflight failed dlopen_preflight (/Users/me/Library/PreferencePanes/myPane.prefPane/Contents/MacOS/myPane): Library not loaded: @executable_path /../ Frames / FeedbackReporter.framework / Versions / A / FeedbackReporter Link from: /Users/me/Library/PreferencePanes/myPane.prefPane/Contents/MacOS/myPane Reason: Image not found for /Users/me/Library/PreferencePanes/myPane.prefPane

As far as I read so far, this problem is probably caused by the fact that my prefPane is not a real application, but a "plugin" of "System Settings.app", and therefore @executable_path resolves the path in the bundle of this application, instead of my prefile bundle area.

But I really did not understand how to fix this problem. I think this should be pretty easy, as this is a common case when people use non-apple frameworks in PreferencePanes.

Thanks for your tips!

- Brief update: As I understand it, so far I have read many documents, there may be a setting that needs to be done in a third-party structure. Obviously, the "installation path" must be set to "loader_path" instead of "executable_path" in order to work in the preference area.

(FeedbackReporter.framework), , , , ?! , , install_ Xcode.

+3
2

, ,

FeedbackReporter.xcodeproj/project.pbxproj

.

+1

, , . install_name_tool, , MachO . otool -L <binary file for your plugin>, , , install_name_tool -change ... . .

0

Source: https://habr.com/ru/post/1745692/


All Articles