Reputation: 1320
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!
Upvotes: 2
Views: 688
Reputation: 1
You can fix this by
set_target_properties (${TARGET_NAME} PROPERTIES
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer"
XCODE_ATTRIBUTE_DEVELOPMENT_TEAM ${DEVELOPMENT_TEAM_ID}
)
Upvotes: 0
Reputation: 119
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
Upvotes: 0