SwiftPM binaryTarget dependency and code signing

You are right, sorry for the bad copy & paste. I actually preserve identifier and entitlements metadata, so the final command looks like:

find "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mindepth 1 -maxdepth 1 -type d -exec /usr/bin/codesign --force --sign ${CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements {} \;
1 Like