Fastlane Apple Generic versioning not enabled in this project
Asked Answered
B

10

25

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

Berenice answered 25/1, 2020 at 5:42 Comment(2)
It appears agvtool is not installed. Make sure this is available in the docker image you are using. See the script output just above the "Lane Context" box. To test your setup, you could try and run fastlane locally first, to make sure your project supports apple generic versioning.Anglin
It is working locally will try to add agvtool to dockerBerenice
D
20

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

Dimarco answered 30/1, 2021 at 15:57 Comment(0)
K
17

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

Kianakiang answered 27/4, 2021 at 6:41 Comment(2)
This worked for me - it seems to be particularly a problem setting up Xcode and Fastlane on a new development machine.Viviparous
@Viviparous actually I had 2 versions of Xcode at the same time, when it happened for me. But the scenario you mentioned above can be a problematic one.Kianakiang
E
9

Add your xcodeproj path. Like

increment_build_number(
    xcodeproj: '../XXX.xcodeproj',
  build_number: number
)
Entail answered 23/10, 2020 at 15:26 Comment(1)
Adding xcodeproj: '...' was the only thing that was necessary in my case.Kissee
C
2

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.

Chrysoprase answered 3/9, 2020 at 13:16 Comment(3)
when you say increment_version_number, what does that mean?Astaire
@Munib increment_version_number is a Fastlane action.Chrysoprase
fastlane increment_build_numberByelaw
P
2

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

Pardue answered 21/2, 2021 at 17:19 Comment(1)
that may be one of the reasonsKianakiang
H
2

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

Hermeneutics answered 5/6, 2021 at 15:36 Comment(0)
S
1

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

Sideboard answered 26/4, 2022 at 22:34 Comment(0)
P
1

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

Phanotron answered 31/8, 2023 at 12:49 Comment(0)
M
0

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.

Monotint answered 10/6, 2022 at 12:33 Comment(0)
G
0

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
Gynaecology answered 1/5, 2024 at 10:21 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.