{"action":"reopened","issue":{"url":"https://api.github.com/repos/KrauseFx/fastlane/issues/18","labels_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/18/comments","events_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/18/events","html_url":"https://github.com/KrauseFx/fastlane/issues/18","id":55498991,"number":18,"title":"Support for different Apple Developer and iTunes Connect accounts","user":{"login":"vytis","id":33914,"avatar_url":"https://avatars.githubusercontent.com/u/33914?v=3","gravatar_id":"","url":"https://api.github.com/users/vytis","html_url":"https://github.com/vytis","followers_url":"https://api.github.com/users/vytis/followers","following_url":"https://api.github.com/users/vytis/following{/other_user}","gists_url":"https://api.github.com/users/vytis/gists{/gist_id}","starred_url":"https://api.github.com/users/vytis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vytis/subscriptions","organizations_url":"https://api.github.com/users/vytis/orgs","repos_url":"https://api.github.com/users/vytis/repos","events_url":"https://api.github.com/users/vytis/events{/privacy}","received_events_url":"https://api.github.com/users/vytis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-26T15:56:56Z","updated_at":"2015-01-29T16:34:49Z","closed_at":null,"body":"It seems that `fastlane` is having problems when iTC and developer's AppleID accounts are different. That happened in my case because my AppleID is assigned to multiple teams, but iTC doesn't support more that one account per email. `fastlane` tries to log in my AppleID email to iTC and fails because passwords don't match (even if they did it wouldn't work because that account is for different apps).\r\n\r\nI have tried setting `SIGH_USERNAME` and `DELIVER_USER` to different emails but it seems that the latter is used all the time if present.\r\n\r\nIt seems that the problem might be because `SIGH_USERNAME` environment variable is read only when sigh is launched from command line:\r\nhttps://github.com/KrauseFx/sigh/blob/master/bin/sigh#L59\r\n\r\nbut it falls back to `DELIVER_USER` from `CredentialsManager` if the class is instantiated directly:\r\nhttps://github.com/KrauseFx/sigh/blob/master/lib/sigh/developer_center.rb#L72\r\n\r\nMy ruby knowledge is a bit limited and it might need updating several libs at the same time to make it work...\r\n\r\nJust in case, the corresponding lane in `Fastlane` is (using [floatsign](https://github.com/nanonation/floatsign) to resign the `.ipa`):\r\n\r\n```\r\nlane :internal do\r\n  sigh :adhoc\r\n  system(\"ipa build -c \\\"AdHoc\\\" -w ../<AppName>.xcworkspace -s '<AppName>'\")\r\n  system(\"./floatsign.sh <AppName>.ipa \\\"iPhone Distribution: <team>\" -b 'some.bundle.id' -p #{Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH]} <AppName>AdHoc.ipa\")\r\n  sigh\r\n  system(\"./floatsign.sh <AppName>.ipa \\\"iPhone Distribution: <team>\" -b 'some.bundle.id' -p #{Actions.lane_context[Actions::SharedValues::SIGH_PROFILE_PATH]} <AppName>AppStore.ipa\")\r\n  hockey({\r\n    api_token: '<api_token>',\r\n    ipa: 'fastlane/<AppName>AdHoc.ipa',\r\n    dsym: 'fastlane/<AppName>.app.dSYM.zip'\r\n    # notes: \"\"\r\n  })\r\n  deliver :skip_deploy, :beta\r\n  increment_build_number\r\nend\r\n```"}}