Browse Questions
- Instruments diagnoses memory issues through the Leaks instrument for automated heap scans and the Allocations instrument with Mark Generation for tracking persistent abandoned memory.
- | Problem | Cause | Fix | |---------|-------|-----| | #if SIT always falls through to #else | Flag added to Other Swift Flags instead of Active Compilation Conditions | Move flag to the correct…
- Identifiable requires a type to have a unique id property.
- Classic OOP assumes objects are reference types with identity and shared mutable state.
| Problem | Cause | Fix |
|---|---|---|
#if SIT always falls through to #else | Flag added to Other Swift Flags instead of Active Compilation Conditions | Move flag to the correct build setting |
| Firebase crashes at launch | Plist file not included in Target Membership | Re-add plist and check Target Membership |
| All environments overwrite each other on device | Bundle identifiers are identical across configurations | Set a unique bundle ID per configuration |
| App name doesn't change per environment | CFBundleDisplayName not added or still hardcoded | Add $(APP_DISPLAY_NAME) to CFBundleDisplayName in Info.plist |
| Firebase Auth rejects requests | Bundle ID in app doesn't match the one registered in Firebase Console | Ensure Firebase Console bundle ID matches exactly per environment |