The CODE_SIGN_IDENTITY in the project settings is "Apple Distribution" (for the Release configuration), and I have the distribution certificate in the keychain. But the embedded.mobileprovision file in the .ipa shows only development certificates - why? How can we build a distribution-ready app with xcodebuild?
xcrun xcodebuild \
-project MyApp/MyApp.xcodeproj \
-scheme MyApp \
-configuration Release \
-sdk iphoneos \
-destination "generic/platform=iOS" \
-quiet \
archive \
-archivePath MyApp/Build/Applications/MyApp.xcarchive \
-allowProvisioningUpdates \
-authenticationKeyPath $(APPLE_DEV_KEY_PATH) \
-authenticationKeyID $(APPLE_DEV_KEY_ID) \
-authenticationKeyIssuerID $(APPLE_DEV_ISSUER_ID) \
DWARF_DSYM_FOLDER_PATH=Build/Applications