Closed Ralle closed 1 year ago
This is what I do:
# Set the deployment target of all installed Pods to the same as this app.
# Avoids build errors, see https://stackoverflow.com/questions/75574268.
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
end
Another solution would be to inline the GCDWebServer source code into this plugin, rather than depending on it as a Pod.
Just to clarify - that code goes in your app's Podfile.
Oh thank you. I will try that. I did see this code snippet in other places, I just didn't know what to do with it :).
Instead of updating all pods, you can set the deployment target version just for GCDWebServer in Xcode like so:
Hey, I'm a web dev with very scarce XCode experience. I tried installing your package but it fails to build now with this error in XCode:
Is there something I can do?