2016-06-16 3 views
6

ich auf sein wurden nach diesem website Führer auf fastlane mit hockeyapp Einrichtung aber ich begegnet FehlerFastlane: Es scheint nicht ein CURRENT_PROJECT_VERSION Schlüssel für dieses Projekt

:BUILD_NUMBER=>"There does not seem to be a CURRENT_PROJECT_VERSION key set for this project. Add this key to your target's expert build settings."} 

I build_number_icon.rb in Aktionen Ordner erstellt haben und ich habe sogar versucht, die Buildnummer zu schreiben und die Fastlane zu testen. Immer noch der gleiche Fehler. Fehle ich etwas? Ich habe die Führer noch einmal gelesen, nur für den Fall, dass ich die Schritte verpasst habe.

# Build and publish the Beta version to Hockeyapp 
lane :beta_hockeyapp do 
# Build 
build_app(
    # Not a production release, so add build number and do the color modulation of the icons 
    release:false, 
    # Modulate the colors of the icons by these degrees 
    modulation:66.6, 
    # Change the app name 
    app_name:"<App Name>", 
    # Set the app id 
    app_identifier:"com.company.<appname>", 
    # Set the path to the certificate to use in building 
    certificate_path:"./Certificates/Company/<cert>.p12", 
    # Set the password of the p12 certificate file 
    certificate_password:"<password>", 
    # Set the path to the provisioning profile to use (change this!) 
    profile:"./Certificates/Company/<profile>.mobileprovision", 
    # What configuration to use, usefull for keeping different API keys etc between environments 
    configuration:"[INT] <project_name>", 
    # Use this codesigning identity (this is the name of the certificate in your keychain) 
    codesigning_identity:"Project Distribution", 
    # Export an enterprise app 
    export_method:"enterprise", 
    # the projectname, this is the name of the .xcodeproj file and the folder containing your code in the project 
    project_name:<Project>, 
    # the scheme to build 
    scheme:"Project-Internal", 
    # the build number to use, we use the build number from Jenkins 
    build_number: "1234" || ENV["BUILD_NUMBER"] 
) 
# Push to Hockeyapp as Beta release 
publish_hockey(release_type: "0") 

Ende

Antwort

10

den Fehler behoben, wenn Sie eine Nummer an Projektbuildeinstellungen> Aktuelle Projektversion einstellen müssen.

+0

Sieht aus wie Sie Ihre eigene Frage beantwortet, wie ich zu beantworten war! Ja – christopherdrum

8

Ich benutze fastlane, aber nicht mit Hockey. Ich bin diesem Problem nicht persönlich begegnet. Allerdings ist die Warnung Sie zu einem bestimmten Thema innerhalb Ihres Projektes Ziel> bauen Setzwerkzeug (gelistet als „Current Project Version“ unter „Versionierung“ subsection) aufmerksam zu machen. Im Suchfeld eingeben CURRENT_PROJECT_VERSION und Sie werden sehen, dass dies ein anderer Wert als Ihr BUILD_NUMBER ist. Mein Projekt hat es nicht festgelegt, aber ich nehme an, Hockey hat vielleicht andere Bedürfnisse?

Auf jeden Fall scheint es, als ob Sie den genauen Schlüssel-Wert übersehen, der verlangt wird.

+0

.. Wurde Knacken meinen Kopf für einige Zeit. Danke für die Antwort! –

+0

Hier finden Sie einen Link zur Einrichtung der Apples Dokumentation: https://developer.apple.com/library/content/qa/qa1827/_index.html –

Verwandte Themen