React Native/React Native_error

[React Native - ios] The following Swift pods cannot yet be integrated as static libraries

bocoder
728x90
반응형

* Firebase 관련 수정 후 pod install --repo-update 시에 발생

 

# 현상

[!] The following Swift pods cannot yet be integrated as static libraries: 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. The Swift pod `FirebaseStorage` depends upon `FirebaseStorageInternal`, `FirebaseAppCheckInterop`, `FirebaseAuthInterop`, `FirebaseCore`, and `FirebaseCoreExtension`, 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.

 

# 해결

ios > Podfile 에서 아래 코드를 추가

 

...
target '...' do
	...
  	use_frameworks! :linkage => :static // 추가
	...
end

* reference : https://github.com/lottie-react-native/lottie-react-native/issues/784#issuecomment-890010383

728x90
반응형