{"action":"closed","issue":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/1448","repository_url":"https://api.github.com/repos/Carthage/Carthage","labels_url":"https://api.github.com/repos/Carthage/Carthage/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/Carthage/Carthage/issues/1448/comments","events_url":"https://api.github.com/repos/Carthage/Carthage/issues/1448/events","html_url":"https://github.com/Carthage/Carthage/issues/1448","id":172108853,"number":1448,"title":"Using copy-frameworks on multiple targets","user":{"login":"kylejm","id":3501212,"avatar_url":"https://avatars.githubusercontent.com/u/3501212?v=3","gravatar_id":"","url":"https://api.github.com/users/kylejm","html_url":"https://github.com/kylejm","followers_url":"https://api.github.com/users/kylejm/followers","following_url":"https://api.github.com/users/kylejm/following{/other_user}","gists_url":"https://api.github.com/users/kylejm/gists{/gist_id}","starred_url":"https://api.github.com/users/kylejm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylejm/subscriptions","organizations_url":"https://api.github.com/users/kylejm/orgs","repos_url":"https://api.github.com/users/kylejm/repos","events_url":"https://api.github.com/users/kylejm/events{/privacy}","received_events_url":"https://api.github.com/users/kylejm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T11:12:59Z","updated_at":"2016-08-19T11:39:24Z","closed_at":"2016-08-19T11:39:24Z","body":"* `carthage version`: 0.17.2\r\n* `xcodebuild -version`: Xcode 7.3.1 - Build version 7D1014\r\n* Are you using `--no-build`? No\r\n* Are you using `--no-use-binaries`? No\r\n* Are you using `--use-submodules`? No\r\n\r\nWe use multiple targets in our iOS project to easily make builds with different configurations. All these builds use the same dependencies via Carthage. Every time we add a new dependency, or remove one, we have to alter the Carthage (copy-frameworks) phase of each target, which is getting a bit annoying now.\r\n\r\nI've been trying to write a script that can be called to by each target build phase, giving us one place \r\nto edit rather than `n` (where `n` = number of targets).\r\n\r\nUnfortunately the script isn't working though and I don't understand why.\r\n\r\nIt looks like this:\r\n```bash\r\nexport CARTHAGE_IOS_DIR=Carthage/Build/iOS\r\nexport SCRIPT_INPUT_FILE_0=$SRCROOT/$CARTHAGE_IOS_DIR/Stargate.framework\r\nexport SCRIPT_INPUT_FILE_1=$SRCROOT/$CARTHAGE_IOS_DIR/PermissionScope.framework\r\nexport SCRIPT_INPUT_FILE_2=$SRCROOT/$CARTHAGE_IOS_DIR/SuperPageControl.framework\r\nexport SCRIPT_INPUT_FILE_3=$SRCROOT/$CARTHAGE_IOS_DIR/KeychainAccess.framework\r\nexport SCRIPT_INPUT_FILE_4=$SRCROOT/$CARTHAGE_IOS_DIR/PhoneNumberKit.framework\r\nexport SCRIPT_INPUT_FILE_5=$SRCROOT/$CARTHAGE_IOS_DIR/Rswift.framework\r\nexport SCRIPT_INPUT_FILE_6=$SRCROOT/$CARTHAGE_IOS_DIR/EasyPeasy.framework\r\nexport SCRIPT_INPUT_FILE_7=$SRCROOT/$CARTHAGE_IOS_DIR/CardIO.framework\r\nexport SCRIPT_INPUT_FILE_8=$SRCROOT/$CARTHAGE_IOS_DIR/Kingfisher.framework\r\nexport SCRIPT_INPUT_FILE_9=$SRCROOT/$CARTHAGE_IOS_DIR/Plastic.framework\r\nexport SCRIPT_INPUT_FILE_10=$SRCROOT/Frameworks/Intercom/Intercom.framework\r\nexport SCRIPT_INPUT_FILE_COUNT=11\r\n\r\n/usr/local/bin/carthage copy-frameworks\r\n```\r\n\r\nCould you give me any pointers please? :)\r\n\r\nP.S. is this futile since the `copy-frameworks` problem is fixed in Xcode 8? I recall this being mentioned on Twitter somewhere (:ghost:) but haven't followed it up yet.\r\n"}}
{"actor":{"display_login":"kylejm"}}