Fix re-deployment to devices by forcing code-signing

Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
This commit is contained in:
Simon Hausmann 2025-05-19 09:12:52 +02:00 committed by Simon Hausmann
parent 4df7a9504a
commit 93043e9b3f

View file

@ -48,3 +48,10 @@ done
# Combine executables, and place them at the output path excepted by Xcode
lipo -create -output "$TARGET_BUILD_DIR/$EXECUTABLE_PATH" "${executables[@]}"
# Force code signing every run for device builds (non-simulator)
if [ $IS_SIMULATOR -eq 0 ]; then
codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" \
--entitlements "${TARGET_TEMP_DIR}/${PRODUCT_NAME}.app.xcent" \
"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}"
fi