{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5669","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5669/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5669/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5669/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5669","id":167442412,"number":5669,"title":"deployment_target attribute is not fully inherited by subspecs","user":{"login":"b-ray","id":1121929,"avatar_url":"https://avatars.githubusercontent.com/u/1121929?v=3","gravatar_id":"","url":"https://api.github.com/users/b-ray","html_url":"https://github.com/b-ray","followers_url":"https://api.github.com/users/b-ray/followers","following_url":"https://api.github.com/users/b-ray/following{/other_user}","gists_url":"https://api.github.com/users/b-ray/gists{/gist_id}","starred_url":"https://api.github.com/users/b-ray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-ray/subscriptions","organizations_url":"https://api.github.com/users/b-ray/orgs","repos_url":"https://api.github.com/users/b-ray/repos","events_url":"https://api.github.com/users/b-ray/events{/privacy}","received_events_url":"https://api.github.com/users/b-ray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-25T19:10:52Z","updated_at":"2016-07-25T20:30:33Z","closed_at":null,"body":"🌈\r\n* [x] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\nRun `pod install`\r\n\r\n## What did you expect to happen?\r\nInstall all pod dependencies correctly.\r\n\r\n## What happened instead?\r\nError message saying `The platform of the target 'CPTestTv' (tvOS 9.0) is not compatible with 'CPTest/swift (0.1.0)', which does not support 'tvos'.`\r\n\r\nThe documentation of the `podspec` states that `a ‘sub-specification’ inherits the value of the attributes of the parents so common values for attributes can be specified in the ancestors`. \r\nHowever, it seems that the `s.tvos.deployment_target` attribute is not getting inherited in the attached sample project. When adding this attribute also in the subspec (e.g. by uncommenting the line in this [sample podspec](https://github.com/b-ray/CPTest/blob/master/CPTest.podspec) ), everything works fine.\r\n\r\nCocoaPods 1.0.1 and 1.1.0.beta.1 both show the same behaviour.\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.1.0.beta.1\r\n        Ruby : ruby 2.2.5p319 (2016-04-26 revision 54774) [x86_64-darwin15]\r\n    RubyGems : 2.4.8\r\n        Host : Mac OS X 10.11.5 (15F34)\r\n       Xcode : 7.3.1 (7D1014)\r\n         Git : git version 2.5.3\r\nRuby lib dir : /Users/stefanpuehringer/.rvm/rubies/ruby-2.2.5/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 122283250354bc98dcb468e4894beec393d2858e\r\n               private - private git repo\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /Users/stefanpuehringer/.rvm/gems/ruby-2.2.5@cocoapods-1-1-0/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate : 1.0.0\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.0.0\r\ncocoapods-try         : 1.1.0\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\nuse_frameworks!\r\n\r\ntarget 'CPTest_Example' do\r\n    platform :ios, '8.0'\r\n    pod 'CPTest', :path => '../', :subspecs => ['swift']\r\n    \r\n    target 'CPTest_Tests' do\r\n        inherit! :search_paths\r\n    end\r\nend\r\n\r\ntarget 'CPTestTv' do\r\n    platform :tvos, '9.0'\r\n    pod 'CPTest', :path => '../', :subspecs => ['swift']\r\nend\r\n```\r\n\r\n## Project that demonstrates the issue\r\nhttps://github.com/b-ray/CPTest\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/235074963","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5669#issuecomment-235074963","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5669","id":235074963,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T20:30:33Z","updated_at":"2016-07-25T20:30:33Z","body":"That's intentional -- since you're overriding the iOS deployment target, it actually prevents inheriting the entire internal platform hash in the subspec."}}
{"actor":{"display_login":"segiddins"}}