Skip to content

Commit e30fc33

Browse files
elenadotyncooke3
andauthored
update NS_SWIFT_NAME parameter to remove build warnings (#9729)
* update NS_SWIFT_NAME parameter * [Crashlytics] Don't use `NS_SWIFT_NAME` to avoid collision with 3p macro (#9732) * Revert "update NS_SWIFT_NAME parameter" This reverts commit 6799942. * Avoid using NS_SWIFT_NAME due to 3p macros Co-authored-by: Nick Cooke <[email protected]>
1 parent a12e1a0 commit e30fc33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlytics.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ NS_SWIFT_NAME(Crashlytics)
7272
* @param args Arguments to substitute into format
7373
*/
7474
- (void)logWithFormat:(NSString *)format
75-
arguments:(va_list)args NS_SWIFT_NAME(log(format:arguments:));
75+
arguments:(va_list)args
76+
__attribute__((__swift_name__("log(format:arguments:)"))); // Avoid `NS_SWIFT_NAME` (#9331).
7677
7778
/**
7879
* Sets a custom key and value to be associated with subsequent fatal and non-fatal reports.

Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlyticsReport.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ NS_SWIFT_NAME(CrashlyticsReport)
6969
* @param args Arguments to substitute into format
7070
*/
7171
- (void)logWithFormat:(NSString *)format
72-
arguments:(va_list)args NS_SWIFT_NAME(log(format:arguments:));
72+
arguments:(va_list)args
73+
__attribute__((__swift_name__("log(format:arguments:)"))); // Avoid `NS_SWIFT_NAME` (#9331).
7374

7475
/**
7576
* Sets a custom key and value to be associated with subsequent fatal and non-fatal reports.

0 commit comments

Comments
 (0)