Skip to content

Commit 22032b6

Browse files
authored
Improve error message around __mh_execute_header (#9306)
1 parent 5baf037 commit 22032b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Crashlytics/Crashlytics/Controllers/FIRCLSReportManager.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,11 @@ - (BOOL)validateAppIdentifiers {
458458
// that Crashlytics needs, "__mh_execute_header" (wich is defined in mach-o/ldsyms.h as
459459
// _MH_EXECUTE_SYM). From https://github.com/firebase/firebase-ios-sdk/issues/5020
460460
if (!self.appIDModel) {
461-
FIRCLSErrorLog(
462-
@"Crashlytics could not find the symbol for the app's main function and cannot "
463-
@"start up. This can happen when Exported Symbols File is set in Build Settings. To "
464-
@"resolve this, add \"__mh_execute_header\" as a newline to your Exported Symbols File.");
461+
FIRCLSErrorLog(@"Crashlytics could not find the symbol for the app's main function and cannot "
462+
@"start up. This can be resolved 2 ways depending on your setup:\n 1. If you "
463+
@"have Exported Symbols File set in your Build Settings, add "
464+
@"\"__mh_execute_header\" as a newline in your Exported Symbols File.\n 2. If "
465+
@"you have -exported_symbols_list in your linker flags, remove it.");
465466
return NO;
466467
}
467468

0 commit comments

Comments
 (0)