8000 GitHub - AurelBec/luka-mini: Dexcom CGM readings in your menu bar (macOS 13 compatible) · GitHub
[go: up one dir, main page]

Skip to content
AurelBecPublic
forked from kylebshr/luka-mini

About

Dexcom CGM readings in your menu bar (macOS 13 compatible)

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

87 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luka Mini

A simple menu bar app that uses dexcom-swift to display real-time Dexcom CGM readings. Requires macOS Ventura (13.0) or later.

Building

Needs Xcode 15.2 — the last version that runs on Ventura. Newer Xcodes write a project format (objectVersion = 70, synchronized folder groups) that 15.2 cannot open at all, so don't let a newer Xcode re-save the project.

Signing is not committed. Create Config/Signing.local.xcconfig (git-ignored) with your own values:

DEVELOPMENT_TEAM = YOUR_TEAM_ID
PRODUCT_BUNDLE_IDENTIFIER = com.yourname.LukaMini

Then build from the command line:

xcodebuild -project LukaMini.xcodeproj -scheme "Luka Mini" -configuration Release \
  -destination 'platform=macOS' -derivedDataPath build build

The app lands in build/Build/Products/Release/Luka Mini.app. No provisioning profile is involved — see below — so this works offline once your signing certificate is in the keychain.

Free-team entitlements

Two entitlements are deliberately absent from LukaMini/LukaMini.entitlements, because both are restricted and a free personal Apple team cannot sign them:

  • Time Sensitive Notifications. Glucose alerts still fire, they just don't break through Focus modes.
  • keychain-access-groups. Its value was an empty array, so it granted nothing — but any restricted entitlement forces 60F2 an embedded provisioning profile, and a free team's profile is valid for only seven days (TimeToLive = 7). Dropping it means no profile is embedded at all, so the build stays valid as long as the signing certificate, which lasts a year.

Losing keychain-access-groups costs iCloud Keychain sync: writing a synchronizable item fails with errSecMissingEntitlement (-34018). Keychain.swift therefore uses the plain local keychain, which works fine under the sandbox. Credentials stay on this Mac instead of syncing to other devices.

Installing

Build first, then copy the app out of the build directory:

rm -rf "/Applications/Luka Mini.app"
cp -R "build/Build/Products/Release/Luka Mini.app" /Applications/
open "/Applications/Luka Mini.app"

The rm -rf matters. cp -R onto an existing bundle merges into it rather than replacing it, so files the previous build had and this one doesn't — Contents/embedded.provisionprofile is the one that bites — survive as orphans the new signature doesn't seal. macOS then refuses to launch the app with a cryptic error=-600 procNotFound. When that happens, codesign --verify --deep --strict "/Applications/Luka Mini.app" names the offending file.

It is a menu bar app (LSUIElement) — no Dock icon and no window appears on launch. Look at the right-hand end of the menu bar. "Launch at login" is a toggle inside the app's own settings.

Nothing to un-quarantine: the app is signed locally with your own Apple Development certificate rather than downloaded. Check when that certificate runs out with:

security find-certificate -c "Apple Development" -p | openssl x509 -noout -dates

Past that date, renew it in Xcode's Accounts pane and rebuild.

About

Dexcom CGM readings in your menu bar (macOS 13 compatible)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0