Forum Xamarin.Mac

How to use -headerpad or -headerpad_max_install_names?

VolodymyrSavchenkoVolodymyrSavchenko UAMember ✭✭✭

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.

Best Answer

Answers

Sign In or Register to comment.