agvtool used in workspaces

Suppose the directory structure of my project is
  • Apps.xcworkspace

  • App A (folder)

    • A.xcodeproj

    • ..

  • App B (folder)

    • B.xcodeproj

    • ..

A and B project (should) use both versioning. Unfortunately, this does not work (out of the box).

Only when changing the directory structure to
  • Apps.xcworkspace

  • A.xcodeproj

  • App A (folder)

    • ..

  • B.xcodeproj

  • App B (folder)

    • ..

automatic version incrementing works.

Is there a possibility to make also the first version work?

PS: I am using a script that is called at the end of a successfully finished build process containing only one line:
`xcrun agvtool next-version -all `

PPS: In the man pages is mentioned that agvtool is to be started in the folder where the project resides but how can I do this for each project in the workspace?
agvtool used in workspaces
 
 
Q