From 93043e9b3f5ef10c76f379ce994714316cbbff08 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 19 May 2025 09:12:52 +0200 Subject: [PATCH] Fix re-deployment to devices by forcing code-signing Co-authored-by: Nigel Breslaw --- scripts/build_for_ios_with_cargo.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/build_for_ios_with_cargo.bash b/scripts/build_for_ios_with_cargo.bash index f62bc41221..0a959861bc 100755 --- a/scripts/build_for_ios_with_cargo.bash +++ b/scripts/build_for_ios_with_cargo.bash @@ -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