我正在按照本网站指南使用 hockeyapp 设置 fastlane,但遇到错误
: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."}
我已经在操作文件夹中创建了 build_number_icon.rb,我什至尝试对 build_number 进行硬编码并测试运行 fastlane。仍然得到同样的错误。我错过了什么吗?我一直在再次阅读指南,以防我错过了这些步骤。
# 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")
结尾