知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
build(ios): the iOS app's bundle id is com.indaloop.cicada (dev .dev, extension .live); the Mac keeps com.wquguru.cicada
wquguru659b8e7b89b6
diff --git a/ios/AGENTS.md b/ios/AGENTS.mdindex bc1010e..22bca9e 100644--- a/ios/AGENTS.md+++ b/ios/AGENTS.md@@ -3,7 +3,8 @@The iPhone and iPad app: listens to the room with the microphone, interprets face to face through the speaker, imports recordings and keeps meeting records. It cannot hear other apps or speak into them. The root `AGENTS.md` applies too (Ling key, `LingClient`, no third-party dependencies, the Mac app as the reference, one `VERSION`). The plan is `docs/ios-plan.md`; the design canvas on claude.ai (知了 iOS 设计) is the source of truth for the UI.- iOS / iPadOS 26 and later, SwiftUI. Engines are the Mac's own files, listed in `ios/shared-sources.txt` and compiled into the iOS app; `ios/Sources` has the iOS side. Change a shared file and keep both working: `ios/scripts/typecheck.sh`, then `scripts/test.sh` and a Mac dev build.-- Built by `ios/scripts/build.sh` with `xcrun swiftc`, no `.xcodeproj` until device signing proves it needs one. Needs full Xcode, not only the Command Line Tools.+- Built by `ios/scripts/build.sh` with `xcrun swiftc`, no `.xcodeproj`; `DEVICE=1` builds and signs for a device. Needs full Xcode, not only the Command Line Tools.+- Bundle id `com.indaloop.cicada` (dev `.dev`, extension `.live`); the Mac keeps `com.wquguru.cicada`. Signing (team Indaloop LLC) goes through the App Store Connect API: `ios/tools/provision.py`, then `ios/scripts/device.sh` or `ios/scripts/testflight.sh`. Keys and profiles live in `~/.cicada-signing`, never in the repo.- The key: the `ling-api-key` file in the app container readable only after the first unlock (listening goes on while locked), excluded from backups; never UserDefaults, logs or exports.- UI text: the same Chinese keys and `Resources/*.lproj/Localizable.strings` as the Mac; reuse a Mac key where the feature is the same. `python3 scripts/strings.py` checks the iOS build too when Xcode is there.- Verify in the iPhone and iPad simulators: `ios/scripts/build.sh`, `ios/scripts/run.sh "<device>" [--seed <Mac meeting folders>]`, drive it with `ios/scripts/ctl.sh` (commands in `Debug.swift`), read `Library/Caches/livesubs-dev-debug.log` in the app container, `xcrun simctl io <device> screenshot` against the design; pass `-AppleLanguages "(zh-Hans)"` to `simctl launch` for Chinese. A real microphone, the lock screen, the Dynamic Island and TestFlight need a person.diff --git a/ios/LiveActivity/CicadaLive.swift b/ios/LiveActivity/CicadaLive.swiftindex 8685f8b..7a1df42 100644--- a/ios/LiveActivity/CicadaLive.swift+++ b/ios/LiveActivity/CicadaLive.swift@@ -18,7 +18,7 @@ struct CicadaLiveBundle: WidgetBundle {/// 开始听 in Control Center and on the lock screen.struct StartListeningControl: ControlWidget {var body: some ControlWidgetConfiguration {- StaticControlConfiguration(kind: "com.wquguru.cicada.start") {+ StaticControlConfiguration(kind: "com.indaloop.cicada.start") {ControlWidgetButton(action: StartListeningIntent()) {Label("开始听", systemImage: "mic.fill")}diff --git a/ios/LiveActivity/Info.plist b/ios/LiveActivity/Info.plistindex df450e6..4eaf73c 100644--- a/ios/LiveActivity/Info.plist+++ b/ios/LiveActivity/Info.plist@@ -9,7 +9,7 @@<key>CFBundleExecutable</key><string>CicadaLive</string><key>CFBundleIdentifier</key>- <string>com.wquguru.cicada.live</string>+ <string>com.indaloop.cicada.live</string><key>CFBundleInfoDictionaryVersion</key><string>6.0</string><key>CFBundleName</key>diff --git a/ios/Resources/Info.plist b/ios/Resources/Info.plistindex eec9e02..47539dc 100644--- a/ios/Resources/Info.plist+++ b/ios/Resources/Info.plist@@ -9,7 +9,7 @@<key>CFBundleExecutable</key><string>Cicada</string><key>CFBundleIdentifier</key>- <string>com.wquguru.cicada</string>+ <string>com.indaloop.cicada</string><key>CFBundleInfoDictionaryVersion</key><string>6.0</string><key>CFBundleLocalizations</key>@@ -55,7 +55,7 @@</array><key>BGTaskSchedulerPermittedIdentifiers</key><array>- <string>com.wquguru.cicada.import</string>+ <string>com.indaloop.cicada.import</string></array><key>CFBundleDocumentTypes</key><array>diff --git a/ios/Sources/Cicada/Debug.swift b/ios/Sources/Cicada/Debug.swiftindex e732230..e3717f5 100644--- a/ios/Sources/Cicada/Debug.swift+++ b/ios/Sources/Cicada/Debug.swift@@ -6,7 +6,7 @@ import UIKit/// `simctl openurl` with cicada-dev://debug?cmd=… works too but asks for confirmation every time./// Same names as on the Mac where the command means the same thing.enum DebugChannel {- static let name = "com.wquguru.cicada.debug" as CFString+ static let name = "com.indaloop.cicada.debug" as CFStringstatic var file: URL {FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0].appendingPathComponent("debug-command")}diff --git a/ios/Sources/Cicada/FaceToFace.swift b/ios/Sources/Cicada/FaceToFace.swiftindex 2d0a3d7..10ddeeb 100644--- a/ios/Sources/Cicada/FaceToFace.swift+++ b/ios/Sources/Cicada/FaceToFace.swift@@ -277,7 +277,7 @@ final class FaceToFace: ObservableObject {/// The microphone for one press: `AVAudioEngine`'s input → the recognizer's format.final class FaceMic: @unchecked Sendable {private var engine = AVAudioEngine()- private let queue = DispatchQueue(label: "com.wquguru.cicada.face")+ private let queue = DispatchQueue(label: "com.indaloop.cicada.face")private let convert = PCMConverter()private var stream: RecognitionStream?diff --git a/ios/Sources/Cicada/HostRecognizer.swift b/ios/Sources/Cicada/HostRecognizer.swiftindex f41537f..e8f0385 100644--- a/ios/Sources/Cicada/HostRecognizer.swift+++ b/ios/Sources/Cicada/HostRecognizer.swift@@ -25,7 +25,7 @@ final class HostStream: RecognitionStream, @unchecked Sendable {private let out: AsyncThrowingStream<Recognition.Piece, Error>.Continuationprivate let dir: URLprivate let audio: FileHandle- private let queue = DispatchQueue(label: "com.wquguru.cicada.host-recognizer")+ private let queue = DispatchQueue(label: "com.indaloop.cicada.host-recognizer")private var reader: Task<Void, Never>?private var done = falsediff --git a/ios/Sources/Cicada/Importing.swift b/ios/Sources/Cicada/Importing.swiftindex 9328cc4..d4df59e 100644--- a/ios/Sources/Cicada/Importing.swift+++ b/ios/Sources/Cicada/Importing.swift@@ -64,7 +64,7 @@ struct PickedMovie: Transferable {/// The system's progress for imports running behind other apps (iOS 26).@MainActorenum ImportBackground {- static var identifier: String { (Bundle.main.bundleIdentifier ?? "com.wquguru.cicada") + ".import" }+ static var identifier: String { (Bundle.main.bundleIdentifier ?? "com.indaloop.cicada") + ".import" }private static var task: BGContinuedProcessingTask?private static var ticker: Timer?static weak var importer: FileImporter?diff --git a/ios/Sources/Cicada/RoomListen.swift b/ios/Sources/Cicada/RoomListen.swiftindex 837a139..1eb7f7b 100644--- a/ios/Sources/Cicada/RoomListen.swift+++ b/ios/Sources/Cicada/RoomListen.swift@@ -387,7 +387,7 @@ final class RoomAudio: @unchecked Sendable {/// A new engine for each meeting: one restarted after `stop` hears only silence in the simulator.private var engine = AVAudioEngine()- private let queue = DispatchQueue(label: "com.wquguru.cicada.room", qos: .userInitiated)+ private let queue = DispatchQueue(label: "com.indaloop.cicada.room", qos: .userInitiated)private let toRecognizer = PCMConverter()private let toVoice = PCMConverter()private let voiceFormat = AVAudioFormat(commonFormat: .pcmFormatFloat32, sampleRate: 16_000, channels: 1, interleaved: false)!diff --git a/ios/scripts/build.sh b/ios/scripts/build.shindex 1853963..da24973 100755--- a/ios/scripts/build.sh+++ b/ios/scripts/build.sh@@ -1,7 +1,7 @@#!/usr/bin/env bash# Builds Cicada.app: the shared Mac sources (ios/shared-sources.txt) and ios/Sources in one module,# bundled by hand like the Mac's scripts/build.sh (no .xcodeproj).-# Without RELEASE=1 it is a dev build: "Cicada Dev", bundle id com.wquguru.cicada.dev, cicada-dev:// commands.+# Without RELEASE=1 it is a dev build: "Cicada Dev", bundle id com.indaloop.cicada.dev, cicada-dev:// commands.# ios/scripts/build.sh the simulator: ios/build/Cicada.app, signed ad hoc# DEVICE=1 ios/scripts/build.sh an iPhone or iPad: ios/build/device/Cicada.app, signed with# SIGN_IDENTITY and the profiles PROFILE (app) and PROFILE_LIVE@@ -123,14 +123,14 @@ for p in "$PLIST" "$APPEX/Info.plist"; dodoneif [[ "${RELEASE:-}" != 1 ]]; thenSTAMP="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo local) @ $(git rev-parse --short HEAD 2>/dev/null || echo none)"- /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.wquguru.cicada.dev" \+ /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.indaloop.cicada.dev" \-c "Set :CFBundleName Cicada Dev" -c "Set :CFBundleDisplayName Cicada Dev" \-c "Add :LiveSubsDev string $STAMP" \- -c "Set :BGTaskSchedulerPermittedIdentifiers:0 com.wquguru.cicada.dev.import" \+ -c "Set :BGTaskSchedulerPermittedIdentifiers:0 com.indaloop.cicada.dev.import" \-c "Add :CFBundleURLTypes array" -c "Add :CFBundleURLTypes:0 dict" \-c "Add :CFBundleURLTypes:0:CFBundleURLSchemes array" -c "Add :CFBundleURLTypes:0:CFBundleURLSchemes:0 string cicada-dev" \"$PLIST"- /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.wquguru.cicada.dev.live" "$APPEX/Info.plist"+ /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.indaloop.cicada.dev.live" "$APPEX/Info.plist"fiif [[ "${DEVICE:-}" != 1 ]]; thencodesign --force --sign - "$APPEX" 2>/dev/nulldiff --git a/ios/scripts/ctl.sh b/ios/scripts/ctl.shindex 46c14d0..0956516 100755--- a/ios/scripts/ctl.sh+++ b/ios/scripts/ctl.sh@@ -4,6 +4,6 @@set -euo pipefailDEVICE=bootedif [[ ${1:-} == -d ]]; then DEVICE=$2; shift 2; fi-DATA=$(xcrun simctl get_app_container "$DEVICE" com.wquguru.cicada.dev data)+DATA=$(xcrun simctl get_app_container "$DEVICE" com.indaloop.cicada.dev data)printf '%s\n' "$@" >> "$DATA/Library/Caches/debug-command"-xcrun simctl spawn "$DEVICE" notifyutil -p com.wquguru.cicada.debug+xcrun simctl spawn "$DEVICE" notifyutil -p com.indaloop.cicada.debugdiff --git a/ios/scripts/device.sh b/ios/scripts/device.shindex 63d9f40..eaf969e 100755--- a/ios/scripts/device.sh+++ b/ios/scripts/device.sh@@ -13,4 +13,4 @@ DEVICE=1 ios/scripts/build.shTARGET=${1:-$(xcrun devicectl list devices | grep -E 'available \(paired\)|connected' | grep -v simulated | grep -oE '[0-9A-F]{8}-[0-9A-F]{16}' | head -1)}[[ -n $TARGET ]] || { echo "no iPhone or iPad connected"; exit 1; }xcrun devicectl device install app --device "$TARGET" ios/build/device/Cicada.app-xcrun devicectl device process launch --device "$TARGET" com.wquguru.cicada.dev+xcrun devicectl device process launch --device "$TARGET" com.indaloop.cicada.devdiff --git a/ios/scripts/run.sh b/ios/scripts/run.shindex ebfb9b0..f4a37e4 100755--- a/ios/scripts/run.sh+++ b/ios/scripts/run.sh@@ -6,7 +6,7 @@set -euo pipefailcd "$(dirname "$0")/../.."DEVICE=${1:-"iPhone 18 Pro"}; shift || true-ID=com.wquguru.cicada.dev+ID=com.indaloop.cicada.devxcrun simctl boot "$DEVICE" 2>/dev/null || truexcrun simctl bootstatus "$DEVICE" -b >/dev/nulldiff --git a/ios/tools/asc.py b/ios/tools/asc.pyindex 7653995..de2a88a 100755--- a/ios/tools/asc.py+++ b/ios/tools/asc.py@@ -5,10 +5,10 @@ packages: the JWT is signed with openssl (ES256), requests go through urllib.Credentials come from the environment (never from the repo):ASC_KEY_ID, ASC_ISSUER_ID, ASC_KEY_PATH (the .p8, e.g. ~/.cicada-signing/AuthKey_<id>.p8)- ios/tools/asc.py get <path> e.g. /v1/bundleIds?filter[identifier]=com.wquguru.cicada+ ios/tools/asc.py get <path> e.g. /v1/bundleIds?filter[identifier]=com.indaloop.cicadaios/tools/asc.py post <path> <json>ios/tools/asc.py delete <path>-Prints the JSON reply. ios/scripts/provision.sh builds on it.+Prints the JSON reply. ios/tools/provision.py builds on it."""import base64, json, os, subprocess, sys, tempfile, time, urllib.error, urllib.requestdiff --git a/ios/tools/provision.py b/ios/tools/provision.pyindex bf127eb..f3b3780 100755--- a/ios/tools/provision.py+++ b/ios/tools/provision.py@@ -18,7 +18,7 @@ from asc import callHOME = os.path.expanduser("~/.cicada-signing")KIND = sys.argv[1] if len(sys.argv) > 1 else "development"DEV = KIND == "development"-APP_ID = "com.wquguru.cicada.dev" if DEV else "com.wquguru.cicada"+APP_ID = "com.indaloop.cicada.dev" if DEV else "com.indaloop.cicada"IDS = {APP_ID: "Cicada Dev" if DEV else "Cicada", APP_ID + ".live": "Cicada Dev Live" if DEV else "Cicada Live"}CERT_TYPE = "DEVELOPMENT" if DEV else "DISTRIBUTION"PROFILE_TYPE = "IOS_APP_DEVELOPMENT" if DEV else "IOS_APP_STORE"