Xcodebuild archive without scheme

Hello, we want to build our projects with the command line, like :


xcodebuild -target "OurTarget" -configuration "OurConfig" -archivePath "project.xcarchive" -scheme "OurScheme" archive


to be able to then, make a build with :


xcodebuild -exportArchive -archivePath "project.xcarchive" -exportPath "build" -exportOptionsPlist "build/exportOptions.plist"


The problem is that we are using a script to export our project which remove all user data like scemes.


So, what would be the best solution to use these commands without scheme ?



Best regards

From what `man xcodebuild` says, archiving is unfortunately not possible without a scheme:


"archive Archive a scheme from the build root (SYMROOT).

This requires specifying a scheme."


So maybe you can show this to your architect and insist on keeping the schemes.


In my case, I am concered by this, since my project is generated via cmake and recent removal of PackageApplication script from Xcode made things more complicated for creation of .ipa package.

Xcodebuild archive without scheme
 
 
Q