CocoaPods / CocoaPods

The Cocoa Dependency Manager.

Home Page:https://cocoapods.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OTHER_LDFLAGS of pods are inherited by app target

tamastimar opened this issue · comments

Report

What did you do?

Run pod install

What did you expect to happen?

OTHER_LDFLAGS of app target are not filled with values coming from pods.

What happened instead?

OTHER_LDFLAGS of pod appear in app target.

OTHER_LDFLAGS = $(inherited) -l"sqlite3" -l"sqlite3" -framework "UIKit"
(sqlite, sqlite3, UIKit are coming from the dependency.)

In my private project there is a custom library linked to the dependency pod from a custom path. So the app target can't be linked since it can't find the library.

It worked as expected in CP 1.5.3.

CocoaPods Environment

Stack

   CocoaPods : 1.6.1
        Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
    RubyGems : 2.5.2.3
        Host : Mac OS X 10.14.2 (18C54)
       Xcode : 10.1 (10B61)
         Git : git version 2.18.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 3aff96531d015fefa5df4448a12f161b8ded89e5

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-art         : 1.0.2
cocoapods-deintegrate : 1.0.3
cocoapods-links       : 0.3.0
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '11.0'
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'

def shared_pods
  pod 'dep', :path => '.'
end

target 'ldflags-test' do
  shared_pods 
end

Project that demonstrates the issue

https://github.com/tamastimar/CocoaPods--8629-Sample

Maybe releated to #8608.

This works for me on 1.6.1.
Screen Shot 2019-05-03 at 11 31 42 AM

commented

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