Currently in Xcode, I have a Development scheme and an Ad Hoc scheme. Both are set to Automatic under Xcode Project -> iOS app target -> Build Settings -> Provisioning Profile.
I'm currently using xcodebuild from the command line and specifying the Ad Hoc scheme to build my apps.
However, it seems like xcodebuild is performing the codesign with the App Store provisioning profile, instead of the Ad Hoc one.
Is there a way for me to specify which provisioning profile to use? Should I pass in an argument into xcodebuild? I'd prefer to do that, while keeping the Xcode build scheme set to "Automatic."