Questions tagged [agvtool]

Apple-generic versioning tool for PB projects

agvtool's purpose is to help speed up common operations for Project Builder projects that use the apple-generic versioning system.

AGVTool Documentation

17 questions
141
votes
22 answers

Better way of incrementing build number?

I have been using a shell script as part of my Xcode build process to increment the build number within the plist file, however it's making Xcode 4.2.1 crash frequently (with an error about the target not belonging to a project; I'm guessing the…
trojanfoe
  • 120,358
  • 21
  • 212
  • 242
21
votes
2 answers

Using agvtool with multiple .xcodeproject files in one directory

I have tried using agvtool for ios build versionining. It works great when there is a single .xcodeproj file in the directory. In my case, our project structure is such that it has 4 .xcodeproj files in a single directory. When firing agvtool…
user1728406
  • 257
  • 3
  • 6
11
votes
2 answers

Run a shell script before build in Xcode

I need to adjust my build and version number for my project before build/archiving. I tried multiple things, but so far to no avail. I added a target with the script to update the numbers and added that as first dependency to my main target. But…
dogsgod
  • 6,267
  • 6
  • 25
  • 53
8
votes
1 answer

$non_lazy_ptr link error with agvtool version variables?

I've been using agvtool for one of my iPhone apps on general principle, and have recently found a reason why I want to be able to check the version variable (so that I can re-copy help content into the Documents directory, if it's out of date). The…
lindes
  • 9,854
  • 3
  • 33
  • 45
8
votes
1 answer

AGVTool new-version and what-version do not correspond

When I do: agvtool new-version -all 99 It updates my Info.plist file. However, if I do this: agvtool what-version or agvtool next-version I get this error: There does not seem to be a CURRENT_PROJECT_VERSION key set for this project. Add this…
Besi
  • 22,579
  • 24
  • 131
  • 223
6
votes
2 answers

Xcode Versioning Build Settings on frameworks

I am working on an iOS framework based on the following template : https://github.com/jverkoey/iOS-Framework Now I need to polish a little bit, and setup the versioning system with the appropriate build/marketing number. This framework project has 3…
LiohAu
  • 611
  • 12
  • 36
4
votes
1 answer

Is there a way of automatically writing custom values to the bundle's .plist during a build phase?

I'm setting up a CI system using Jenkins and am using agvtool to bump and set marketing & technical versions at build time. In addition to setting the versioning at build time it would be very useful to set a couple of of custom values in the…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
3
votes
3 answers

(iOS, XCode 4.2) Setting bundle version using Git post-commit hook causes my project to turn into a Mac project

I've decided to start versioning my project "the Apple way," using "Bundle versions string, short" for the "marketing version" (i.e. 2.0.1) of my project, and "Bundle version" as a build number (e.g. 42). To that end I've added a Git post-commit…
Donald Burr
  • 2,281
  • 2
  • 23
  • 31
3
votes
1 answer

agvtool is reporting “Cannot find Foo.xcodeproj/../NO”

I use agvtool to bump my build numbers. In my recently refactored Xcode 13.0 (13A233) project, but am getting a strange error: Cannot find "Foo.xcodeproj/../NO" E.g. % agvtool next-version -all Setting version of project…
Rob
  • 415,655
  • 72
  • 787
  • 1,044
3
votes
0 answers

Automatic version management using agvtool

Xcode 11 has changed the way that versions are handled. So far I had two targets, Dev & Prod, each with a separate versions. Prod version would be entirely manual, Dev would be automated: During a build, a script would run, which then would fetch…
Rafał
  • 1,237
  • 1
  • 11
  • 21
3
votes
3 answers

Is it possible to read the 'current project version' in the settings of an iPhone app

In my app I am using the agvtool to update the build number. I would now like to have the version of my app that appears in the settings to display this number and have it update automatically. I have seen a few apps work around this by writing a…
Liam
  • 7,762
  • 4
  • 26
  • 27
2
votes
1 answer

agvtool new-marketing-version doesn't work on Xcode 13

Since Xcode 13, there is no Info.plist by default. Instead, the common field are in the target’s Info tab, and build settings in the project editor. A separated Info.plist file is added to project only when there are additional fields. When I run…
mrfour
  • 1,128
  • 12
  • 21
2
votes
3 answers

Xcode: Increment build number

We use a script that creates a time stamp and replaces the apps build number. #!/bin/bash echo "Update Build Number to Timestamp" echo "--------------------------------" # fail on error set -e agvtool new-version -all $(date +%Y%m%d%H%M%S) This…
user1107173
  • 10,334
  • 16
  • 72
  • 117
2
votes
0 answers

Xcode build with Jenkins on Yosemite agvtool not working

Yesterday I updated my Jenkins server to Yosemite due to various issues and now my builds which were using the agvtool to set the build number / marketing version for applications are no longer updating the build number / marketing version…
James Parker
  • 2,095
  • 3
  • 27
  • 48
2
votes
3 answers

versioning tool for nodejs

There are solutions to increment the version number in different application. Cocoa apps have agvtool and maven has the maven-release-plugin which increments the version number on releases. Are there similar tools for nodejs?
Brig
  • 10,211
  • 12
  • 47
  • 71
1
2