1

I am using Xcode 14.1 to build a native macOS app. It outputs the binary into a folder, as such:

/Users/<user>/Library/Developer/Xcode/DerivedData/ProjectName-<crazy_string>/Build/Products/<debug-or-release>/ProjectName

I build the project using xcodebuild and then have my Bash script take the resulting binary from that location.

The issue is that if I hard-code that path relative to my build script, the <crazy_string> part of the build folder changes if I move the project to another computer.

Is there a way to know that <crazy_string> part that Xcode uses?

Or make Xcode place the resulting binary in a consistent location that doesn't change across computers?

c00000fd
  • 20,994
  • 29
  • 177
  • 400

0 Answers0