I've included a few dynamic libraries in my macOS project. After updating one of them to newer version I get this error:
/Users/usr/Dev/CrossPlatform.MacOS/MMP: Error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: /Users/usr/CrossPlatform.MacOS/bin/Debug/AWP.app/Contents/MonoBundle/cac.dylib (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names) (CrossPlatform.MacOS)
What are these flags for? Where and how can I add one so my app will start to build again?
I use Xamarin.Forms. Dylibs included in my project with build option "None". Then I've added each of them as "Native Reference" with Kind="Dynamic". None additional property was set. I use latest Visual Studio for Mac.
You may need a version of the native library cac.dylib recompiled to have more headerpath.
When bundling it into the final application bundle, we use install_name_tool to set it's loader path to look only inside the application bundle. Some native libraries don't leave enough "room" for this path, and install_name_tool errors as you see above.
Answers
You may need a version of the native library cac.dylib recompiled to have more headerpath.
When bundling it into the final application bundle, we use install_name_tool to set it's loader path to look only inside the application bundle. Some native libraries don't leave enough "room" for this path, and install_name_tool errors as you see above.