Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fastlane Apple Generic versioning not enabled in this project

What I’m doing is trying to make bitbucket pipline do my iOS CD, I included docker fastlanetools/fastlane image and in the steps i pull and run the docker image everything is okay and i was able to let fastlane command work by calling fastlane beta in the steps.

What’s happening is that fastlane exits with the error Apple Generic versioning is not enabled in this project.

I followed apple documentation to enable it from xCode from here I changed all the targets in my project to use App Generic and still not working

here is the output

like image 501
ANeme Avatar asked Jan 25 '20 05:01

ANeme


6 Answers

In case it was this issue xcrun avgtool xcrun: error: unable to find utility "avgtool", not a developer tool or in PATH

after

sudo xcode-select -s /Applications/Xcode.app

fastlane stopped complaining

like image 67
Anton Avatar answered Oct 17 '22 16:10

Anton


In my case it was the issue of Command Line Tools, which wasn't specified under the location tab. enter image description here

like image 24
Raja Saad Avatar answered Oct 17 '22 18:10

Raja Saad


I met the same problem. I searched and tried a lot of ways, but still not worked it out. A flash of inspiration came to my mind. I set a certain version via increment_version_number, it was succeeded magically. Then I tried increment_version_number again to make it automatically increment the version number. Lucky me, it worked.

like image 42
yancaico Avatar answered Oct 17 '22 16:10

yancaico


Add your xcodeproj path. Like

increment_build_number(
    xcodeproj: '../XXX.xcodeproj',
  build_number: number
)
like image 40
utkukutlu Avatar answered Oct 17 '22 16:10

utkukutlu


What i missed was missed setting CURRENT_PROJECT_VERSION (whz. Current Project Version) build setting, which specifies the current version of your project.

Reason:

By default, Xcode does not use any versioning system & no value for Current Project Version. So setting versioning system to Apple Generic ensures that Xcode will include all agvtool-generated version information in your project.

Reference

So make sure, your below set values for

enter image description here

like image 21
nikdange_me Avatar answered Oct 17 '22 17:10

nikdange_me


I had two installations of macOS but Xcode only on one of them, after updating I lost the command line tools location. After setting that up in the preferences it worked again

Xcode 12.4 settings

like image 2
Lucas van Dongen Avatar answered Oct 17 '22 18:10

Lucas van Dongen