Embed and codesign a third party static library in Xcode 12.4-built app

After upgrading to Xcode 12.4, I can no longer seem to embed and code sign a third party static library. This wasn't a problem before, so I think something has changed and I can't work out how to build the app with the library present. Under Signing & Capabilities, and Hardened Runtime, I can get the app to build and run by checking the box for Disable Library Validation. But that doesn't seem to work if I send my app out to others who don't have the static library already installed.

But that doesn't seem to work if I send my app out to others who don't
have the static library already installed.

I’m confused. A static library is input to the linker. Once you’ve built your app the code from the static library has been linked into your build product (your main executable or one of your frameworks or shared libraries) and thus there’s no reason to distribute the static library to your users. Why are you doing that?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Embed and codesign a third party static library in Xcode 12.4-built app
 
 
Q