Giter VIP home page Giter VIP logo

Comments (10)

KrauseFx avatar KrauseFx commented on September 25, 2024

Hey, this is a code signing error:

Invalid Provisioning Profile. The provisioning profile included in the bundle com.######.###### [Payload/#####.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

I see you did follow the code signing guide?

You could try using

gym(scheme: "####", use_legacy_api: true)

from pilot.

iv-mexx avatar iv-mexx commented on September 25, 2024

Hey, I also have a code signing error now:

Return status of iTunes Transporter was 1: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.ikangai.qlauncher [Payload/qonnect scan.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

A week ago everything worked, but because of the iTunesConnect update, I had to update the fastlane tools I'm using and also add use_legacy_build_api: true to the gym action. I did not change anything regarding code signing though...

Because so many parts have changed, I don't know which of those causes the Problem...

These are the versions of the fastlane tools I'm using (all updated just now):

  • cert 0.3.2
  • sigh 0.10.8
  • gym 0.8.3
  • pilot 0.2.1
  • fastlane 1.29.2

This is the relevant part of my Fastflie:

  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :testflight do
    # Ensuere Codesigning Stuff
    cert(
      username: ENV["FL_APPLE_ID"]
    )
    sigh(
      username: ENV["FL_APPLE_ID"],
      app_identifier: ENV["FL_APP_IDENTIFIER"]
    )
    ENV["PROFILE_UDID"] = lane_context[SharedValues::SIGH_UDID]

    # Build Release Build
    gym(
      scheme: ENV["FL_PROJ_SCHEME"],
      output_directory: "build",
      use_legacy_build_api: true
    )

    # Upload Build to Testflight
    pilot(
      username: ENV["FL_APPLE_ID"],
      app_identifier: ENV["FL_APP_IDENTIFIER"],
      ipa: "build/#{ENV['FL_PRODUCT_NAME']}"
    )
  end

from pilot.

iv-mexx avatar iv-mexx commented on September 25, 2024

Ok, I guess I should have checked the issues in the pilot repo first, I think this might be related to cocoapods and not to fastlane, because Xcode does not even build a valid archive for me right now, even without any fastlane tool being involved...

Edit: Updating to cocoapods 0.39.0.beta.3 has helped a bit. I am now able to build a valid archive again, both with Xcode and with fastlane (gym) that shows up in the Xcode Organizer. The code signing error when trying to upload to the AppStore via pilot persists though. Uploading the archive directly from the Xcode Organizer was successful...

from pilot.

aziz-boudi4 avatar aziz-boudi4 commented on September 25, 2024

Hey Felix,

Strange now i'm having another error message.

You passed invalid parameters to 'deliver'.

Should I use "deploy(skip_metadata : true)" instead of "skip_deploy".

[15:24:53]: fastlane finished with errors
/Library/Ruby/Gems/2.0.0/gems/fastlane_core-  0.18.0/lib/fastlane_core/configuration/configuration.rb:52:in `block in verify_value_exists': Could not find  option 'skip_deploy' in the list of available options: username, app_identifier, app, ipa, metadata_path,  screenshots_path, skip_metadata, force, submit_for_review, automatic_release, price_tier,  app_rating_config_path, submission_information, app_icon, apple_watch_app_icon, copyright, primary_category, secondary_category, app_review_information, description, name, keywords,  release_notes, privacy_url, support_url, marketing_url (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.0/lib/fastlane_core/configuration/configuration.rb:45:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.0/lib/fastlane_core/configuration/configuration.rb:45:in `verify_value_exists'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.0/lib/fastlane_core/configuration/configuration.rb:30:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.0/lib/fastlane_core/configuration/configuration.rb:18:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.18.0/lib/fastlane_core/configuration/configuration.rb:18:in `create'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/configuration_helper.rb:8:in `parse'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:134:in `block (2 levels) in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:128:in `block in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:127:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:127:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/fast_file.rb:134:in `method_missing'
    from (eval):52:in `block (3 levels) in parse'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:51:in `block in execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:46:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/runner.rb:46:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/lane_manager.rb:43:in `cruise_lane'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/lib/fastlane/command_line_handler.rb:31:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/bin/fastlane:36: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/commander-4.3.5/lib/commander/runner.rb:68: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/fastlane-1.30.0/bin/fastlane:127:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.0/bin/fastlane:133:in `<top (required)>'
    from /usr/bin/fastlane:23:in `load'

from pilot.

KrauseFx avatar KrauseFx commented on September 25, 2024

@aziz-boudi4 Please take the time to read through the release notes in particular the Migration Guide.

By default deliver will not submit the app for review any more, so you don't have to specify anything to not submit your app.

from pilot.

iv-mexx avatar iv-mexx commented on September 25, 2024

Ok, I managed to solve my problem and it was not related to this issue at all.
Indeed, it was the Codesigning. I've set up everything according to the code signing guide, but at some point during upgrading Xcode / updating the Project, the "Distribution Profile" was reset from $(PROFILE_UDID) to automatic and I did not notice 😞

Sorry for derailing this 🐑

from pilot.

KrauseFx avatar KrauseFx commented on September 25, 2024

👍

from pilot.

aziz-boudi4 avatar aziz-boudi4 commented on September 25, 2024

Hello Felix,
I made all the modifications as stated in the "Migration Guide", and all the previous errors disappeared.

But now I keep having this error with "Spaceship" about
The version number has been previously used.

/Library/Ruby/Gems/2.0.0/gems/spaceship-0.10.2/lib/spaceship/tunes/tunes_client.rb:147:in  `handle_itc_response': The version number has been previously used. (Spaceship::TunesClient::ITunesConnectError) 
  • I tried running fastlane with the " Deliverfile" empty , and i still got the error.
  • I tried running fastlane with the new modification provided on "Migration Guide" for the "Deliverfile" and still got the same error.

could you please point out what I'm doing wrong, thank you.

here is a copy of my "deliverfile" :

###################### IPA File ######################
# This part is only relevant, if you want to submit a new binary
# If you don't use fastlane (https://github.com/KrauseFx/fastlane)
# you can set the path to your ipa file using:
   # ipa "./app.ipa"

# to provide an ipa file for TestFlight distribution, use beta_ipa 
  # beta_ipa "./app.ipa"

# The version of your app - remove this if you provide an ipa file
  #app_version "2.0.5"

# Feel free to remove the following lines if you use fastlane

   app_identifier "com.######.######" # The bundle identifier of your app
   app "#########" # This is NOT your Apple login ID, but the App ID of your app
   username "test@########.com" # the login email address

here is a copy of the trace :

/Library/Ruby/Gems/2.0.0/gems/spaceship-0.10.2/lib/spaceship/tunes/tunes_client.rb:147:in `handle_itc_response': The version number has been previously used. (Spaceship::TunesClient::ITunesConnectError)
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.10.2/lib/spaceship/tunes/tunes_client.rb:236:in `create_version!'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.10.2/lib/spaceship/tunes/application.rb:154:in `create_version!'
    from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.10.2/lib/spaceship/tunes/application.rb:173:in `ensure_version!'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.1.1/lib/deliver/runner.rb:33:in `verify_version'
    from /Library/Ruby/Gems/2.0.0/gems/deliver-1.1.1/lib/deliver/runner.rb:18:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/deliver.rb:18:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:128:in `block in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:127:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:127:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/fast_file.rb:137:in `method_missing'
    from (eval):52:in `block (3 levels) in parse'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:51:in `block in execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:46:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:46:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane_manager.rb:43:in `cruise_lane'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/command_line_handler.rb:31:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/bin/fastlane:36: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/commander-4.3.5/lib/commander/runner.rb:68: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/fastlane-1.30.2/bin/fastlane:127:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/bin/fastlane:133:in `<top (required)>'
    from /usr/bin/fastlane:23:in `load'

from pilot.

KrauseFx avatar KrauseFx commented on September 25, 2024

@aziz-boudi4 Moved to fastlane-old/spaceship#113

from pilot.

fastlanebot avatar fastlanebot commented on September 25, 2024

This issue was migrated to fastlane/fastlane#3291. 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 🚀

from pilot.

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.