Enable Debug Logging
Enable debug logging to see SDK activity in the Xcode console:What to Look For
Successful Initialization
When the SDK initializes successfully, you’ll see:Successful Event Tracking
When events are accepted by Permutive servers:Accepted: X / Y where X is the number of events accepted and Y is the total sent.
Schema Validation Errors
If event properties don’t match your schema:Verification Checklist
Verification Code Example
Add this verification helper during development:PageTracker Verification
Verify PageTracker is working correctly:Common Verification Issues
No log output
No log output
Problem: Console is silent, no Permutive logs appear.Solutions:
- Confirm
logModes = LogMode.allis set before callingstart() - Check Xcode console filter isn’t hiding messages
- Verify SDK is actually being initialized (add a breakpoint)
Events rejected with schema error
Events rejected with schema error
Problem: Events sent but rejected by server.Solutions:
- Check event name matches schema (alphanumeric and underscores only)
- Verify property names and types match your Permutive dashboard schema
- Remove any extra properties not in the schema
Events not appearing in dashboard
Events not appearing in dashboard
Problem: Console shows
Accepted but events not in dashboard.Solutions:- Wait up to 5 minutes for events to process
- Verify you’re looking at the correct workspace
- Check the date range filter in the dashboard
- Confirm credentials match the dashboard environment
Empty cohorts
Empty cohorts
Problem:
cohorts returns an empty set.Solutions:- Cohorts are evaluated server-side and may take time to populate
- Ensure you’ve tracked sufficient events to qualify for cohorts
- Check with your Customer Success Manager that cohorts are configured