Automatically manage signing not working with xcodebuild

Automatic signing is a great feature when I use Xcode. But it doesn't work if I don't open project with Xcode. In My CI environment, I use xcodebuild command to build the xcodeproject, I had set teamID by command DEVELOPMENT_TEAM="xxxxxxxxxx", But it doesn't create certificates, appid, provisions automatically like Xcode do, cause xcodebuild failed. I have to open my project in Xcode at least Once, So it can create needed files, then xcodebuild works.

Is this a bug that automatic create certificates and provisions cloud not be done in xcodebuild? Or there is a solution to let xcodebuild do these things like Xcode do, so I can use Automatic signing in my CI environment.

Automatically manage signing not working with xcodebuild
 
 
Q