'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
Solution 1:[1]
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
Solution 2:[2]
Solution 3:[3]
Add your xcodeproj path. Like
increment_build_number(
xcodeproj: '../XXX.xcodeproj',
build_number: number
)
Solution 4:[4]
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.
Solution 5:[5]
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.
So make sure, your below set values for
Solution 6:[6]
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
Solution 7:[7]
I highly recommend using this plugin if your issue is not having argvtool accessible in CI/CD when trying to bump stuff uniformly for both IOS/Android before it does it in the macOS runner or action etc
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anton |
Solution 2 | Raja Saad |
Solution 3 | utkukutlu |
Solution 4 | yancaico |
Solution 5 | |
Solution 6 | Lucas van Dongen |
Solution 7 | Mik R |