2016-08-04 6 views
0

Zum einen ist hier der Fehler:Fehler beim Hochladen zu itunes verbinden mit fastlane

22:13:47]: [Transporter Error Output]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.fitbugg.apps.FitBugg [Payload/FitBugg.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." 
[22:13:47]: Transporter transfer failed. 
[22:13:47]: 
[22:13:47]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.fitbugg.apps.FitBugg [Payload/FitBugg.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." 
[22:13:47]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.fitbugg.apps.FitBugg [Payload/FitBugg.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.fitbugg.apps.FitBugg [Payload/FitBugg.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." 
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure. 
[22:13:47]: Variable Dump: 
[22:13:47]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios beta", :CERT_FILE_PATH=>"/Users/james/Documents/workspace/fb-ios-recover/K3E6UZV9MX.cer", :CERT_CERTIFICATE_ID=>"K3E6UZV9MX", :SIGH_PROFILE_PATH=>"/Users/james/Documents/workspace/fb-ios-recover/AppStore_com.fitbugg.apps.FitBugg.mobileprovision", :SIGH_PROFILE_PATHS=>["/Users/james/Documents/workspace/fb-ios-recover/AppStore_com.fitbugg.apps.FitBugg.mobileprovision"], :SIGH_UDID=>"2cf7a401-960e-4e39-a2f9-2f6627f0642c", :SIGH_PROFILE_TYPE=>"app-store", :IPA_OUTPUT_PATH=>"/Users/james/Documents/workspace/fb-ios-recover/FitBugg.ipa", :DSYM_OUTPUT_PATH=>"/Users/james/Documents/workspace/fb-ios-recover/FitBugg.app.dSYM.zip", :XCODEBUILD_ARCHIVE=>"/Users/james/Library/Developer/Xcode/Archives/2016-08-04/FitBugg 2016-08-04 22.09.00.xcarchive"} 
[22:13:47]: Error uploading ipa file, for more information see above 

Hier ist der Fastfile:

# Customise this file, documentation can be found here: 
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs 
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md 
# can also be listed using the `fastlane actions` command 

# Change the syntax highlighting to Ruby 
# All lines starting with a # are ignored when running `fastlane` 

# If you want to automatically update fastlane if a new version is available: 
# update_fastlane 

# This is the minimum version number required. 
# Update this, if you use features of a newer version 
fastlane_version "1.98.0" 
#username '[email protected]' 

#app_identifier 'com.fitbugg.apps.FitBugg' 
#PRODUCT_BUNDLE_IDENTIFIER='com.fitbugg.apps.FitBugg' 

default_platform :ios 

platform :ios do 
    before_all do 
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." 
#cocoapods 
    cocoapods(podfile: 'Podfile') 

    end 

# desc "Runs all the tests" 
# lane :test do 
# scan 
# 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 
    cert 
    sigh(force: true) 
    match(type: "appstore") # more information: https://codesigning.guide 
    gym(scheme: "FitBugg") # Build your app - more options available 
#gym # Build your app - more options available 
    pilot 

    # sh "your_script.sh" 
    # You can also use other beta testing services here (run `fastlane actions`) 
    end 

# desc "Deploy a new version to the App Store" 
# lane :fitbuggappstore do 
    # match(type: "appstore") 
    # snapshot 
# gym(scheme: "FitBugg") # Build your app - more options available 
# deliver(force: true) 
    # frameit 
# 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 


# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md 
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md 

# fastlane reports which actions are used 
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer 

verschiedene Befehle, die ich laufen habe, sind:

match (development, distribution)

cert create

Für mich scheint es nah zu sein, aber was ich nicht herausfinden kann ist, warum das Provisioning-Profil nicht gültig ist. Ich dachte, Fastlane hat es für mich hochgeladen.

Hier ist meine Ansicht von Provisioning-Profile auf Apple Dev Conn: enter image description here

Und mein certs auf dem ADC:

enter image description here

Antwort

1

Um sicherzustellen, dass alles funktioniert, ist es empfehlenswert, match nuke distribution zu laufen und match nuke development, um Ihre alten und abgelaufenen Profile sowie die von Ihnen erstellten zu bereinigen.

Führen Sie dann match für die App und Umgebung, für die Sie es benötigen. Dies sollte Ihr Problem lösen.

+0

, dass mehrmals versucht. Hat nicht funktioniert. Derselbe Fehler. Gibt es mehr Informationen, die ich Ihnen geben kann? – silverdagger

+0

Ja, bitte senden Sie ein Problem auf GitHub mit der vollständigen Ausgabe beim Ausführen des Spiels und beim Erstellen und Hochladen Ihrer Anwendung. – KrauseFx

0

Nun eine Art von Fix. Ich habe mehr oder weniger wieder angefangen.

Ich ging voran und erstellte eine völlig neue App-ID, Provisioning-Profile und Zertifikate. Ich musste die relevanten Änderungen in xcode vornehmen.

Dann konnte ich diese Fastfile Arbeit machen:

fastlane_version "1.99.0" 

default_platform :ios 
ENV["XCODE_TEAMNAME"] = "myapp Pty Ltd" 
ENV["XCODE_TEAMID"] = "92U9K4P32Y" 



# latest_testflight_build_number(version: "0.25.12") 
# 
# increment_build_number({ 
# build_number: latest_testflight_build_number + 1 
# }) 


platform :ios do 
    before_all do 
    ENV["SLACK_URL"] = "https://hooks.slack.com/services/[webhook-url]" # Webhook URL created in Slack 
    end 

    desc "Installs FixCode which disables the \"Fix Issue\" button in Xcode" 
    lane :xcode do 
    install_xcode_plugin(
     url: "https://github.com/fastlane/FixCode/releases/download/0.2.0/FixCode.xcplugin.zip" 
    ) 
    end 

    desc "Fetches the provisioning profiles so you can build locally and deploy to your device" 
    lane :certs do 
    match(app_identifier: "com.myapp.test.myapp", type: "development") 
    match(app_identifier: "com.myapp.test.myapp", type: "appstore") 
    match(app_identifier: "com.myapp.test.myapp", type: "appstore") 
    end 

    desc "Runs all the unit and ui tests" 
    lane :test do 
    cocoapods 
    if is_ci 
     scan(skip_slack: false) 
    else 
     scan 
    end 
    end 

    desc "Creates new screenshots and uploads them to iTunes Connect" 
    lane :screens do 
    cocoapods 
    match(app_identifier: "com.myapp.test.myapp", type: "development") 
    snapshot 
    frameit 
    deliver(app: 925311796, app_identifier: "com.myapp.test.myapp", skip_metadata: true, force: true) 
    end 

    desc "Submits a new Beta Build to Apple TestFlight" 
    lane :beta do 
    increment_build_number({ 
     build_number: latest_testflight_build_number + 1 
    }) 
    cocoapods 
    match(app_identifier: "com.myapp.test.myapp", type: "appstore") 
    gym(configuration: "Internal Beta") 
    pilot(app_identifier: "com.myapp.test.myapp", skip_waiting_for_build_processing: true) 
    end 

    desc "Deploys a new version to the App Store" 
    lane :deploy do 
    cocoapods 
    match(app_identifier: "com.myapp.test.myapp", type: "appstore") 
    gym(configuration: "Release") 
    deliver(force: true) 
    end 

    desc "Clean everything" 
    lane :clean_all do 
    xcclean(scheme: "myapp") 
    clean_build_artifacts 
    clean_cocoapods_cache 
    end 

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

    error do |lane, exception| 
    if is_ci 
     slack(
     message: exception.message, 
     success: false 
    ) 
    end 
    end 
end 
Verwandte Themen