How to set CURRENT_PROJECT_VERSION in Xcode 8

Obromios

Since upgrading to Xcode 8, when I do a build with fastlane, I get the following error message:

There does not seem to be a CURRENT_PROJECT_VERSION key set for this project

If I go to Xcode > Build Settings and go down to Versioning, there is a Current Project Version key, as shown below:

screen shot of versioning

The help text says to enter an integer or floating point number, but when I click on the field, there is no opportunity to enter a number in either the Debug or Release field. This is different from the screen shot shown in this apple tech Q&A so there appears to have been a change in Xcode since the Q&A was released.

AlbertoMDF

Currently when you get that fastlane error, terminal logs redirects you to

Automating Version and Build Numbers Using agvtool

to understand what you need to do.

Summary

  1. Enable agvtool.

    Build Settings > Current Project Version > $(CURRENT_PROJECT_VERSION)

    Build Settings > Versioning System > Apple Generic enter image description here

  2. Set up your version and build numbers.

    Target > Info > Bundle versions string, short (CFBundleShortVersionString) > "your init version"

    Target > Info > Bundle version (CFBundleVersion) > "your init value" enter image description here

That helps me a lot.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Fastlane: There does not seem to be a CURRENT_PROJECT_VERSION key set for this project

Where is the macro CURRENT_PROJECT_VERSION defined in Xcode?

How to set provisioning profile manually in Xcode8?

Xcode 8 file indentation: How to set 2 spaces as default configuration?

How to set the status bar to "Light" on Xcode 8 (preferably not by code)

Xcode 7 how to set app version?

XCode 8 - How to solve an Auto resizing issue on XCode version 8.0?

XCode 8: Unable to set Size

XCode 8 error "Project ERROR: Xcode not set up properly", even though the license has been accepted

Xcode: How to set current working directory to a relative path for an executable?

How to compile a project with C++11 under Xcode 8?

Xcode 8: how to add a GIT repository to an existing project

How to set C++ Language Dialect for a Xcode project using CmakeLists

Xcode 4, Core Data Model Version - Set Current Version

Xcode8 storyboard how to set only one view controller in landscape?

How to set up Kotlin's byte code version in Gradle project to Java 8?

How to "Update Frame" in Xcode 8

Xcode 8 how to add a language?

How to set the build config on Xcode?

How to set language priority in Xcode

Change build version - Xcode 8

Project settings screen in Xcode 8?

Xcode 8 not opening project on start

How to set sourceCompatability to javaVersion.VERSION_1_8

How to add existing Xcode project to git version control in Xcode?

Xcode 8: Interface builder shows different color that set

UserDefaults.standard set nil Error in XCode 8 and Swift 3

Interface Builder can't set accessibility traits (Xcode 8)

Tomcat 8 how to set jarsToSkip