Integration Issues
Compilation failure after Swift Package Manager integration
Compilation failure after Swift Package Manager integration
Issue: Compilation errors occur after integrating with SPM.Solutions:
- Check if Xcode version meets requirements (Xcode 16.0+)
- Clean project cache:
Product→Clean Build Folder - Delete
DerivedDatafolder - Re-fetch dependency packages
- Use the latest stable version of Xcode
- Update dependency packages regularly
- Use the same Xcode version in CI/CD
App crashes after CocoaPods integration
App crashes after CocoaPods integration
Issue: Application crashes on startup after integrating with CocoaPods.Solutions:
- Check iOS version setting in
Podfile - Ensure
use_frameworks!is added - Run
pod deintegratethenpod installagain - Check architecture settings in
Build Settings
Architecture mismatch error
Architecture mismatch error
Issue: “No matching architecture” error occurs during compilation.Solutions:
- Check
Build Settings→Architecturessettings - Ensure
Valid Architecturesincludesarm64 - Check
Excluded Architecturessettings - Clean project and recompile
Performance Issues
Low rendering frame rate
Low rendering frame rate
Issue: Avatar rendering frame rate is lower than expected, affecting user experience.Possible Causes:
- Insufficient device performance
- Model complexity too high
- Insufficient memory
- Background process interference
- Use models suitable for the device
- Lower rendering resolution
- Close unnecessary background processes
- Use performance monitoring tools
High memory usage
High memory usage
Issue: Application memory usage is too high, potentially causing crashes.Solutions:
- Release unnecessary renderer instances promptly
- Use
deinitto clean up resources - Monitor memory usage
- Implement memory warning handling
Excessive startup time
Excessive startup time
Issue: Application startup time is too long, affecting user experience.Optimization Suggestions:
- Delay SDK initialization
- Use background threads for initialization
- Preload commonly used resources
- Optimize model file size
Network Issues
Unstable network connection
Unstable network connection
Issue: Unstable network connection causes functionality issues.Solutions:
- Implement network status monitoring
- Add retry mechanism
- Provide offline mode
- Cache important resources
HTTPS certificate issues
HTTPS certificate issues
Issue: HTTPS certificate verification fails.Solutions:
- Check if server certificate is valid
- Confirm network security configuration in
Info.plist - Use
NSAllowsArbitraryLoadsin development environment - Use valid SSL certificate in production environment
Debugging Tips
How to troubleshoot crash issues
How to troubleshoot crash issues
Troubleshooting Steps:
- Enable crash log collection
- Use Xcode debugger
- Check memory usage
- Verify thread safety
Version Compatibility
iOS version compatibility
iOS version compatibility
Supported iOS Versions: 16.0+Notes:
- Some new features may only be available in higher versions
- Testing on multiple iOS versions is recommended
Xcode version compatibility
Xcode version compatibility
Minimum Requirement: Xcode 16.0+Recommended Version: Xcode 17.0+Notes:
- Using newer versions of Xcode can provide better performance
- Some compilation optimizations are only available in newer versions

