2016-06-16 16 views
6

Tôi đã làm theo hướng dẫn này website lập Fastlane với hockeyapp nhưng tôi gặp phải lỗiFastlane: Có vẻ như không phải là một chìa khóa CURRENT_PROJECT_VERSION thiết cho dự án này

: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."} 

Tôi đã tạo ra trong thư mục build_number_icon.rb hành động và tôi thậm chí đã cố gắng để hardcode build_number và kiểm tra chạy fastlane. Vẫn nhận được cùng một lỗi. Tui bỏ lỡ điều gì vậy? Tôi đã đọc hướng dẫn một lần nữa chỉ trong trường hợp tôi đã bỏ lỡ các bước.

# 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") 

cuối

Trả lời

10

Cố định lỗi khi bạn cần phải thiết lập một số ở các cài đặt xây dựng của dự án> phiên bản dự án hiện tại.

+0

Có vẻ như bạn đã trả lời câu hỏi của riêng mình giống như tôi đã trả lời! – christopherdrum

8

Tôi sử dụng fastlane, nhưng không dùng hockey. Tôi đã không gặp phải vấn đề này. Tuy nhiên, cảnh báo sẽ cảnh báo bạn về một vấn đề cụ thể bên trong công cụ thiết lập mục tiêu của dự án> xây dựng (được liệt kê là "Phiên bản Dự án Hiện tại" trong phần phụ "Phiên bản"). Trong trường tìm kiếm, nhập CURRENT_PROJECT_VERSION và bạn sẽ thấy rằng đây là một giá trị khác với số build_number của bạn. Dự án của tôi không được thiết lập, nhưng tôi cho rằng khúc côn cầu có thể có những nhu cầu khác nhau?

Ở bất kỳ mức nào, có vẻ như bạn đang xem chính xác giá trị khóa được yêu cầu.

+0

Yea .. Bị nứt đầu của tôi một thời gian. Cảm ơn bạn đã trả lời! –

+0

Đây là liên kết về cách thiết lập theo tài liệu của Apple: https://developer.apple.com/library/content/qa/qa1827/_index.html –

Các vấn đề liên quan