Yeah, I'm calling it against a workspace not a project.
–
Steven FisherApr 11 '11 at 17:26

Are you able to build fine from within xcode?
–
ljkyserApr 27 '11 at 20:14

Yes, it works fine within the IDE. But I want to automate my build.
–
Steven FisherMay 6 '11 at 21:56

Make sure the name of the scheme is exactly the same. my scheme was called "MyProject Ent" in Xcode and from command line I was calling "MyProjectEnt" and that was not correct. Edit this is "Manage Schemes"
–
RPMJun 13 '13 at 20:04

With xcrun to package and xcodebuild to build, you can almost achieve what xcodebuild archive is supposed to do. I would prefer to use xcodebuild since we can expect this to generate a .xcarchive (.app + .dSYM), more interesting than an IPA.

Not so off-topic, but if anyone knows how to get more logs from xcodebuild and Xcode, I'm really interested!

EDIT:
After looking in Apple Forums, I confirm this is an Xcode BUG introduced with GM2... I guess Apple Xcode engineers are working on Xcode 4.1 that I think final version will be released with OSX Lion... In june maybe? With a fix? :(

That's my forum thread. :) It seems like what I want isn't possible at this point.
–
Steven FisherMay 18 '11 at 18:28

Haha, I should have checked names! That is bogging me too, I love archives concept, and the simplification it brings for AppStore submission, but would love too to automate this in the beta stage! >_<
–
Vincent GuerciMay 18 '11 at 18:41