{"action":"opened","issue":{"url":"https://api.github.com/repos/fastlane/spaceship/issues/176","labels_url":"https://api.github.com/repos/fastlane/spaceship/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/spaceship/issues/176/comments","events_url":"https://api.github.com/repos/fastlane/spaceship/issues/176/events","html_url":"https://github.com/fastlane/spaceship/issues/176","id":117442844,"number":176,"title":"How soon can I download a recently updated provisioning profile?","user":{"login":"kraftydevil","id":1315619,"avatar_url":"https://avatars.githubusercontent.com/u/1315619?v=3","gravatar_id":"","url":"https://api.github.com/users/kraftydevil","html_url":"https://github.com/kraftydevil","followers_url":"https://api.github.com/users/kraftydevil/followers","following_url":"https://api.github.com/users/kraftydevil/following{/other_user}","gists_url":"https://api.github.com/users/kraftydevil/gists{/gist_id}","starred_url":"https://api.github.com/users/kraftydevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraftydevil/subscriptions","organizations_url":"https://api.github.com/users/kraftydevil/orgs","repos_url":"https://api.github.com/users/kraftydevil/repos","events_url":"https://api.github.com/users/kraftydevil/events{/privacy}","received_events_url":"https://api.github.com/users/kraftydevil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T20:26:57Z","updated_at":"2015-11-17T20:26:57Z","closed_at":null,"body":"Does Apple need some time to process adding a device to a provisioning profile? \r\n\r\nAssuming I have an array of profiles (`profiles`) and a new device (`deviceToAdd`):\r\n```ruby\r\n#add the device, update the portal, and download the profile\r\nprofiles.each do |profile|\r\n        profile.devices.push(deviceToAdd)\r\n        profile.update!\r\n        profile.download    \r\nend\r\n```\r\nThe above code produces this error after calling `profile.download`:\r\n```\r\n/Library/Ruby/Gems/2.0.0/gems/spaceship-0.13.0/lib/spaceship/portal/portal_client.rb:344:in `download_provisioning_profile': Couldn't download provisioning profile, got this instead: <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> (RuntimeError)\r\n\r\n<html lang=\"en-us\">\r\n<head>\r\n\t<title>Try your request again.</title>\r\n...\r\n\r\n```\r\nThe HTML portion above continues but I don't think it's necessary to troubleshoot the issue.\r\n\r\nSo how can I know if the profile is ready to download?"}}