Troubleshooting
Troubleshooting
Build Signed Scripts Fail
Symptoms:
./Scripts/build-signed-debug.shor./Scripts/build-signed-release.shexits with an error
Checks:
- Provisioning profile exists in
Resources/ - Entitlements files are present and valid
- Local Xcode signing identity is configured
Solutions:
- Verify signing certificates in Keychain Access
- Check provisioning profile validity
- Review entitlements configuration
- Ensure Xcode project signing settings match
Swift Package Resolution Issues
Symptoms:
- Dependency resolution loops or fails
- Build errors related to missing dependencies
Checks:
- Run package resolution again from Xcode
- Run
swift buildfrom the repository root - Clear derived data/build cache if needed
Solutions:
- Clean build folder:
Product → Clean Build Folderin Xcode - Reset package caches:
File → Packages → Reset Package Caches - Delete
Package.resolvedand re-resolve - Check network connectivity for external dependencies
Wiki Publication Fails
Symptoms:
publish-wiki.shsays it cannot access<repo>.wiki.git
Checks:
- Wiki feature is enabled in GitHub repository settings
- Token exists:
GITHUB_TOKENorGH_TOKEN - SSH mode if needed:
USE_SSH=1
Solutions:
- Enable wiki in GitHub repository settings
- Configure authentication token
- Use SSH if HTTPS fails:
USE_SSH=1 ./Scripts/publish-wiki.sh Fred78290 caker
Runtime Issues
Daemon Won’t Start
Symptoms:
cakedfails to start- Connection errors from
cakectl
Solutions:
- Check if another instance is running
- Verify permissions and entitlements
- Check system logs for detailed errors
- Ensure required macOS frameworks are available
VM Operations Fail
Symptoms:
- VM creation or start operations fail
- Virtualization errors
Solutions:
- Verify macOS Virtualization framework availability
- Check system resources (CPU, memory, disk)
- Review VM configuration parameters
- Ensure proper entitlements for virtualization
Useful Commands
# Build from command line
swift build
# Publish wiki with token
GH_TOKEN="$GITHUB_TOKEN" ./Scripts/publish-wiki.sh Fred78290 caker
# Publish wiki via SSH
USE_SSH=1 ./Scripts/publish-wiki.sh Fred78290 caker
# Check system logs
log show --predicate 'subsystem contains "caker"' --last 1h
# Clean Swift build
swift package clean
Getting Help
If you’re still experiencing issues:
- Check the FAQ for common questions
- Review the Development guide for setup details
- Search or create an issue on GitHub
- Include system information, error messages, and steps to reproduce