How can I modify OTHER_LDFLAGS via CocoaPods post-install hook?
My project uses CocoaPods and also custom xcconfig files. Until now, this hasn't caused any problems: I've just had to #include the CocoaPods-generated configuration at the end of my custom configuration. However, I've run into a problem where a need to conditionally specify OTHER_LDFLAGS based on the xcconfig , but I can't figure out how to do this. As a start, I've tried simply logging the OTHER_LDFLAGS like this, but the flags aren't actually logged: post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do