Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to Combine Post Install in Podfile in React Native?

$
0
0

I need to add the following post install to the Podfile.

post_install do |pi|  pi.pods_project.targets.each do |t|    t.build_configurations.each do |config|      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'    end  endend

But encountered this error.

[!] Invalid `Podfile` file: [!] Specifying multiple `post_install` hooks is unsupported..

There are two post install in the Podfile. How should I combine them to resolve the error?

post_install do |installer|    flipper_post_install(installer)  endendpost_install do |pi|  pi.pods_project.targets.each do |t|    t.build_configurations.each do |config|      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'    end  endend

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>