{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/Dip/issues/133","repository_url":"https://api.github.com/repos/AliSoftware/Dip","labels_url":"https://api.github.com/repos/AliSoftware/Dip/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/Dip/issues/133/comments","events_url":"https://api.github.com/repos/AliSoftware/Dip/issues/133/events","html_url":"https://github.com/AliSoftware/Dip/issues/133","id":183759740,"number":133,"title":"Single Dip target causing problems","user":{"login":"mark-urbanthings","id":19328015,"avatar_url":"https://avatars.githubusercontent.com/u/19328015?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-urbanthings","html_url":"https://github.com/mark-urbanthings","followers_url":"https://api.github.com/users/mark-urbanthings/followers","following_url":"https://api.github.com/users/mark-urbanthings/following{/other_user}","gists_url":"https://api.github.com/users/mark-urbanthings/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-urbanthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-urbanthings/subscriptions","organizations_url":"https://api.github.com/users/mark-urbanthings/orgs","repos_url":"https://api.github.com/users/mark-urbanthings/repos","events_url":"https://api.github.com/users/mark-urbanthings/events{/privacy}","received_events_url":"https://api.github.com/users/mark-urbanthings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-18T18:00:20Z","updated_at":"2016-10-20T05:36:44Z","closed_at":null,"body":"I've just moved from Xcode 7 / Swift 2.2 to Xcode 8 / Swift 2.3 and Dip is used within app, extension and watch app. In the 2.2 compatible Dip variant the project had separate targets for each platform (iOS, watchOS, tvOS and macOS). The 2.3 variant now has a single Dip target. This seems to be causing issues when you have multiple components for different platforms using Dip within the same project / workspace.\r\n\r\nTo get my project both build and archive I had to take the 2.2 Dip project file and drop in the 2.3 source files. Without this building my project doesn't appear to build for both iOS and watchOS and then fails since the instance of Dip that is found doesn't support the platform being compiled.\r\n\r\nThe combined target approach is new to me so maybe there is something that can be done to get it to work but I've not managed to figure it out.\r\n\r\nMaybe I can setup a simple project that reproduces this tomorrow, but if you have any comments in the meantime or a solution that would be great ! Note that I'm not using CocoaPods or Carthage but just have Dip pulled with git and added to my project / workspace."},"comment":{"url":"https://api.github.com/repos/AliSoftware/Dip/issues/comments/255013457","html_url":"https://github.com/AliSoftware/Dip/issues/133#issuecomment-255013457","issue_url":"https://api.github.com/repos/AliSoftware/Dip/issues/133","id":255013457,"user":{"login":"mark-urbanthings","id":19328015,"avatar_url":"https://avatars.githubusercontent.com/u/19328015?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-urbanthings","html_url":"https://github.com/mark-urbanthings","followers_url":"https://api.github.com/users/mark-urbanthings/followers","following_url":"https://api.github.com/users/mark-urbanthings/following{/other_user}","gists_url":"https://api.github.com/users/mark-urbanthings/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-urbanthings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-urbanthings/subscriptions","organizations_url":"https://api.github.com/users/mark-urbanthings/orgs","repos_url":"https://api.github.com/users/mark-urbanthings/repos","events_url":"https://api.github.com/users/mark-urbanthings/events{/privacy}","received_events_url":"https://api.github.com/users/mark-urbanthings/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T05:36:44Z","updated_at":"2016-10-20T05:36:44Z","body":"The build script step and workspace should work for us. The actual project is built from a workspace already but as you indicate you still need to build both Dip platforms manually first. This doesn't work for 'Archive' build since that always starts from clean state. The script step will fix that though. We are looking to move the whole project to CocoaPods including a private repo for internal components but so far have hit issues with it that are not yet resolved (Xcode 8 related + pod tramping on .git/config of project when publishing to private repo). Carthage was also used early on but it was painfully slow to build whenever we changed internal components (talking factor of 10-20 over building outside Carthage, something to do with how it pipes and processes the build transcript I believe). That made builds time unacceptable when part of code / build / debug cycle. Will either use CocoaPods if the issues get resolved of build our own set of scripts to pull everything together ! Anyway thanks for great piece of software and taking the time to look into this."}}
{"actor":{"display_login":"mark-urbanthings"}}