Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Problems with "pilot" and the new beta version of "deliver" #42

Closed
aziz-boudi4 opened this issue Sep 29, 2015 · 10 comments
Closed

Problems with "pilot" and the new beta version of "deliver" #42

aziz-boudi4 opened this issue Sep 29, 2015 · 10 comments
Labels

Comments

@aziz-boudi4
Copy link

Hi Felix,
Thank you for the great job that you're doing.
I first had the error " Couldn't find element '.page-subnav' after waiting for quite some time " which was happening because of the new update done by Apple on Itunes Connect.
So I Installed the new beta version of deliver and now I'm having a problem with "pilot".

Here's the error that I'm getting :
[Transporter Error Output]: ERROR ITMS-90161: "Invalid Provisioning Profile.

[19:01:18]: -------------------
[19:01:18]: --- Step: pilot ---
[19:01:18]: -------------------
[19:01:18]: Login to iTunes Connect (developer@######.com)
[19:01:19]: Login successful
[19:01:19]: Ready to upload new build to TestFlight (App: ########)...
[19:01:20]: Going to upload updated app to iTunesConnect
[19:01:20]: This might take a few minutes, please don't interrupt the script
[19:01:24]: [Transporter]: INFO: Transporter is skipping bundle update check: Already checked recently.
[19:01:24]: [Transporter]: INFO: Logging configured successfully.
[19:01:24]: [Transporter]: DEBUG: Attempting refresh of configuration data from https://contentdelivery.itunes.apple.com/transporter/Defaults.properties
[19:01:25]: [Transporter]: DEBUG: Configuration refresh successful.
[19:01:25]: [Transporter]: DEBUG: Saving configuration to local path: /Users/####/.itmstransporter/Defaults.properties
[19:01:25]: [Transporter]: INFO: iTMSTransporter : iTunes Store Transporter [1.8.5]
[19:01:25]: [Transporter]: INFO: OS identifier: Mac OS X 10.10.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00
[19:01:25]: [Transporter]: INFO: Memory: [JVM] 66M free, 80M total, 910M max [System] (Physical) 57M free, 8192M total (Swap) 850M free, 5120M total
[19:01:25]: [Transporter]: INFO: Upload mode selected.
[19:01:25]: [Transporter]: INFO: Examining the package at: /tmp/########.itmsp
[19:01:25]: [Transporter]: INFO: Ensuring that package has well formed metadata file...
[19:01:25]: [Transporter]: DEBUG: Getting case-sensitive metadata xml filename...
[19:01:25]: [Transporter]: INFO: Gathering the list of valid files from the package ...
[19:01:25]: [Transporter]: DEBUG:   27875799e2ac5c39cae3394357f56b9d.ipa will be verified by Apple's web service to determine if it is a valid file.
[19:01:25]: [Transporter]: DEBUG:   metadata.xml will be verified by Apple's web service to determine if it is a valid file.
[19:01:25]: [Transporter]: INFO: Finished gathering the list of valid files from the package.
[19:01:25]: [Transporter]: DEBUG:   Case-sensitive metadata filename is: metadata.xml
[19:01:25]: [Transporter]: INFO: Performing authentication of package ########.itmsp ...
[19:01:25]: [Transporter]: DBG-X: Memory: [JVM] 40M free, 80M total, 910M max [System] (Physical) 59M free, 8192M total (Swap) 850M free, 5120M total
[19:01:25]: [Transporter]: DBG-X: Memory: [JVM] 40M free, 80M total, 910M max [System] (Physical) 59M free, 8192M total (Swap) 850M free, 5120M total
[19:01:25]: [Transporter]: DBG-X: Using operation named: authenticateForSession
[19:01:25]: [Transporter]: DBG-X: Apple's web service operation input parameters:
[19:01:25]: [Transporter]: DBG-X:   parameter Application = iTMSTransporter
[19:01:25]: [Transporter]: DBG-X:   parameter BaseVersion = 1.8.3
[19:01:25]: [Transporter]: DBG-X:   parameter OSIdentifier = Mac OS X 10.10.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00
[19:01:25]: [Transporter]: DBG-X:   parameter Password = **hidden value**
[19:01:25]: [Transporter]: DBG-X:   parameter TransporterArguments = -m upload -u developer@######.com -p **hidden value** -f /tmp/########.itmsp -t Signiant -k 100000
[19:01:25]: [Transporter]: DBG-X:   parameter Username = developer@######.com
[19:01:25]: [Transporter]: DBG-X:   parameter Version = 1.8.5
[19:01:25]: [Transporter]: INFO: id = 20150928190125-921
[19:01:25]: [Transporter]: DBG-X: Apple's web service operation return value:
[19:01:25]: [Transporter]: DBG-X:   parameter SessionId = CKWmDBIQkE7E/5mtQ1un/OBhS0VGkg==
[19:01:25]: [Transporter]: DBG-X:   parameter SharedSecret = 8ffe8a7e-d756-4410-9508-08c9f86fae11
[19:01:25]: [Transporter]: DBG-X: Deflated 432 bytes to 376
[19:01:25]: [Transporter]: DBG-X: Using operation named: validateMetadata
[19:01:25]: [Transporter]: DBG-X: Apple's web service operation input parameters:
[19:01:25]: [Transporter]: DBG-X:   parameter Application = iTMSTransporter
[19:01:25]: [Transporter]: DBG-X:   parameter BaseVersion = 1.8.3
[19:01:25]: [Transporter]: DBG-X:   parameter Files = [27875799e2ac5c39cae3394357f56b9d.ipa, metadata.xml]
[19:01:25]: [Transporter]: DBG-X:   parameter Metadata = <?xml version="1.0" encoding="UTF-8"?>
[19:01:25]: [Transporter]: DBG-X:   parameter MetadataChecksum = f178528f9169867636cecc6253bc566f
[19:01:25]: [Transporter]: DBG-X:   parameter MetadataCompressed = (suppressed)
[19:01:25]: [Transporter]: DBG-X:   parameter OSIdentifier = Mac OS X 10.10.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00
[19:01:25]: [Transporter]: DBG-X:   parameter PackageName = ########.itmsp
[19:01:25]: [Transporter]: DBG-X:   parameter PackageSize = 83790755
[19:01:25]: [Transporter]: DBG-X:   parameter Throttle = 100000
[19:01:26]: [Transporter]: DBG-X:   parameter TransporterArguments = -m upload -u developer@######.com -p **hidden value** -f /tmp/########.itmsp -t Signiant -k 100000
[19:01:26]: [Transporter]: DBG-X:   parameter Username = developer@######.com
[19:01:26]: [Transporter]: DBG-X:   parameter Version = 1.8.5
[19:01:26]: [Transporter]: INFO: id = 20150928190126-257
[19:01:26]: [Transporter]: DBG-X: Apple's web service operation return value:
[19:01:26]: [Transporter]: DBG-X:   parameter CPUToken = 07db23a6-8ddd-438e-94ea-b67ab7430164/1443491936692
[19:01:26]: [Transporter]: DBG-X:   parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=27875799e2ac5c39cae3394357f56b9d.ipa}]
[19:01:26]: [Transporter]: DBG-X:   parameter FileSizes = {27875799e2ac5c39cae3394357f56b9d.ipa=83790323}
[19:01:26]: [Transporter]: DBG-X:   parameter Checksums = {27875799e2ac5c39cae3394357f56b9d.ipa=0d1b9c41e6f43561f34732a9ae28793b}
[19:01:26]: [Transporter]: DBG-X:   parameter Success = true
[19:01:26]: [Transporter]: DBG-X:   parameter FilesToUpload = [metadata.xml, 27875799e2ac5c39cae3394357f56b9d.ipa]
[19:01:26]: [Transporter]: DBG-X:   parameter MinimumFileSizeThresholdForCheckum = 104857600
[19:01:26]: [Transporter]: DBG-X:   parameter ProviderNameForToken = #######"24465129
[19:01:26]: [Transporter]: INFO: The list of files requested for upload by Apple is: [metadata.xml, 27875799e2ac5c39cae3394357f56b9d.ipa].  These are the files that will be uploaded.
[19:01:26]: [Transporter]: INFO: Starting media analysis of assets
[19:01:27]: [Transporter]: DEBUG: Handling asset: filename=27875799e2ac5c39cae3394357f56b9d.ipa,uti=com.apple.ipa,role=source,describe=true
[19:01:27]: [Transporter]: DEBUG: Using container type tool name and version: iOS App Describer:1.24
[19:01:27]: [Transporter]: DEBUG: Using path: /tmp/#######.itmsp/27875799e2ac5c39cae3394357f56b9d.ipa
[19:01:36]: [Transporter]: DEBUG: Asset successfully described: com.apple.jingle.leghorn.software.AbstractSoftwareDescriber$1@5f243f31
[19:01:36]: [Transporter]: INFO: Asset media analysis has completed
[19:01:36]: [Transporter]: DBG-X: Memory: [JVM] 26M free, 99M total, 910M max [System] (Physical) 194M free, 8192M total (Swap) 850M free, 5120M total
[19:01:36]: [Transporter]: DBG-X: Using operation named: lookupTransportDiagnostic
[19:01:36]: [Transporter]: DBG-X: Apple's web service operation input parameters:
[19:01:36]: [Transporter]: DBG-X:   parameter Application = iTMSTransporter
[19:01:36]: [Transporter]: DBG-X:   parameter BaseVersion = 1.8.3
[19:01:36]: [Transporter]: DBG-X:   parameter OSIdentifier = Mac OS X 10.10.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00
[19:01:36]: [Transporter]: DBG-X:   parameter TransporterArguments = -m upload -u developer@######.com -p **hidden value** -f /tmp/########.itmsp -t Signiant -k 100000
[19:01:36]: [Transporter]: DBG-X:   parameter Username = developer@######.com
[19:01:36]: [Transporter]: DBG-X:   parameter Version = 1.8.5
[19:01:36]: [Transporter]: INFO: id = 20150928190136-223
[19:01:37]: [Transporter]: DBG-X: Apple's web service operation return value:
[19:01:37]: [Transporter]: DBG-X:   parameter SigniantLoggingLevel = OFF
[19:01:37]: [Transporter]: DBG-X:   parameter AsperaLoggingLevel = OFF
[19:01:38]: [Transporter]: INFO: Signiant TransferEngine build 10.6.0.59156
[19:01:38]: [Transporter]: INFO: Using Signiant UDP transport
[19:01:38]: [Transporter]: DBG-X: Setting the target rate to 15000001 bytes per second.
[19:01:38]: [Transporter]: DBG-X: Setting the throttle to 12500000 bytes per second.
[19:01:38]: [Transporter]: INFO: Transfer engine: 10.6.0.59156
[19:01:38]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED
[19:01:38]: [Transporter]: INFO: The Signiant transfer engine's status is CONNECTING
[19:01:38]: [Transporter]: INFO: Processing URL list: mxwan://sgr203.apple.com:44001/
[19:01:38]: [Transporter]: INFO: Trying UDP sgr203.apple.com/17.152.249.103:44001...
[19:01:39]: [Transporter]: INFO: Connected to UDP sgr203.apple.com/17.152.249.103:44001
[19:01:39]: [Transporter]: INFO: Authenticating
[19:01:39]: [Transporter]: INFO: The Signiant transfer engine's status is AWAITING_DATA_STREAMS
[19:01:39]: [Transporter]: INFO: Setting up data streams
[19:01:40]: [Transporter]: INFO: The Signiant transfer engine's status is CONNECTED
[19:01:40]: [Transporter]: INFO: Connected using WAN accelerator
[19:01:40]: [Transporter]: INFO:      File: 6e98b420-06fd-4c17-8fa8-7f77ce0dc1388248162160090164472.txt 11/11, 100% completed
[19:01:40]: [Transporter]: DBG-X: The status for the file, 6e98b420-06fd-4c17-8fa8-7f77ce0dc1388248162160090164472.txt, is TRANSFERRED.
[19:01:40]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED
[19:01:41]: [Transporter]: INFO: The Signiant transfer engine's status is DISCONNECTED
[19:01:41]: [Transporter]: DEBUG: Using token file path  /Users/#####/.itmstransporter/UploadTokens/azizs-MacBook-Air.local_###########24465129_########.itmsp.token
[19:01:41]: [Transporter]: DEBUG: Attempting exclusive file lock on token file
[19:01:41]: [Transporter]: DEBUG: Token exists, examining
[19:01:41]: [Transporter]: DEBUG: Token pid: 13199, found process = false; my pid: 23194
[19:01:41]: [Transporter]: DEBUG: Reusing existing token: 2be185ca-8e97-47ac-86a4-b7356ebd21b4/1443032843382
[19:01:41]: [Transporter]: DEBUG: Set token: 2be185ca-8e97-47ac-86a4-b7356ebd21b4/1443032843382
[19:01:41]: [Transporter]: DBG-X: Memory: [JVM] 106M free, 158M total, 910M max [System] (Physical) 113M free, 8192M total (Swap) 850M free, 5120M total
[19:01:41]: [Transporter]: DBG-X: Deflated 432 bytes to 376
[19:01:41]: [Transporter]: DBG-X: Deflated 4017843 bytes to 773564
[19:01:41]: [Transporter]: DBG-X: Using operation named: validateAssets
[19:01:41]: [Transporter]: DBG-X: Apple's web service operation input parameters:
[19:01:41]: [Transporter]: DBG-X:   parameter Application = iTMSTransporter
[19:01:41]: [Transporter]: DBG-X:   parameter BaseVersion = 1.8.3
[19:01:41]: [Transporter]: DBG-X:   parameter CPUToken = 2be185ca-8e97-47ac-86a4-b7356ebd21b4/1443032843382
[19:01:41]: [Transporter]: DBG-X:   parameter Files = [27875799e2ac5c39cae3394357f56b9d.ipa, metadata.xml]
[19:01:41]: [Transporter]: DBG-X:   parameter MetadataChecksum = f178528f9169867636cecc6253bc566f
[19:01:41]: [Transporter]: DBG-X:   parameter MetadataCompressed = (suppressed)
[19:01:41]: [Transporter]: DBG-X:   parameter OSIdentifier = Mac OS X 10.10.5 (x86_64); jvm=24.80-b07; jre=1.7.0-internal-root_2015_01_13_21_57-b00
[19:01:41]: [Transporter]: DBG-X:   parameter PackageName = #######.itmsp
[19:01:41]: [Transporter]: DBG-X:   parameter PackageSize = 83790755
[19:01:41]: [Transporter]: DBG-X:   parameter Throttle = 100000
[19:01:41]: [Transporter]: DBG-X:   parameter Transport = Signiant
[19:01:41]: [Transporter]: DBG-X:   parameter TransporterArguments = -m upload -u developer@jogabo.com -p **hidden value** -f /tmp/#######.itmsp -t Signiant -k 100000
[19:01:41]: [Transporter]: DBG-X:   parameter Username = developer@######.com
[19:01:41]: [Transporter]: DBG-X:   parameter Version = 1.8.5
[19:01:41]: [Transporter]: INFO: id = 20150928190141-700
[19:01:46]: [Transporter]: DBG-X: Apple's web service operation return value:
[19:01:46]: [Transporter]: DBG-X:   parameter ErrorMessage = ERROR ITMS-90161: "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.
[19:01:46]: [Transporter]: DBG-X:   parameter CPUToken = 2be185ca-8e97-47ac-86a4-b7356ebd21b4/1443032843382
[19:01:46]: [Transporter]: DBG-X:   parameter AssetsToDescribe = [{UTI=com.apple.ipa, Role=source, ShouldDescribeAsset=true, Filename=27875799e2ac5c39cae3394357f56b9d.ipa}]
[19:01:46]: [Transporter]: DBG-X:   parameter FileSizes = {27875799e2ac5c39cae3394357f56b9d.ipa=83790323}
[19:01:46]: [Transporter]: DBG-X:   parameter Checksums = {27875799e2ac5c39cae3394357f56b9d.ipa=0d1b9c41e6f43561f34732a9ae28793b}
[19:01:46]: [Transporter]: DBG-X:   parameter Errors = [ERROR ITMS-90161: "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."]
[19:01:46]: [Transporter]: DBG-X:   parameter ErrorCode = 1102
[19:01:46]: [Transporter]: DBG-X:   parameter Success = false
[19:01:46]: [Transporter]: DBG-X:   parameter FilesToUpload = [metadata.xml, 27875799e2ac5c39cae3394357f56b9d.ipa]
[19:01:46]: [Transporter]: DBG-X:   parameter MinimumFileSizeThresholdForCheckum = 104857600
[19:01:46]: [Transporter Error Output]: ERROR ITMS-90161: "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."
[19:01:46]: [Transporter]: DBG-X: The error code is: 1102
[19:01:46]: [Transporter]: INFO: Done performing authentication.
[19:01:46]: Transporter transfer failed.
[19:01:46]:
[19:01:46]: ERROR ITMS-90161: "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."
[19:01:46]: Return status of iTunes Transporter was 1: ERROR ITMS-90161: "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."
[19:01:46]: ERROR ITMS-90161: "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."
 Return status of iTunes Transporter was 1: ERROR ITMS-90161: "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."
