0

enter image description here

when I use command xcodebuild to build a workspace, the default path is:

~/Library/Developer/Xcode/DerivedData/BantingAssistant-egoztalzcreabohfvgozqfhfvopa/Build/Products/Debug-iphoneos 

I want to change the path, or get the path in shell.

Andrea
  • 11,801
  • 17
  • 65
  • 72
honolulu
  • 11
  • 5

1 Answers1

0

The exportPath can be specified on the command-line. It requires that the archive path also be specified. The archive path is the location of the .xcarchive file. The export path is the destination for the IPA file.

xcodebuild -archivePath $(YOUR_PATH) -exportPath $(YOUR_PATH/YOUR_FILE.ipa)

Please see

man xcodebuild

for the full list of command-line path options.

Daniel Zhang
  • 5,778
  • 2
  • 23
  • 28