fastlane-old / sigh

Because you would rather spend your time building stuff than fighting provisioning
https://fastlane.tools
959 stars 87 forks source link

Can not download provisioning profile #270

Closed azproduction closed 8 years ago

azproduction commented 8 years ago

Hello

Recently with exactly the same version of sigh it was possible to download profiles, but now for some reason I am receiving 404, however I am able to download profiles from apple website and from xcode. What could be the problem?

$ sigh --adhoc --username my@my.com --app_identifier 'com.my.*' --skip_certificate_verification

+-------------------------------------+------------------------------+
|                       Summary for sigh 1.3.1                       |
+-------------------------------------+------------------------------+
| adhoc                               | true                         |
| username                            | my@my.com                    |
| app_identifier                      | com.my.*                     |
| skip_certificate_verification       | true                         |
| skip_install                        | false                        |
| development                         | false                        |
| force                               | false                        |
| ignore_profiles_with_different_name | false                        |
| skip_fetch_profiles                 | false                        |
+-------------------------------------+------------------------------+

[23:49:47]: Starting login with user 'my@my.com'
[23:49:48]: Successfully logged in
[23:49:48]: Fetching profiles...
[23:49:51]: Found 1 matching profile(s)
[23:49:51]: Downloading provisioning profile...
-------------------------------------------------------------------------------------------
😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.21.1/lib/spaceship/portal/portal_client.rb:364:in `download_provisioning_profile': [!] Couldn't download provisioning profile, got this instead: <!DOCTYPE html> (Spaceship::Client::UnexpectedResponse)
<html>
<head>
    <title>Page Not Found - Apple Developer</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="omni_page" content="404:/account/ios/profile/profileContentDownload.action" />
    <link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=1" type="text/css" />
    <link rel="stylesheet" href="https://devimages.apple.com.edgekey.net/assets/styles/systems.css" type="text/css" />
    <script src="/pagenotfound/scripts/pnf.js"></script>
    <!--[if lt IE 9]>
    <script src="/assets/scripts/html5.js"></script>
<![endif]-->
</head>
<body class="pnf">
    <div id="top">
<!-- SiteCatalyst code version: H.8. Copyright 1997-2006 Omniture, Inc. -->
<script type="text/javascript">
/* RSID: */
var s_account="appleglobal,appleusdeveloper"
</script>

<script type="text/javascript" src="https://www.apple.com/metrics/scripts/s_code_h.js"></script>
<script type="text/javascript">
s.channel="www.us.developer"
s.pageType="errorPage"

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<!-- End SiteCatalyst code version: H.8. -->
</div>  <section class="wrapper">
    <section id="content" class="content">
        <header class="header">
            <h1><a href="https://developer.apple.com/"><span class="text-replace">Apple Developer</span></a></h1>
        </header>

        <h2>Sorry, that page cannot be found.</h2>
        <p>Try searching below or go to <a href="http://developer.apple.com">developer.apple.com</a>.</p>
        <form method="get" action="/search/"  name="searchform">
            <input class="search-field" id="search" type="text" placeholder="Search" name="q" value="" onkeydown="if (event.keyCode == 13) document.searchform.submit()" />
            <span class="search-field-mag"></span>
            <input type="submit" id="submit" class="offscreen" />
        </form>

    </section>

    <aside class="push"></aside>
</section>

<footer class="footer">
    <nav class="sosumi">
        <p>Copyright © 2015 Apple Inc. All rights reserved.</p>
        <ul class="links">
            <li><a href="http://www.apple.com/legal/terms/site.html" class="first">Terms of Use</a></li>
            <li><a href="http://www.apple.com/privacy/">Privacy Policy</a></li>
            <li><a href="http://developer.apple.com/support/system-status/">System Status</a></li>
        </ul>
    </nav>
</footer>
</body>
</html>
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.21.1/lib/spaceship/portal/provisioning_profile.rb:304:in `download'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:170:in `block in download_profile'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:169:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:169:in `download_profile'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:50:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/manager.rb:7:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:35:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:90:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:108:in `<top (required)>'
    from /usr/bin/sigh:23:in `load'
    from /usr/bin/sigh:23:in `<main>'

Without --skip_certificate_verification it gives HTTP 405 Method Not Allowed

/Library/Ruby/Gems/2.0.0/gems/spaceship-0.21.1/lib/spaceship/portal/portal_client.rb:311:in `download_certificate': [!] Couldn't download certificate, got this instead: HTTP 405 Method Not Allowed (Spaceship::Client::UnexpectedResponse)
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.21.1/lib/spaceship/portal/certificate.rb:309:in `download_raw'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:87:in `block (2 levels) in fetch_profiles'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:85:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:85:in `block in fetch_profiles'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:82:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:82:in `find_all'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:82:in `fetch_profiles'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/runner.rb:20:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/lib/sigh/manager.rb:7:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:35:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:90:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/sigh-1.3.1/bin/sigh:108:in `<top (required)>'
    from /usr/bin/sigh:23:in `load'
    from /usr/bin/sigh:23:in `<main>'
KrauseFx commented 8 years ago

Sorry about this, we already pushed a new version of spaceship: https://github.com/fastlane/spaceship/releases/tag/0.22.0. Please update using sudo gem update spaceship and let us know if that solves the issue :rocket:

azproduction commented 8 years ago

@KrauseFx installed and it works :) Thanks!

KrauseFx commented 8 years ago

Oh yeah :rocket:

cosmos180 commented 8 years ago

why i can not update the latest version? @KrauseFx.I come from China,this is the reason?😢

zOrder commented 8 years ago

still having the same issues with spaceship 0.22.0

cosmos180 commented 8 years ago

image

It's show me the hint that nothing to update after executing the update cmd.

azproduction commented 8 years ago

@zOrder sigh 1.3.1 with spaceship 0.22.0 works fine

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2849. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: