mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-17 16:52:44 +08:00
- Import Developer ID Application certificate into temporary keychain - Inject APPLE_SIGNING_IDENTITY/APPLE_ID/APPLE_PASSWORD/APPLE_TEAM_ID into Tauri build step for automatic signing and notarization - Staple notarization tickets to both .app and .dmg (hard-fail) - Add verification step: codesign --verify + spctl -a + stapler validate for both .app and .dmg, gating the release on success - Collect .dmg alongside .tar.gz and .zip in release assets - Clean up temporary keychain with original default restored - Update release notes to recommend .dmg and note Apple notarization - Remove all xattr workarounds and "unidentified developer" warnings from README, README_ZH, installation guides, and FAQ (EN/ZH/JA)
4.9 KiB
4.9 KiB
5.2 Frequently Asked Questions
Installation Issues
macOS Installation
CC Switch for macOS is code-signed and notarized by Apple. You can download and install it directly without any additional steps. If you encounter issues, try downloading the latest version from the Releases page.
Windows: App Doesn't Launch After Installation
Possible causes:
- Missing WebView2 runtime
- Antivirus software blocking
Solutions:
- Install Microsoft Edge WebView2
- Add CC Switch to your antivirus software's whitelist
Linux: Startup Error
Problem: AppImage won't start
Solution:
# Add execute permission
chmod +x CC-Switch-*.AppImage
# If it still fails, try
./CC-Switch-*.AppImage --no-sandbox
Provider Issues
Provider Switch Doesn't Take Effect
Cause: The CLI tool needs to reload its configuration
Solutions:
- Claude Code: Close and reopen the terminal, or restart the IDE
- Codex: Close and reopen the terminal
- Gemini: Tray switching takes effect immediately, no restart needed
API Key Invalid
Troubleshooting steps:
- Confirm the API Key is copied correctly (no extra spaces)
- Confirm the API Key hasn't expired
- Confirm the endpoint URL is correct
- Use the speed test to verify connectivity
How to Restore Official Login
Steps:
- Select the "Official Login" preset (Claude/Codex) or "Google Official" preset (Gemini)
- Click "Enable"
- Restart the corresponding CLI tool
- Follow the CLI tool's login flow
Proxy Issues
Proxy Service Fails to Start
Possible cause: Port is occupied
Solution:
- Check port usage:
# macOS/Linux lsof -i :49152 # Windows netstat -ano | findstr :49152 - Close the program occupying the port
- Or try modifying the configuration to restore the default port:
- Open "Settings > Proxy Service"
- Click the "Reset to Default" button
Request Timeout in Proxy Mode
Possible causes:
- Network issues
- Provider server issues
- Incorrect proxy configuration
Solutions:
- Check network connection
- Try accessing the provider API directly (disable proxy)
- Check if provider configuration is correct
Configuration Not Restored After Disabling Proxy
Possible cause: Proxy exited abnormally
Solution:
- Edit the current provider
- Check if the endpoint URL is correct
- Save to update the configuration
Failover Issues
Failover Not Triggering
Checklist:
- Is the proxy service running
- Is app takeover enabled
- Is auto failover enabled
- Are there backup providers in the queue
Failover Triggering Too Frequently
Possible causes:
- Unstable primary provider
- Circuit breaker threshold set too low
Solutions:
- Check primary provider status
- Increase the failure threshold (e.g., from 3 to 5)
- Consider changing the primary provider
All Providers Are Circuit-Broken
Solutions:
- Wait for the recovery wait time to expire (default 60 seconds)
- Or restart the proxy service to reset states
Data Issues
Configuration Lost
Possible causes:
- Configuration directory was deleted
- Database corruption
Solutions:
- Check if the
~/.cc-switch/directory exists - Restore from backup:
~/.cc-switch/backups/ - Or import from a previously exported configuration file
Import Configuration Failed
Possible causes:
- Incorrect file format
- Version incompatibility
Solutions:
- Confirm the file was exported by CC Switch
- Check if the file content is complete
- Try opening with a text editor to check format
Usage Statistics Data Is Empty
Checklist:
- Is the proxy service running
- Is app takeover enabled
- Is log recording enabled
- Have requests been going through the proxy
Other Issues
Tray Icon Not Showing
macOS:
- Check menu bar icon settings in System Settings
Windows:
- Check taskbar settings to ensure the CC Switch icon is not hidden
Linux:
- System tray support may need to be installed (e.g.,
libappindicator)
UI Display Issues
Solutions:
- Try switching themes (light/dark)
- Restart the app
- Delete
~/.cc-switch/settings.jsonto reset settings
Update Failed
Solutions:
- Check network connection
- Manually download and install the latest version
- If using Homebrew:
brew upgrade --cask cc-switch
Getting Help
Submit an Issue
If none of the above solutions work:
- Visit GitHub Issues
- Search for similar issues
- If none found, create a new Issue
- Provide the following information:
- Operating system and version
- CC Switch version
- Problem description and reproduction steps
- Error messages (if any)
Log Files
Attach log files when submitting an Issue:
- macOS/Linux:
~/.cc-switch/logs/ - Windows:
%APPDATA%\cc-switch\logs\