SwiftSupport is missing

I'm trying to distribute an app for internal testing but I'm always getting the below error and the SwiftSupport folder is not created although I tried different fixes/configurations. How can I debug/see the reason why the SwiftSupport folder is not generated? Xcode 16.4 Build version 16F6

I tried distributing from the Transporter, Xcode organizer, I tried to archive it both from Xcode and from the command line. There are a couple of answers on StackOverflow, nothing helped. What could be the problem?

One of the things I tried:

xcodebuild \
  -project PhotoBook.xcodeproj \
  -scheme PhotoBook \
  -configuration Release \
  -archivePath Release/PhotoBook.xcarchive \
  -destination 'generic/platform=iOS' \
  -verbose \
  archive

xcodebuild \
  -exportArchive \
  -archivePath Release/PhotoBook.xcarchive \
  -exportPath Release \
  -exportOptionsPlist ExportOptions.plist \
  -destination 'generic/platform=iOS' \
  -verbose

ExportOptions.plist


<?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>method</key>
    <string>app-store-connect</string>
    <key>teamID</key>
    <string>T672CQXP54</string>
    <key>uploadSymbols</key>
    <true/>
    <key>uploadBitcode</key>
    <false/>
    <key>signingStyle</key>
    <string>manual</string>
    <key>provisioningProfiles</key>
    <dict>
        <key>com.mandelbrotsc.PhotoBook</key>
        <string>iOS Distribution Profile</string>
    </dict>
</dict>
</plist>

The error:

ITMS-90426: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.

SwiftSupport is missing
 
 
Q