Skip to content

Commit ef31956

Browse files
committed
Grant BLE permission at both levels
That is, update both the user and system `TCC.db` files. Cherry-pick of the following commit: commit 5bd6ecd Author: Paul Colby <[email protected]> Date: Sat Aug 9 09:32:02 2025 +1000 Try updating both the user and system TCC.db files
1 parent ac2178e commit ef31956

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,12 @@ jobs:
366366
- name: Grant Bluetooth access # Only needed for unit tests with older Qt's on newer runners.
367367
if: matrix.os != 'macos-13' && ( startsWith(matrix.qt, '5') || startsWith(matrix.qt, '6.2.') )
368368
run: >
369-
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT or REPLACE INTO access
370-
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
371-
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
369+
for db in {"${HOME}",}'/Library/Application Support/com.apple.TCC/TCC.db'; do
370+
echo "Upserting: ${db}"
371+
sudo sqlite3 "${db}" "INSERT or REPLACE INTO access
372+
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
373+
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
374+
done
372375
- name: Test w/ coverage
373376
if: matrix.os != 'macos-13' || matrix.cc != 'clang'
374377
run: ctest --output-on-failure --test-dir "$RUNNER_TEMP/coverage" --verbose

0 commit comments

Comments
 (0)