[19:01:46]: Variable Dump:
[19:01:46]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :SIGH_PROFILE_PATH=>"/Users/####/ios-app/AppStore_com.######.######.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/####/ios-app/AppStore_com.######.######.mobileprovision", "/tmp/AppStore_com.######.######.mobileprovision", "/Users/#####/ios-app/AppStore_com.######.######.mobileprovision"], :SIGH_UDID=>"45c62694-1e71-4401-a469-1fbfb838e340", :SIGH_PROFILE_TYPE=>"app-store", :IPA_OUTPUT_PATH=>"/Users/####/ios-app/Jogabo.ipa", :DSYM_OUTPUT_PATH=>"/Users/####/ios-app/#######.app.dSYM.zip"}

[19:01:46]: Error uploading ipa file, more information see above

+------+-------------------------------------+-------------+
| fastlane summary |
+------+-------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+-------------------------------------+-------------+
| 1 | Verifying required fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | cocoapods | 56 |
| 4 | sigh | 133 |
| 5 | sigh | 100 |
| 6 | gym | 1162 |
| 7 | sigh | 35 |
| 8 | pilot | 28 |
+------+-------------------------------------+-------------+

        [19:01:46]: fastlane finished with errors
/Library/Ruby/Gems/2.0.0/gems/pilot-0.2.1/lib/pilot/build_manager.rb:25:in `upload': Error uploading ipa file, more information see above (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/actions/pilot.rb:13:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:128:in `block in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:127:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:127:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/fast_file.rb:134:in `method_missing'
    from (eval):53:in `block (3 levels) in parse'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/lane.rb:36:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:51:in `block in execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:46:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/runner.rb:46:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/lane_manager.rb:43:in `cruise_lane'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/lib/fastlane/command_line_handler.rb:31:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.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.29.2/bin/fastlane:127:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.29.2/bin/fastlane:133:in `<top (required)>'
    from /usr/bin/fastlane:23:in `load'

