diff --git a/Parse/Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m b/Parse/Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m index 07f6adba3..235853322 100644 --- a/Parse/Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m +++ b/Parse/Parse/Internal/Object/Subclassing/PFObjectSubclassingController.m @@ -381,6 +381,14 @@ - (void)_registerSubclassesInBundle:(NSBundle *)bundle { unsigned bundleClassCount = 0; for (int i = 0; i < sizeof(potentialPaths) / sizeof(*potentialPaths); i++) { + #ifdef DEBUG + const char *debugSuffix = ".debug.dylib"; + if (strlen(potentialPaths[i]) + strlen(debugSuffix) < sizeof(potentialPaths[i])) { + strcat(potentialPaths[i], debugSuffix); + } else { + printf("Error: Not enough space to append the suffix.\n"); + } + #endif classNames = objc_copyClassNamesForImage(potentialPaths[i], &bundleClassCount); if (bundleClassCount) { break;