firebase 를 추가하여 사용하는 경우 Podfile에
use_frameworks! :linkage => :static
RNFirebaseAsStaticFramework = true
을 추가하여 사용하여야 한다.
이 구문이 use_react_native!() 전에 선언되어야 위의 에러가 수정된다.
자세한 내용은 다음과 같다.
Hi there! The solution is to move the use_frameworks! :linkage => :static before the use_react_native!() function call.
What's happening is that use_react_native!() installs the dependencies and understands whether you are using the frameworks setup or not.
When you are using frameworks, we need to fix some search paths in order to make them work as expected. And to do so, we need to do some shenanigans with files. Practically, when use_frameworks! is enabled, we need to exclude some files from the builds (are just forwarding files).
Putting the use_framework! instruction after the invocation of use_react_native! prevents us from automatically detect that setup, that's why moving it before should fix the issue.
Let me know if it fixes!
from @cipolleschi of https://github.com/facebook/react-native/issues/36120
간단하게 말하자면
위 구문을 use_react_native!() 전에 사용되야 프레임워크를 사용해야할지 말아야할지 결정할수 있다고 한다.