diff --git a/FirebaseCore/Sources/FIRComponentContainerInternal.h b/FirebaseCore/Sources/FIRComponentContainerInternal.h index 13c33e8c1d4..169e181f9bd 100644 --- a/FirebaseCore/Sources/FIRComponentContainerInternal.h +++ b/FirebaseCore/Sources/FIRComponentContainerInternal.h @@ -29,7 +29,8 @@ NS_ASSUME_NONNULL_BEGIN /// Retrieves an instance that conforms to the specified protocol. This will return `nil` if the /// protocol wasn't registered, or if the instance couldn't be instantiated for the provided app. -- (nullable id)instanceForProtocol:(Protocol *)protocol NS_SWIFT_NAME(instance(for:)); +- (nullable id)instanceForProtocol:(Protocol *)protocol + NS_SWIFT_UNAVAILABLE("Use `instance(for:)` from the FirebaseCoreExtension module instead."); /// Instantiates all the components that have registered as "eager" after initialization. - (void)instantiateEagerComponents;