Skip to content

Commit 69d19b3

Browse files
authored
Codesign xcframeworks (#585)
1 parent 26b6ba9 commit 69d19b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tools/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ main() {
8181
# remove duplicate assets if any
8282
find "Release/" -name '_CodeSignature' -exec rm -rf {} +
8383

84+
# codesign
85+
SIGNING_IDENTITY=$(security find-identity -v -p codesigning | grep "Distribution: Leanplum, Inc." | awk '{print $2}')
86+
if [ -n "$SIGNING_IDENTITY" ]; then
87+
echo "Codesigning xcframeworks"
88+
find "Release/" -name '*.xcframework' -exec codesign --timestamp -s $SIGNING_IDENTITY {} +
89+
else
90+
echo "Signing Identity not found"
91+
fi
92+
8493
# zip all iOS frameworks
8594
zip_ios
8695

0 commit comments

Comments
 (0)