Reputation: 771
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
Upvotes: 25
Views: 9893
Reputation: 8079
I tried all the answers here without success, but running agvtool directly worked fine, so I went around fastlane for this one:
xcrun agvtool new-version 123
Upvotes: 0
Reputation: 5062
This also happened to me as part of trying to do it in CI/CD. Turns out I was using an ubuntu machine to run the task, and in order to update an iOS app, you need to ensure you are running it on a macOS system
Upvotes: 1
Reputation: 9431
In my case this problem appeared after I updated Xcode and my xcode-select
was pointing to the missing folder.
After I executed xcode-select -s /Applications/Xcode_13_4.app
Fastlane continued working as it used to before.
Upvotes: 0
Reputation: 879
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
Upvotes: 1
Reputation: 3017
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
Upvotes: 2
Reputation: 454
In my case it was the issue of Command Line Tools, which wasn't specified under the location tab.
Upvotes: 18
Reputation: 9848
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
Upvotes: 2
Reputation: 970
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
Upvotes: 21
Reputation: 440
Add your xcodeproj path. Like
increment_build_number(
xcodeproj: '../XXX.xcodeproj',
build_number: number
)
Upvotes: 9
Reputation: 1261
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.
Upvotes: 2