I have a C++ library in my hands that needs to be compiled in a form of .dylib for iOS. I have used iOS-cmake and that tool has built a library and created Xcode solution where I can find the library in targets section.
So I open Xcode solution, choose the target and hit Build
which results in an error:
Signing for "my_library" requires a development team. Select a development team in the Signing & Capabilities editor.
The problem here is that library targets in Xcode doesn't have Signing option. Target config contains only these tabs:
So my question is - how to get around that? Can I sign a library target using Run Script
?
Please advise me how to approach this task. Thank you in advance!
There are multiple ways to solve this problem.
The idea in the second approach is, xcode (xcodebuild) provides few environment variables while building the project, so we try to leverage the same signing identity which was used for signing the application to sign the library