Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit dc8ab8b

Browse files
committed
[[ Bug 18419 ]] Code sign iOS externals for simulator
1 parent dffa389 commit dc8ab8b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/notes/bugfix-18419.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Code sign iOS external simulator builds

lcidlc/lclink.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ mkdir -p "$SRCROOT/binaries"
172172

173173
SUFFIX="-${SDK_MAJORVERSION}_${SDK_MINORVERSION}"
174174
if [ "$SDK_PLATFORM" == "iphonesimulator" ]; then
175+
/usr/bin/codesign --verbose -f -s "$CODE_SIGN_IDENTITY" "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.dylib"
176+
RESULT=$?
177+
if [ $RESULT != 0 ]; then
178+
echo "error: code signing"
179+
exit $RESULT
180+
fi
181+
175182
cp "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.dylib" "$SRCROOT/binaries/$PRODUCT_NAME-Simulator$SUFFIX.dylib"
176183
cp "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.dylib" "$SRCROOT/binaries"
177184
dsymutil "$SRCROOT/binaries/$PRODUCT_NAME.dylib"

0 commit comments

Comments
 (0)