Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

iOS: bundle id ch.opengym.app

Duarte Santosbfab775c3299
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index 2e81ffaf0..744f7eca6 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -66,7 +66,7 @@ jobs:
xcrun simctl install "$UDID" build/dd/Build/Products/Debug-iphonesimulator/App.app
# A busy runner can still be starting the simulator's own apps: give the page up to three
# minutes to reach its plugins rather than a fixed wait.
- xcrun simctl launch --console-pty "$UDID" ch.duartesantos.opengym > build/console.log 2>&1 &
+ xcrun simctl launch --console-pty "$UDID" ch.opengym.app > build/console.log 2>&1 &
for i in $(seq 36); do grep -q "RestAlert" build/console.log && break; sleep 5; done
sleep 5
xcrun simctl io "$UDID" screenshot build/first-screen.png || true
diff --git a/docs/APP_STORES.md b/docs/APP_STORES.md
index afcd65914..57b690536 100644
--- a/docs/APP_STORES.md
+++ b/docs/APP_STORES.md
@@ -98,14 +98,17 @@ on the phone (Settings → Reset, or uninstall).
1. Apple Developer Program (99 USD a year, as an individual; the seller name shown is your
legal name).
-2. App Store Connect → new app, bundle id `ch.duartesantos.opengym`. If "openGym" is taken as an
- App Store name, "openGym: Workout Tracker" keeps the brand.
+2. App Store Connect → new app "openGym: Workout Tracker" (plain "openGym" is taken as an App
+ Store name; the home screen still says openGym), bundle id `ch.opengym.app`. The iPhone app
+ has its own bundle id because `ch.duartesantos.opengym` is held by another Apple team (an
+ Xcode build of the public code reserves it); Android keeps `ch.duartesantos.opengym`.
3. Signing material, all doable from Linux:
- `openssl req -new -newkey rsa:2048 -nodes -keyout dist.key -out dist.csr -subj "/CN=Duarte Santos/emailAddress=…"`,
upload the CSR under Certificates → Apple Distribution, download `distribution.cer`, then
`openssl x509 -inform der -in distribution.cer -out dist.pem && openssl pkcs12 -export -legacy -inkey dist.key -in dist.pem -out dist.p12`.
- - Profiles → App Store Connect profile for `ch.duartesantos.opengym` → `openGym_AppStore.mobileprovision`.
- - Users and Access → Integrations → App Store Connect API key (App Manager) for uploads.
+ - Profiles → App Store Connect profile for `ch.opengym.app` → `openGym_AppStore.mobileprovision`.
+ - Users and Access → Integrations → App Store Connect API key (Admin) for uploads; with it the
+ bundle id, certificate and profile can also be created through the API instead of the portal.
- Keep all of it next to the Android keystore (`/root/.config/opengym/`, never in a repo).
4. App Privacy: "Data Not Collected". Age rating: 4+. Category: Health & Fitness.
5. Review notes: no sign-in needed ("Use on this device"). The Coach is optional and needs the
diff --git a/frontend/ios/App/App.xcodeproj/project.pbxproj b/frontend/ios/App/App.xcodeproj/project.pbxproj
index b4a69849a..8686f4080 100644
--- a/frontend/ios/App/App.xcodeproj/project.pbxproj
+++ b/frontend/ios/App/App.xcodeproj/project.pbxproj
@@ -378,7 +378,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.4.1;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
- PRODUCT_BUNDLE_IDENTIFIER = ch.duartesantos.opengym;
+ PRODUCT_BUNDLE_IDENTIFIER = ch.opengym.app;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 5.0;
@@ -397,7 +397,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 15.5;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.4.1;
- PRODUCT_BUNDLE_IDENTIFIER = ch.duartesantos.opengym;
+ PRODUCT_BUNDLE_IDENTIFIER = ch.opengym.app;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
SWIFT_VERSION = 5.0;
diff --git a/frontend/ios/ci/add-ui-tests.rb b/frontend/ios/ci/add-ui-tests.rb
index 6aed86d7f..a4dd0eeeb 100644
--- a/frontend/ios/ci/add-ui-tests.rb
+++ b/frontend/ios/ci/add-ui-tests.rb
@@ -14,7 +14,7 @@ tests.build_configurations.each do |c|
s = c.build_settings
s['TEST_TARGET_NAME'] = 'App'
s['PRODUCT_NAME'] = '$(TARGET_NAME)'
- s['PRODUCT_BUNDLE_IDENTIFIER'] = 'ch.duartesantos.opengym.uitests'
+ s['PRODUCT_BUNDLE_IDENTIFIER'] = 'ch.opengym.app.uitests'
s['SWIFT_VERSION'] = '5.0'
s['GENERATE_INFOPLIST_FILE'] = 'YES'
s['TARGETED_DEVICE_FAMILY'] = '1,2'
diff --git a/scripts/ios/finish-ipa.sh b/scripts/ios/finish-ipa.sh
index ea67c0c8f..56627d5ee 100755
--- a/scripts/ios/finish-ipa.sh
+++ b/scripts/ios/finish-ipa.sh
@@ -58,7 +58,7 @@ import plistlib, sys
p = plistlib.load(open(sys.argv[1], 'rb'))
e = dict(p['Entitlements'])
e['get-task-allow'] = False
-assert e['application-identifier'].endswith('.ch.duartesantos.opengym'), e['application-identifier']
+assert e['application-identifier'].endswith('.ch.opengym.app'), e['application-identifier']
plistlib.dump(e, open(sys.argv[2], 'wb'))
print('profile:', p['Name'], '| team', p['TeamIdentifier'][0], '| expires', p['ExpirationDate'])
PY