{"action":"created","issue":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/853","labels_url":"https://api.github.com/repos/Carthage/Carthage/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/Carthage/Carthage/issues/853/comments","events_url":"https://api.github.com/repos/Carthage/Carthage/issues/853/events","html_url":"https://github.com/Carthage/Carthage/pull/853","id":111926655,"number":853,"title":"Copy bcsymbolmap files when building","user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-16T23:01:11Z","updated_at":"2015-10-16T23:14:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Carthage/Carthage/pulls/853","html_url":"https://github.com/Carthage/Carthage/pull/853","diff_url":"https://github.com/Carthage/Carthage/pull/853.diff","patch_url":"https://github.com/Carthage/Carthage/pull/853.patch"},"body":"These files are necessary in order to archive a built product that includes bitcode.\r\nThis change makes it copy the bcsymbolmap files to the Carthage/Build/$plat folder,\r\nas well as archiving them with `carthage archive` and installing them from prebuilt\r\narchives.\r\n\r\nNote, I have not actually tested the prebuilt archive stuff, as there are no prebuilt\r\narchives with bcsymbolmap files (that I'm aware of) today.\r\n\r\nProjects using bitcode also need to add a shell script build phase to any target using\r\nbitcode that looks something like\r\n\r\n```sh\r\nfor f in \"$SRCROOT\"/Carthage/Build/iOS/*.bcsymbolmap; do\r\n  cp \"$f\" \"$BUILT_PRODUCTS_DIR\"/ || exit\r\ndone\r\n```\r\n\r\nI believe we should make `carthage copy-frameworks` actually do this automatically\r\n(but make it copy just the bcsymbolmap files that correspond with the copied frameworks),\r\nwhich suggests we should go ahead and make it copy the dSYMs too because it's\r\nkind of silly to require people to have a separate copy phase for their dSYMs."},"comment":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/comments/148863067","html_url":"https://github.com/Carthage/Carthage/pull/853#issuecomment-148863067","issue_url":"https://api.github.com/repos/Carthage/Carthage/issues/853","id":148863067,"user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T23:14:07Z","updated_at":"2015-10-16T23:14:07Z","body":"Yes. The error quoted by the thread poster is what this PR (plus the shell script phase) fixes."}}