Re: Ensure Framework Links to static lib not dylib
Alex Zavatone
If we have more than one of us manually adding .a, there probably must be a process that does this automatically that we don’t know about.
toggle quoted message
Show quoted text
Any ideas? On Dec 10, 2020, at 12:15 PM, James Walker <list2@...> wrote:On Dec 10, 2020, at 9:18 AM, Sak Wathanasin <sw@...> wrote:In the Other Linker Flags build setting, you can add the full path to a library instead of something like -lFoo, ensuring that you get the right one.On 10 Dec 2020, at 15:32, Sandor Szatmari <admin.szatmari.net@...> wrote:I fell over this the other day. If you have both the .a and .dylib in the same directory, Xcode will link in the .dylib even if you've explicitly added the .a to your "Link with ..." in the build phases of your project. If you look in the build log, you will see that the linker cmd line that Xcode generates for (say) libFoo.a is something like: |
|