Giter Site home page Giter Site logo

Comments (14)

muzammil-triffort avatar muzammil-triffort commented on March 29, 2024 1

@KrauseFx it works, thanks!

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

Thanks for your detailed report and sorry for not coming back earlier.

You can remove the first system('floatsign'), right?

The problem you described is caused because of
https://github.com/KrauseFx/CredentialsManager/blob/master/lib/credentials_manager/password_manager.rb#L30

      self.username ||= ENV["DELIVER_USER"] || id_to_use || AppfileConfig.try_fetch_value(:apple_id) || load_from_keychain[0]

I'll update it to use the parameter first.

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

Here we go: fastlane-old/credentials_manager@9d11249

Please download the CredentialsManager as zip and run sudo bundle install and sudo rake install and try again.

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

Please try the latest version https://github.com/KrauseFx/fastlane/releases/tag/0.1.2 👍

from fastlane.

vytis avatar vytis commented on March 29, 2024

I've added the first system('floatsign') just in case the .ipa was not made with the most up to date profile. Combined with sigh :skip_install flag this could easily be the case.

As for the issue, it doesn't seem to be fixed yet. It works good when using sigh from command line, but from fastlane it's still the same.

I think it happens because here the user is empty when the lib is called from fastlane:
https://github.com/KrauseFx/sigh/blob/master/lib/sigh/developer_center.rb#L71

Password manager is only initialized with value from SIGH_USERNAME when using standalone sigh command, not the lib:
https://github.com/KrauseFx/sigh/blob/master/bin/sigh#L67

from fastlane.

albertschulz avatar albertschulz commented on March 29, 2024

Having the same problem. Would be glad to have a solution for this 👍

from fastlane.

vytis avatar vytis commented on March 29, 2024

I have found an easy way to reproduce it with this lane (.ipa file is already present in the directory and Deliverfile simply points to that file):

lane :external do
  sigh :skip_install
  deliver :beta
end

At first sigh asks me for Developer's Portal account, but then fails to login to iTunesConnect because it doesn't ask it again but uses the previous account.

EDIT: Same happens if SIGH_USERNAME and DELIVER_USER are configured with different emails. If I comment out sigh everything completes successfully.

from fastlane.

lmirosevic avatar lmirosevic commented on March 29, 2024

👍 I'm also a member of multiple teams with a single email on the Member Centre on developer.apple.com. And I use different emails for each of the related iTC accounts on itunesconnect.apple.com (out of necessity as iTC doesn't support multiple accounts under one email address).

Would be nice if fastlane would support this use case!

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

@lmirosevic as far as I know, you can always add a ENV["DELIVER_USER"] = "[email protected]" before each of the steps.

from fastlane.

lmirosevic avatar lmirosevic commented on March 29, 2024

This can probably be closed. There is ENV['DELIVER_USER'] and the email property in the Deliverfile that would let you select a (different) iTC account.

from fastlane.

t2 avatar t2 commented on March 29, 2024

This is still an issue. Even when changing the DELIVER_USER and DELIVER_PASSWORD before calling deliver, it still uses the login session from when I call sigh

lane :demo do
  increment_build_number

  ipa({
    clean: false,
    workspace: ENV['WORKSPACE'],
    configuration: 'AdHoc',
    scheme: ENV['SCHEME']
  })

  ENV['DELIVER_USER']='developer.apple.com email'
  ENV['DELIVER_PASSWORD']='developer.apple.com password' 
  sigh(
    force: false,
    output_path: "./fastlane/profiles",
    adhoc: true
  )

  ENV['DELIVER_USER']='itunes connect email'
  ENV['DELIVER_PASSWORD']='itunes connect password'
  deliver(beta: true)

  slack(message: "Demo app successfully deployed!")
end

Please advise if I am missing something.

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

@t2 Have you tried using:

sigh(username: 'developer.apple.com email')

from fastlane.

t2 avatar t2 commented on March 29, 2024

@KrauseFx I did:

sigh(username: 'email', password: 'password')
throws
You passed invalid parameters to 'sigh'.

sign(username: 'email')
throws
``send_login_request': #Faraday::Response:0x000001020d9be0 (Spaceship::Client::InvalidUserCredentialsError)`

from fastlane.

KrauseFx avatar KrauseFx commented on March 29, 2024

screenshot 2015-12-05 00 11 00

This works now, add this to your Appfile. Let me know how that works 👍

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.