[https://forums.developer.apple.com/thread/75038]
Xcode 8.3 xcodebuild error with code signing
1 create plist file,a.plist for example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>uploadSymbols</key>
<false/>
<key>uploadBitcode</key>
<false/>
<key>method</key>
<string>enterprise</string>
<key>compileBitcode</key>
<false/>
</dict>
</plist>
2 use
xcodebuild -exportArchive -archivePath adhoc.xcarchive -exportPath . -exportOptionsPlist a.plist
method can be one of app-store, ad-hoc, enterprise, development,depends on what you do have in your computer