Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading