3

When I'm try to build from the command line:

xcodebuild -target -project myApp.xcodeproj -scheme myApp -sdk iphoneos -configuration Release archive -archivePath $PWD/build/DDCiOSClient.xcarchive

I'm getting this error:

User defaults from command line:
    IDEArchivePathOverride = /depot/myApp/myApp.xcarchive

Build settings from command line:
    SDKROOT = iphoneos9.3

xcodebuild: error: Unknown build action 'myApp.xcodeproj'.

Any of you knows why of this error?

1
  • Did you cd to your project's directory? Commented Jun 24, 2016 at 20:10

1 Answer 1

5

The phrase -target -project is meaningless. You need to supply a target after the -target argument name.

Also, the action archive needs to come last.

Sign up to request clarification or add additional context in comments.

1 Comment

Also, you can mention "-alltargets" instead if you donot wish to specify any targets and point to all available targets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.