Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

2.4 KB
Raw Blame

AGENTS.md (iOS / iPadOS)

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 hears other apps only through a screen broadcast (ios/Broadcast: the extension pumps their sound over loopback into the app's own pipeline; apps with echo cancellation come through silent), and cannot 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; DEVICE=1 builds and signs for a device. Needs full Xcode, not only the Command Line Tools.
  • Bundle id com.indaloop.cicada (dev .dev, extensions .live and .broadcast); 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.
  • Commits use the (ios) scope. scripts/changelog.py has no iOS group yet (M4 in the plan); until then such commits land under Mac.