xcodebuild: error: Unknown build action

11,035

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.

Share:
11,035
user2924482
Author by

user2924482

Swift Tutorials Begginers

Updated on June 28, 2022

Comments

  • user2924482
    user2924482 almost 2 years

    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?