1

I am trying to build and archive project to create .ipa via commandline using below command

$ xcodebuild archive -project test.xcodeproj -scheme "Test" -archivePath /build

but it gives below error

** ARCHIVE FAILED **

The following build commands failed:
Ld /Users/user1/Library/Developer/Xcode/DerivedData/test-gymccixkvyhthdhhxixgplbqdrhk/Build/Intermediates/ArchiveIntermediates/Test/IntermediateBuildFilesPath/test.build/Release-iphoneos/Test.build/Objects-normal/arm64/Test normal arm64

Ld /Users/user1/Library/Developer/Xcode/DerivedData/test-gymccixkvyhthdhhxixgplbqdrhk/Build/Intermediates/ArchiveIntermediates/Test/IntermediateBuildFilesPath/test.build/Release-iphoneos/Test.build/Objects-normal/armv7/Test normal armv7

Am I missing something?

Praful Kadam
  • 372
  • 6
  • 22

1 Answers1

0

We need more information. I suspect however, that /build is not a writeable directory.

For good example of how to build with scripts see this project:

https://github.com/calabash/ios-smoke-test-app/blob/master/CalSmokeApp/Makefile

jmoody
  • 2,480
  • 1
  • 16
  • 22