Installation Issues
Go Build Failures
Symptom:- Missing dependencies
- Incorrect Go version
- Module cache corruption
Node.js Dependency Errors
Symptom:MongoDB Connection Errors
Connection Refused
Symptom:- Verify
.envfile exists:
- Check connection string format:
- Test MongoDB connection:
- Start MongoDB if not running:
Authentication Failed
Symptom:Database Not Found
Symptom:.env:
Disassembly Errors
Unsupported Bytecode Version
Symptom:- Check file bytecode version:
1F 19 03 C1 03 BC 1F C6.
- Add support for the new version:
- Fallback to older parser:
Opcode Not Implemented
Symptom:- Verify bytecode version matches parser:
- Regenerate opcode definitions:
- File a bug report if the issue persists with the correct parser version.
Invalid HBC File
Symptom:- Verify file is HBC:
1F 19 03 C1 03 BC 1F C6
- Extract HBC from IPA:
- Recompile JavaScript:
Analysis Errors
No Matches Found
Symptom:- Empty or outdated database
- App uses a different React Native version
- Code is heavily obfuscated
- Check database population:
- Build database fingerprints:
- Enable fuzzy matching:
- Check React Native version compatibility:
Low Confidence Matches
Symptom:- Adjust confidence threshold:
- Use specific package comparison:
- Review match details:
- Structural matches indicate same control flow
- Content IR1 matches indicate same string literals
- Content IR2 matches indicate same API usage
Memory Issues
Symptom:- Increase available memory:
- Process packages in smaller batches:
pkg/pipeline/batcher.go:
- Enable swap space (Linux):
Pipeline Errors
Package Processing Failures
Symptom:- npm install failures
- Hermes compilation errors
- Missing dependencies
- Check pipeline progress:
- Resume from failure:
pipeline_progress.json.
- Check failed package logs:
- Manually test package:
Hermes Compiler Not Found
Symptom:OS_HERMES environment variable not set or incorrect.
Solution:
- Set OS_HERMES in
.env:
- Verify Hermes binary exists:
- Reinstall React Native environment:
Metro Bundler Errors
Symptom:- Clear Metro cache:
- Reset environment:
GitHub API Errors
Rate Limiting
Symptom:- Set GITHUB_TOKEN:
- Check rate limit status:
- Wait for reset:
X-RateLimit-Reset header.
Authentication Failed
Symptom:- Generate GitHub token:
- Set token with required scope:
- Verify token:
Performance Issues
Slow Disassembly
Symptom: Disassembly takes >5 minutes for a large HBC file. Solution:- Disable unnecessary output:
- Use binary output mode (if available):
- Process in parallel (for multiple files):
Slow Analysis
Symptom: Analysis takes >30 minutes. Cause: Fuzzy matching scans entire database. Solution:- Disable fuzzy matching:
- Increase MongoDB indexes:
- Filter by React Native version:
Getting More Help
If your issue isn’t covered here:- Check GitHub Issues: github.com/your-org/hedis/issues
- Enable debug logging:
- File a bug report with:
- Hedis version (
./hermes-decompiler --version) - Operating system and version
- Full error message and stack trace
- Steps to reproduce
- Sample HBC file (if possible)
- Hedis version (