Ios 如何在React Native中结合Podfile中的后期安装?
我需要在pod文件中添加以下后期安装Ios 如何在React Native中结合Podfile中的后期安装?,ios,reactjs,react-native,cocoapods,react-native-ios,Ios,Reactjs,React Native,Cocoapods,React Native Ios,我需要在pod文件中添加以下后期安装 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 end end 但是遇到了这个错误 [!] Invalid `Podfile` file: [!] S
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
end
end
但是遇到了这个错误
[!] Invalid `Podfile` file: [!] Specifying multiple `post_install` hooks is unsupported..
pod文件中有两个后期安装。我应该如何组合它们来解决错误
post_install do |installer|
flipper_post_install(installer)
end
end
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
end
end
下面的方法似乎有效
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end