here is my Fastfile :

   fastlane_version "1.26.0"

   default_platform :ios


   platform :ios do
    before_all do

      ENV["SLACK_URL"] = "https://hooks.slack.com/services/#####################"
      cocoapods

      # increment_build_number
      sigh

      udid = sigh(app_identifier: "com.#######.######", output_path: "/tmp")
      ENV["######_UDID"] = lane_context[SharedValues::SIGH_UDID]

      gym(scheme: "######")

    end



   desc "Submit a new Beta Build to Apple TestFlight"
   desc "This will also make sure the profile is up to date"
   lane :beta do

     sigh 
     deliver(skip_deploy: true, beta: true)
     pilot

     # sh "your_script.sh"
     # You can also use other beta testing services here
   end

    desc "Deploy a new version to the App Store"
    desc "** Full Markdown** Support: `code`"
    lane :deploy do
      sigh
      deliver(skip_deploy: true, force: true) 
    end

    # You can define as many lanes as you want

    after_all do |lane|
     # This block is called, only if the executed lane was successful

      slack(
        message: "Successfully deployed new App Update."
      )
   end

    error do |lane, exception|
      slack(
         message: exception.message,
         success: false
      )
    end
  end
@KrauseFx
Copy link
Contributor

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)

@iv-mexx
Copy link

iv-mexx commented Sep 29, 2015

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

@iv-mexx
Copy link

iv-mexx commented Sep 29, 2015

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...

@aziz-boudi4
Copy link
Author

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'

@KrauseFx
Copy link
Contributor

@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.

@iv-mexx
Copy link

iv-mexx commented Sep 30, 2015

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 🐑

@KrauseFx
Copy link
Contributor

👍

@aziz-boudi4
Copy link
Author

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'

@KrauseFx
Copy link
Contributor

KrauseFx commented Oct 1, 2015

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

@fastlanebot
Copy link

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 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants