(solved) Firebase & RN(React Native) 오류 발생

민갱·2023년 1월 16일

RN

목록 보기
1/2

Case 1.

Error Message

The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules.
To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

Solved (podfile)

use_native_modules!

--Add lines
pod 'GoogleUtilities', :modular_headers => true 
--Add lines

Case 2.

Error Message

[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `FirebaseStorage` depends upon `FirebaseAppCheckInterop`, `FirebaseAuthInterop`, `FirebaseCoreExtension`, and `GTMSessionFetcher`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

Solved (podfile)

target '0000' do
--Add lines
 use_frameworks! :linkage => :static
 pod 'FirebaseCore', :modular_headers => true
--Add lines
profile
가보자고

0개의 댓글