{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/2765","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/2765/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/2765/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/2765/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/2765","id":47386686,"number":2765,"title":"Podspec value for spec.libraries should not be added to OTHER_LIBTOOLFLAGS","user":{"login":"kanstantsin","id":4027293,"avatar_url":"https://avatars.githubusercontent.com/u/4027293?v=3","gravatar_id":"","url":"https://api.github.com/users/kanstantsin","html_url":"https://github.com/kanstantsin","followers_url":"https://api.github.com/users/kanstantsin/followers","following_url":"https://api.github.com/users/kanstantsin/following{/other_user}","gists_url":"https://api.github.com/users/kanstantsin/gists{/gist_id}","starred_url":"https://api.github.com/users/kanstantsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanstantsin/subscriptions","organizations_url":"https://api.github.com/users/kanstantsin/orgs","repos_url":"https://api.github.com/users/kanstantsin/repos","events_url":"https://api.github.com/users/kanstantsin/events{/privacy}","received_events_url":"https://api.github.com/users/kanstantsin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/d1:easy","name":"d1:easy","color":"00B952"},{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/s2:confirmed","name":"s2:confirmed","color":"E2A72C"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-10-31T11:58:17Z","updated_at":"2015-06-02T11:46:15Z","closed_at":null,"body":"I've encountered an issue while building static library target which depends on a pod with dynamic library dependencies. That's needed for running tests on the library.\r\nIn this case cocoapods add these dynamic libraries flags to my static library's OTHER_LD_FLAGS which is copied to OTHER_LIBTOOLFLAGS, which produces errors like this:\r\n```error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lsqlite3```\r\nwhile build.\r\n\r\nThis happens because dynamic libraries should only be linked to the app, and should not be linked to static library.\r\nSo, values, specified in spec.libraries should go to OTHER_LD_FLAGS but not to OTHER_LIBTOOLFLAGS.\r\n\r\n[Here](https://github.com/kanstantsin/LibTestCocoapodsFailure/tree/master/Libtool) is the sample project to demonstrate the issue.\r\nReplacing\r\n```pod 'AFNetworking'```\r\nwith\r\n```pod 'AFNetworking', :podspec => '.'```\r\nand running ```pod install``` or ```pod update``` reproduces that."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/107925983","html_url":"https://github.com/CocoaPods/CocoaPods/issues/2765#issuecomment-107925983","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/2765","id":107925983,"user":{"login":"BamX","id":443972,"avatar_url":"https://avatars.githubusercontent.com/u/443972?v=3","gravatar_id":"","url":"https://api.github.com/users/BamX","html_url":"https://github.com/BamX","followers_url":"https://api.github.com/users/BamX/followers","following_url":"https://api.github.com/users/BamX/following{/other_user}","gists_url":"https://api.github.com/users/BamX/gists{/gist_id}","starred_url":"https://api.github.com/users/BamX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BamX/subscriptions","organizations_url":"https://api.github.com/users/BamX/orgs","repos_url":"https://api.github.com/users/BamX/repos","events_url":"https://api.github.com/users/BamX/events{/privacy}","received_events_url":"https://api.github.com/users/BamX/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T11:46:15Z","updated_at":"2015-06-02T11:46:15Z","body":"Will this issue be solved?"}}