How to set CURRENT_PROJECT_VERSION in Xcode 8

前端 未结 3 453
悲哀的现实
悲哀的现实 2021-01-04 07:34

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 ke

3条回答
  •  庸人自扰
    2021-01-04 08:00

    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

    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"

    That helps me a lot.

提交回复
热议问题