Troubleshooting
Solutions to common issues with the SpendOwl SDK.Installation Issues
Package Not Found
Error:The package at 'https://github.com/spendowl/spendowl-ios' could not be found
Solutions:
- Check your internet connection
- Verify the URL is correct:
https://github.com/spendowl/spendowl-ios - Try closing and reopening Xcode
- Clear the derived data: Xcode → Settings → Locations → Derived Data → Delete
Version Conflicts
Error:Package resolution failed. Dependencies could not be resolved.
Solutions:
- Update other packages to their latest versions
- Use a specific version instead of “Up to Next Major”:
Configuration Issues
SDK Not Configured
Error:SpendOwl SDK is not configured. Call SpendOwl.configure(apiKey:) first.
Solution: Call configure() before using other SDK methods:
Invalid API Key
Error:Invalid API key. Check your SpendOwl dashboard for the correct key.
Solutions:
- Verify your API key in the dashboard
- Ensure you’re using the correct environment key (test vs. live)
- Check for extra spaces or characters in the key
Configure Called Multiple Times
Warning:SpendOwl already configured, ignoring
This is informational, not an error. SpendOwl ignores subsequent configure() calls. If you need to reconfigure, restart the app.
Attribution Issues
Attribution Unavailable
Error:Attribution is not available on this device or OS version.
Causes:
- iOS version below 14.3
- Running in the simulator (limited attribution support)
- AdServices framework not available
- Test on a real device with iOS 14.3+
- Handle gracefully in code:
Attribution Denied
Error:Attribution access was denied.
Causes:
- User has “Limit Ad Tracking” enabled
- MDM profile restricts tracking
- Privacy settings block attribution
Attribution Returns Unknown
Status:AttributionStatus.unknown
Possible reasons:
- First launch: Attribution may take a few seconds to process
- Network issues: Token couldn’t be sent to servers
- Processing delay: Server is still resolving the token
Attribution Always Organic
Issue: All installs show as “organic” even when clicking ads Causes:- Test device isn’t enrolled in Apple Search Ads testing
- Using a development certificate (attribution may not work)
- Ad account isn’t linked to your app
- Use a TestFlight or App Store build for accurate testing
- Verify your Apple Search Ads account is properly configured
- Check the Apple Search Ads testing guide
Network Issues
Request Timeout
Error:Network error: The request timed out.
Solutions:
- Check internet connectivity
- Increase timeout:
- The SDK retries automatically; persistent failures indicate connectivity issues
Certificate Errors
Error:Network error: The certificate for this server is invalid.
Causes:
- Corporate proxy intercepting HTTPS
- Network security software
- Clock significantly wrong on device
- Disable SSL interception for
spendowl.io - Check device date/time settings
Purchase Tracking Issues
Purchases Not Appearing
Issue: Purchases don’t appear in the dashboard Causes:- SDK not configured before purchase occurred
- Using StoreKit 1 instead of StoreKit 2
- Sandbox purchases with live API key
- Ensure
configure()is called on app launch - SpendOwl only tracks StoreKit 2 transactions
- Use test API key for sandbox testing
Sandbox vs Production
Issue: Test purchases mixed with production data Solution: Use different API keys:Debugging Tips
Enable Verbose Logging
Check Console.app
- Open
/Applications/Utilities/Console.app - Select your device
- Filter by “SpendOwl”
Verify Integration
Still Having Issues?
When reporting issues, include:- iOS version
- SDK version (
SpendOwl.sdkVersion) - Device model (real device vs simulator)
- Debug logs (with sensitive data redacted)
- Steps to reproduce