Troubleshooting
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
Solutions to common issues when building native apps with Capgo Cloud Build.
Build Failures
Section titled âBuild FailuresââUpload failedâ or âConnection timeoutâ
Section titled ââUpload failedâ or âConnection timeoutââSymptoms:
- Build fails during project upload
- Timeout errors after 60 seconds
Solutions:
-
Check your internet connection
Terminal window # Test connection to Capgocurl -I https://api.capgo.app -
Reduce project size
- Ensure
node_modules/is not being uploaded (should be auto-excluded) - Check for large files in your project:
Terminal window find . -type f -size +10M - Ensure
-
Check upload URL expiration
- Upload URLs expire after 1 hour
- If you get an expired URL error, re-run the build command
âBuild timeout after 10 minutesâ
Section titled ââBuild timeout after 10 minutesââSymptoms:
- Build exceeds maximum allowed time
- Status shows
timeout
Solutions:
-
Optimize dependencies
- Remove unused npm packages
- Use
npm prune --productionbefore building
-
Check for network issues in build
- Some dependencies may download large files during build
- Consider pre-caching with a lock file
-
Review native dependencies
Terminal window # iOS - check Podfile for heavy dependenciescat ios/App/Podfile# Android - check build.gradlecat android/app/build.gradle -
Contact support
- If your app legitimately needs more time
- We can adjust limits for specific use cases
Authentication Issues
Section titled âAuthentication IssuesââAPI key invalidâ or âUnauthorizedâ
Section titled ââAPI key invalidâ or âUnauthorizedââSymptoms:
- Build fails immediately with authentication error
- 401 or 403 errors
Solutions:
-
Verify API key is correct
Terminal window # Test with a simple commandnpx @capgo/cli@latest app list -
Check API key permissions
- Key must have
writeorallpermissions - Check in Capgo dashboard under API Keys
- Key must have
-
Ensure API key is being read
Terminal window # Check environment variableecho $CAPGO_TOKEN# Or verify local .capgo filecat .capgo -
Re-authenticate
Terminal window npx @capgo/cli@latest login
âApp not foundâ or âNo permission for this appâ
Section titled ââApp not foundâ or âNo permission for this appââSymptoms:
- Authentication works but app-specific error
Solutions:
-
Verify app is registered
Terminal window npx @capgo/cli@latest app list -
Check app ID matches
- Verify
capacitor.config.jsonappId - Ensure command uses correct app ID
- Verify
-
Verify organization access
- Check youâre in the correct organization
- API key must have access to the appâs organization
iOS Build Issues
Section titled âiOS Build IssuesââCode signing failedâ
Section titled ââCode signing failedââSymptoms:
- Build fails during code signing phase
- Xcode errors about certificates or profiles
Solutions:
-
Verify certificate type matches build type
- Development builds need Development certificates
- App Store builds need Distribution certificates
-
Check certificate and profile match
Terminal window # Decode and inspect your certificateecho $BUILD_CERTIFICATE_BASE64 | base64 -d > cert.p12openssl pkcs12 -in cert.p12 -nokeys -passin pass:$P12_PASSWORD | openssl x509 -noout -subject -
Ensure provisioning profile is valid
- Check expiration date
- Verify it includes your App ID
- Confirm it includes the certificate
-
Regenerate credentials
- Delete old certificate/profile
- Create new ones in Apple Developer portal
- Re-encode and update environment variables
âProvisioning profile doesnât include signing certificateâ
Section titled ââProvisioning profile doesnât include signing certificateââSymptoms:
- Xcode canât find certificate in profile
Solutions:
-
Download latest profile from Apple
- Go to Apple Developer â Certificates, IDs & Profiles
- Download provisioning profile
- Ensure it includes your certificate
-
Verify certificate is in profile
Terminal window # Extract profileecho $BUILD_PROVISION_PROFILE_BASE64 | base64 -d > profile.mobileprovision# View profile contentssecurity cms -D -i profile.mobileprovision -
Recreate profile with correct certificate
- In Apple Developer portal, edit profile
- Ensure your distribution certificate is selected
- Download and re-encode
âApp Store Connect authentication failedâ
Section titled ââApp Store Connect authentication failedââSymptoms:
- Upload to TestFlight fails
- API key errors
Solutions:
-
Verify API key credentials
- Check APPLE_KEY_ID (should be 10 characters)
- Check APPLE_ISSUER_ID (should be UUID format)
- Verify APPLE_KEY_CONTENT is correctly base64-encoded
-
Test API key locally
Terminal window # Decode keyecho $APPLE_KEY_CONTENT | base64 -d > AuthKey.p8# Test with fastlane (if installed)fastlane pilot list -
Check API key permissions
- Key needs âDeveloperâ role or higher
- Verify in App Store Connect â Users and Access â Keys
-
Ensure key is not revoked
- Check in App Store Connect
- Generate new key if needed
âPod install failedâ
Section titled ââPod install failedââSymptoms:
- Build fails during CocoaPods installation
- Podfile errors
Solutions:
-
Verify Podfile.lock is committed
Terminal window git status ios/App/Podfile.lock -
Test pod install locally
Terminal window cd ios/Apppod install -
Check for incompatible pods
- Review Podfile for version conflicts
- Ensure all pods support your iOS deployment target
-
Clear pod cache
Terminal window cd ios/Apprm -rf Podsrm Podfile.lockpod install# Then commit new Podfile.lock
Android Build Issues
Section titled âAndroid Build IssuesââKeystore password incorrectâ
Section titled ââKeystore password incorrectââSymptoms:
- Build fails during signing
- Gradle errors about keystore
Solutions:
-
Verify keystore password
Terminal window # Test keystore locallykeytool -list -keystore my-release-key.keystore# Enter password when prompted -
Check environment variables
Terminal window # Ensure no extra spaces or special charactersecho "$KEYSTORE_STORE_PASSWORD" | cat -Aecho "$KEYSTORE_KEY_PASSWORD" | cat -A -
Verify base64 encoding
Terminal window # Decode and testecho $ANDROID_KEYSTORE_FILE | base64 -d > test.keystorekeytool -list -keystore test.keystore
âKey alias not foundâ
Section titled ââKey alias not foundââSymptoms:
- Signing fails with alias error
Solutions:
-
List keystore aliases
Terminal window keytool -list -keystore my-release-key.keystore -
Verify alias matches exactly
- Alias is case-sensitive
- Check for typos in KEYSTORE_KEY_ALIAS
-
Use correct alias from keystore
Terminal window # Update environment variable to matchexport KEYSTORE_KEY_ALIAS="the-exact-alias-name"
âGradle build failedâ
Section titled ââGradle build failedââSymptoms:
- Generic Gradle errors
- Compilation or dependency issues
Solutions:
-
Test build locally first
Terminal window cd android./gradlew clean./gradlew assembleRelease -
Check for missing dependencies
- Review build.gradle files
- Ensure all plugins are listed in dependencies
-
Verify Gradle version compatibility
Terminal window # Check gradle versioncat android/gradle/wrapper/gradle-wrapper.properties -
Clear Gradle cache
Terminal window cd android./gradlew cleanrm -rf .gradle build
âPlay Store upload failedâ
Section titled ââPlay Store upload failedââSymptoms:
- Build succeeds but upload fails
- Service account errors
Solutions:
-
Verify service account JSON
Terminal window # Decode and check formatecho $PLAY_CONFIG_JSON | base64 -d | jq . -
Check service account permissions
- Go to Play Console â Setup â API Access
- Ensure service account has access to your app
- Grant âRelease to testing tracksâ permission
-
Verify app is set up in Play Console
- App must be created in Play Console first
- At least one APK must be uploaded manually initially
-
Check API is enabled
- Google Play Developer API must be enabled
- Check in Google Cloud Console
General Issues
Section titled âGeneral IssuesââJob not foundâ or âBuild status unavailableâ
Section titled ââJob not foundâ or âBuild status unavailableââSymptoms:
- Cannot check build status
- Job ID errors
Solutions:
-
Wait a moment and retry
- Build jobs may take a few seconds to initialize
-
Check job ID is correct
- Verify the job ID from the initial build response
-
Check build hasnât expired
- Build data is available for 24 hours
âProject sync failedâ
Section titled ââProject sync failedââSymptoms:
- Build fails before compilation starts
- Missing files errors
Solutions:
-
Run Capacitor sync locally
Terminal window npx cap sync -
Ensure all native files are committed
Terminal window git status ios/ android/ -
Check for gitignored native files
- Review .gitignore
- Ensure important config files arenât ignored
âBuild succeeded but I donât see outputâ
Section titled ââBuild succeeded but I donât see outputââSymptoms:
- Build shows success but no download link
Solutions:
-
Check build configuration
- Artifact storage may not be configured
- For public beta, contact support about artifact access
-
For iOS TestFlight submission
- Check App Store Connect
- Processing may take 5-30 minutes after upload
-
For Android Play Store
- Check Play Console â Testing â Internal testing
- Processing may take a few minutes
CI/CD Specific Issues
Section titled âCI/CD Specific IssuesâGitHub Actions: âCommand not foundâ
Section titled âGitHub Actions: âCommand not foundââSymptoms:
npx @capgo/clifails in CI
Solutions:
-
Ensure Node.js is installed
- uses: actions/setup-node@v6with:node-version: '24' -
Install CLI explicitly
- run: npm install -g @capgo/cli
GitHub Actions: âSecrets not foundâ
Section titled âGitHub Actions: âSecrets not foundââSymptoms:
- Environment variables empty in build
Solutions:
-
Verify secrets are set
- Go to repo Settings â Secrets and variables â Actions
- Add all required secrets
-
Use correct syntax
env:CAPGO_TOKEN: ${{ secrets.CAPGO_TOKEN }} -
Check secret names match
- Names are case-sensitive
- No typos in secret references
Getting More Help
Section titled âGetting More HelpâEnable Verbose Logging
Section titled âEnable Verbose Loggingâ# Add debug flag (when available)npx @capgo/cli@latest build com.example.app --verboseCollect Build Information
Section titled âCollect Build InformationâWhen contacting support, include:
-
Build command used
Terminal window npx @capgo/cli@latest build com.example.app --platform ios -
Error message (full output)
-
Job ID (from build output)
-
Build logs (copy full terminal output)
-
Environment info
Terminal window node --versionnpm --versionnpx @capgo/cli --version
Contact Support
Section titled âContact Supportâ- Discord: Join our community
- Email: support@capgo.app
- Documentation: Capgo Docs
Known Limitations
Section titled âKnown LimitationsâCurrent limitations during public beta:
- Maximum build time: 10 minutes
- Maximum upload size: ~500MB
- iOS builds require 24-hour Mac leases, build on Mac will enqueue to ensure optimal usage
- Build artifact download may not be available
These limitations may be adjusted based on feedback.
Additional Resources
Section titled âAdditional Resourcesâ- Getting Started - Initial setup guide
- iOS Builds - iOS-specific configuration
- Android Builds - Android-specific configuration
- CLI Reference - Complete command documentation